HTML Web Beginner Tutorial: Explaining the title of the webpage

Source: Internet
Author: User
Tags add header html page window
Beginner | tutorials | Web page

Every HTML page We make should have a document title. So how exactly do you set the title? This tutorial is a beginner for beginners!

Add a title to your document and change your code according to the following:

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 strict//en"
"Http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
<title> My first page </title>
<body>
My first page
</body>

As you can see, we've added two new elements starting with

The header element (from the start tag

As we learn more, you will see more elements that can be inserted into the header element, but the most important is the header element.

If you view this page from the browser (as previously saved and refreshed), you can see "This is my first page" appearing in the title bar of the browser window. The text you typed in the title tag has become the title of the document, is it amazing? If you add this page to your favorites or bookmarks, you'll see that the title will also appear here.



Related Article

Alibaba Cloud 10 Year Anniversary

With You, We are Shaping a Digital World, 2009-2019

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.