HTML CSS examples for HTML Tag:title
The title element sets the document's title.
Browsers display the contents of this element at the top of the browser window or tab.
The title Element summary
Item | Value |
---|---|
Element | title |
Element Type | Metadata |
Permitted Parents | head |
Local Attributes | None |
Contents | The title of the document or a meaningful description of its contents |
Tag Style | Start and end tag enclosing text |
New in HTML5 | No |
Changes in HTML5 | None |
Style Convention | title { display: none; } |
Every HTML document should have exactly one title element.
The text enclosed by title element should be meaningful to the user.
Using the head Element
<!DOCTYPE html> <html> <head> <title>Example</title> </head> <body> <p> I like <code id="myId">HTML</code> and CSS. <!--from w w w . j a v a2s. c om--> </p> <a href="http://java2s.com">Visit java2s.com</a> </body> </html>