HTML Attributes

All HTML elements can have Attributes. Attributes provides additional information about the element.  Attributes are always specified at the start of tag.

The lang Attribute

The language of the document can be declared in <html> tag. The language is declared with lang attribute. Declaring a language is important for accessibility application. and search engines.

<!DOCTYPE html>
<html lang ="en-US">
<body>
...............
................
</body>
</html>

Related Posts:

  • HTML AttributesAll HTML elements can have Attributes. Attributes provides additional information about the element.  Attributes are always specified at the start of tag. The lang Attribute The language of the document can be declared… Read More
  • Video TagThis is a new tag for HTML 5. This tag might not work in older browsers. We need some attributes for this tag, Source, Type, Width ,Height and Control. We need to tell the browser where is the source of the video and the type… Read More

0 comments:

Post a Comment