How to add a title to your HTML document?

Discussion in 'Web Development' started by David_82, Jun 3, 2017.

  1. David_82

    David_82 New Member

    Joined:
    Jun 3, 2017
    Messages:
    3
    Likes Received:
    0
    The next step is to add a title to your document. This title will be used in the browser window, allowing your visitors to identify your site, and it will also be used in the search results pages on search engines like Google. Without it, people won't know what your page is about.
    We'll also add a header to your page which is visible to your visitors. This is often the same as the page title, but they can be different depending on how you want to structure them.
    Inside the <html> tags, add the following lines:
    <head>
    <title>This is an awesome site!</title>
    </head>
    Now we can go ahead and create a header for your page to tell people about the site. This is done using the <h1> tag. You can also use h2, h3, h4, h5 or h6 depending on what the title is and how important it is.
    Here's what you need to do:
    <body>
    <h1>Welcome to my awesome website!!</h1>
    </body>
    The <body> tags signal to the browser that this section is the main body of the page and it is required on all web pages for them to function correctly.
    Put the H1 heading to welcome people to the site.
    Cheers!!!
     
    #1 David_82, Jun 3, 2017
    Last edited by a moderator: Jun 3, 2017
  2. Garhurd Jung

    Garhurd Jung New Member

    Joined:
    May 31, 2017
    Messages:
    3
    Likes Received:
    0
    <html>

    <head>
    <title>HTML Reference</title>
    </head>

    <body>
    The content of the document......
    </body>

    </html>
     
  3. chandrabhan maktal

    chandrabhan maktal New Member

    Joined:
    Jul 25, 2017
    Messages:
    9
    Likes Received:
    0
    <html>
    <head>
    <title>This is the TITLE for my site</title>
    </head>

    <body>
    <p>content follows here</p>
    </body>

    </html>
     

Share This Page