Tuesday, December 25, 2018

Title attribute

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>

OUTPUT:-



  • 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".


  • No comments:

    Post a Comment

    Internal Javascripts

    Internal Javascripts :    The script code can be written directly into the HTML document. script code is placed in header of the docume...