In this discussion we will inform you about the <title> tag in html5 document. This tag is used for defining the title of the documents and contains the meta content of the document. The content of the <title> tag is not displayed in the browser but displayed in the title bar of the browser. The <title> tag is used within the <head> tag. We can not use more than one <title> in a document.
The declaration syntax of the <title> tag is as follows:
| <title> The Title of the document </title> |
Example: title_tag.html.
| <!DOCTYPE html> <html> <head> <title>Example of Title Tag</title> </head> <body> <p> This is example of Title tag.<br> The text within the title tag is not shown in the browser.<br> It displays on the title bar of browser. </p> </body> </html> |
Output:
Difference between HTML5 and HTML4.01
There is no specific attribute of this tag and no difference with html4.01.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.