HTML TITLE ATTRIBUTE:-
<html>
<body>
<h2 title="Is a header">The title Attribute</h2>
<p title="Is a tooltip">
Mouse over this paragraph, to display the title attribute as a tooltip.
</p>
</body>
</html>
All HTML elements can have attributes.
Attributes give us additional information about an element.
Attributes are always specified in the start tag.
Attributes usually come in name/value pairs like: name="value".
<html>
<body>
<h2 title="Is a header">The title Attribute</h2>
<p title="Is a tooltip">
Mouse over this paragraph, to display the title attribute as a tooltip.
</p>
</body>
</html>
OUTPUT:-
No comments:
Post a Comment