The lang Attribute
The document language can be declared in the
The language is declared in the lang attribute.
Declaring a language is important for accessibility applications (screen readers) and search engines:
My First Heading
My first paragraph.
The first two letters specify the language (en). If there is a dialect, use two more letters (US).
The title Attribute
HTML paragraphs are defined with the
In this example, the
element has a title attribute. The value of the attribute is "About W3Schools":
W3Schools is a web developer's site.
It provides tutorials and references covering
many aspects of web programming,
The href Attribute
HTML links are defined with the tag. The link address is specified in the href attribute: