HTML Attributes.

HTML Attributs
(1)     Mouse over this paragraph, to display the title attribute as a tool tip.





(2) The href Attribute HTML links are defined with the <a> tag. The link address is specified in the href attribute:

Example Code




You can edit the HTML, Copy the Code areas HTML code to Paste our online HTML editor Page. Now Practics.

(3)   You can edit the HTML, Copy the Code areas HTML code to Paste our online HTML editor Page. Now Practice.



You can edit the HTML, Copy the Code areas HTML code to Paste our online HTML editor Page. Now Practice

.

(4)   The alt Attribute

The alt attribute specifies an alternative text to be used, when an image cannot be displayed.

The value of the attribute can be read by screen readers. This way, someone "listening" to the webpage, e.g. a blind person, can "hear" the element.

you can edit the HTML, Copy the Code areas HTML code to Paste our online HTML editor Page. Now Practice



(4)   W3C recommends quotes in HTML, and demands quotes for stricter document types like XHTML.
Sometimes it is necessary to use quotes. This example will not display the title attribute correctly, because it contains a space:-


You can edit the HTML, Copy the Code areas HTML code to Paste our online HTML editor Page. Now Practice

0 comments:

Post a Comment

FIND US ON FACEBOOK

Blog Archive

Popular Posts