Thursday, June 6, 2013

What does the HTML tag title mean?

The <title> tag's contents describe what should be displayed in the browser title bar. For example, if you put the following in a page

<title>Hello world!</title>

and I was to then view that page in a browser (Firefox is used in this example), the browser titlebar would show

Hello world - Mozilla Firefox
Be sure to embed the <title> tag in the right place, specifically inside the <head> of the document, as follows
<html> <head> <title>your title</title> </head> <body> your page content </body> </html>

No comments:

Post a Comment