title Element

Description

The title element sets the document's title.

Browsers usually display the contents of this element at the top of the browser window or tab.

Every HTML document should have exactly one title element.

The title text should be meaningful to the user.

Example

The following code shows the title element in use.


<!DOCTYPE HTML>
<html>
<head>
   <title>Example from java2s.com</title>
</head><!--  w w w  . j  a  v a  2s. com-->
<body>
    <p>This is a test.</p>
    <a href="http://java2s.com">Visit  java2s.com</a>
</body>
</html>

Click to view the demo





















Home »
  HTML CSS »
    HTML »




HTML Introduction
HTML Document
HTML Section
HTML Group Content
HTML Text Marker
HTML Table
HTML Form
HTML Embed