<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ABISHEK M</title>
    <description>The latest articles on DEV Community by ABISHEK M (@abishek_m_82).</description>
    <link>https://dev.to/abishek_m_82</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4029462%2Fae0fbe7f-a6d3-4064-9b78-23b4daa30505.png</url>
      <title>DEV Community: ABISHEK M</title>
      <link>https://dev.to/abishek_m_82</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abishek_m_82"/>
    <language>en</language>
    <item>
      <title>HTML Attributes</title>
      <dc:creator>ABISHEK M</dc:creator>
      <pubDate>Wed, 15 Jul 2026 17:59:08 +0000</pubDate>
      <link>https://dev.to/abishek_m_82/html-attributes-4i5d</link>
      <guid>https://dev.to/abishek_m_82/html-attributes-4i5d</guid>
      <description>&lt;h2&gt;
  
  
  What are HTML Attributes?
&lt;/h2&gt;

&lt;p&gt;HTML attributes provide additional information about an HTML element. They help the browser understand how an element should behave, what extra information it contains, or how it should be displayed on a webpage. Attributes are always written inside the opening tag of an HTML element and usually follow the format &lt;code&gt;attribute="value"&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Syntax
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;tagname&lt;/span&gt; &lt;span class="na"&gt;attribute=&lt;/span&gt;&lt;span class="s"&gt;"value"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Content&lt;span class="nt"&gt;&amp;lt;/tagname&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"https://www.google.com"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Google&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this example, &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; is the HTML element, and &lt;code&gt;href&lt;/code&gt; is the attribute. The &lt;code&gt;href&lt;/code&gt; attribute tells the browser which webpage should open when the link is clicked.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Are Attributes Used?
&lt;/h2&gt;

&lt;p&gt;HTML tags create the basic structure of a webpage, but many elements need additional information to perform their intended task. Attributes provide these extra details and make HTML elements more useful. They help define how an element behaves, what content it should display, and how users can interact with it.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;img&lt;/span&gt; &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"flower.jpg"&lt;/span&gt; &lt;span class="na"&gt;alt=&lt;/span&gt;&lt;span class="s"&gt;"Flower"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;src&lt;/code&gt; attribute specifies the image file that should be displayed, while the &lt;code&gt;alt&lt;/code&gt; attribute provides alternative text if the image cannot be loaded. Without these attributes, the browser would not know which image to display or what text to show when the image is unavailable.&lt;/p&gt;




&lt;h2&gt;
  
  
  Multiple Attributes
&lt;/h2&gt;

&lt;p&gt;An HTML element can contain more than one attribute. Each attribute performs a different task, but together they provide complete information about the element.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;img&lt;/span&gt; &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"flower.jpg"&lt;/span&gt; &lt;span class="na"&gt;alt=&lt;/span&gt;&lt;span class="s"&gt;"Flower"&lt;/span&gt; &lt;span class="na"&gt;width=&lt;/span&gt;&lt;span class="s"&gt;"300"&lt;/span&gt; &lt;span class="na"&gt;height=&lt;/span&gt;&lt;span class="s"&gt;"200"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this example, &lt;code&gt;src&lt;/code&gt; specifies the image file, &lt;code&gt;alt&lt;/code&gt; provides alternative text, &lt;code&gt;width&lt;/code&gt; defines the image width, and &lt;code&gt;height&lt;/code&gt; defines the image height. All these attributes work together to control how the image appears on the webpage.&lt;/p&gt;




&lt;h2&gt;
  
  
  Common HTML Attributes
&lt;/h2&gt;

&lt;p&gt;Some attributes can be used with many HTML elements, while others are designed for specific elements. Below are some of the most commonly used HTML attributes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;href&lt;/code&gt;&lt;/strong&gt; – Specifies the destination of a hyperlink.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;src&lt;/code&gt;&lt;/strong&gt; – Specifies the location of an image, video, audio, or other file.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;alt&lt;/code&gt;&lt;/strong&gt; – Provides alternative text for an image.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;id&lt;/code&gt;&lt;/strong&gt; – Assigns a unique identifier to an HTML element.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;class&lt;/code&gt;&lt;/strong&gt; – Groups multiple elements together for CSS styling or JavaScript.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;style&lt;/code&gt;&lt;/strong&gt; – Applies CSS directly to an HTML element.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;title&lt;/code&gt;&lt;/strong&gt; – Displays additional information as a tooltip when the mouse pointer is placed over an element.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;placeholder&lt;/code&gt;&lt;/strong&gt; – Displays a hint inside an input field before the user enters data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;required&lt;/code&gt;&lt;/strong&gt; – Makes a form field mandatory before submission.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;disabled&lt;/code&gt;&lt;/strong&gt; – Disables an element so it cannot be used or interacted with.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;checked&lt;/code&gt;&lt;/strong&gt; – Selects a checkbox or radio button by default.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These attributes are widely used when building web pages because they improve the functionality, appearance, and usability of HTML elements.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>html</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
    <item>
      <title>HTML</title>
      <dc:creator>ABISHEK M</dc:creator>
      <pubDate>Wed, 15 Jul 2026 17:06:42 +0000</pubDate>
      <link>https://dev.to/abishek_m_82/html-1f88</link>
      <guid>https://dev.to/abishek_m_82/html-1f88</guid>
      <description>&lt;p&gt;&lt;strong&gt;My First Day Learning HTML&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;HTML is the first step in web development. It stands for &lt;strong&gt;"HyperText Markup Language"&lt;/strong&gt; and is used to create the structure of a webpage. Every website on the internet starts with HTML, while CSS is used to improve the design and JavaScript is used to add interactivity.&lt;/p&gt;

&lt;p&gt;Every HTML document follows a basic structure. It starts with      &lt;strong&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/code&gt;&lt;/strong&gt;, followed by the &lt;strong&gt;&lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;&lt;/strong&gt;, and &lt;strong&gt;&lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt;&lt;/strong&gt; tags. These tags help the browser understand how to display the webpage correctly.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/code&gt;&lt;/strong&gt; declaration tells the browser that the document is written in HTML5.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;&lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt;&lt;/strong&gt; tag is the root element of the webpage. All the content of the webpage is written inside this tag.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;&lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;&lt;/strong&gt; tag contains information about the webpage, such as the page title, meta information, CSS files, and JavaScript files. The content inside the &lt;strong&gt;&lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;&lt;/strong&gt; tag is not displayed on the webpage, but it helps the browser process the page correctly.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;&lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt;&lt;/strong&gt; tag contains everything that appears on the webpage. Elements such as headings, paragraphs, images, buttons, links, and forms are placed inside the &lt;strong&gt;&lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt;&lt;/strong&gt; tag. Whatever is written inside this section is displayed to the user in the browser.&lt;/p&gt;

&lt;p&gt;Learning the basic structure of HTML is an important first step because every webpage is built using these fundamental tags. Once these basics are clear, it becomes much easier to create and understand web pages.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>html</category>
      <category>learning</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
