HTML ATTRIBUTES


HTML elements can have attributes.An attribute is used to define the characteristics of an HTML element and is placed inside the element's opening tag.HTML attributes generally appear as name value pairs, separated by "=".

<tag attribute="value">(content to be modified by the tag)</tag>
Where tag names the HTML element, attribute is the name of the attribute, set to the provided value.Attributes provide additional information about an element.

<p title="Attributes"> An attribute is used to define the characteristics of an HTML element and is placed inside the element's opening tag </p>


The above shown is a paragraph with title "Attributes", title is the name of attribute and value is "Attributes".
<a href="http://www.mytechstuffs.com/"> This is a link </a>


HTML links are defined with the <a>tag. The link address is specified in the href attribute
<p id="html"> An attribute with name id and value html </p>

0 Comment "HTML ATTRIBUTES"