Dear Students Asslam O Alaikum

In our previous session we discussed about saving of html file, Now In our today’s session we will learn about how to use Attributes in HTML

What are attributes in HTML

HTML Attributes are the properties of tags /Elements which modifies the default functionality of an html element/tags

How to Use HTML Attributes

HTML Attributes are used inside of the HTML Tags/Elements

In the start tag of HTML just after the tag/element name

HTML attributes generally appear as name-value pairs, separated by =, and are written within the start tag of an element, after the element’s name.

<tag attribute=“value”>content to be modified by the tag</tag>

where tag is the name of HTML Element/tag and attribute is the name of

attribute set to the provided value And the value may be enclosed in single quote or double quotes

Watch the complete video about “How to use attributes in HTML”

 You May Also Read:


Please enter your comment!
Please enter your name here