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.



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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.