ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

HTML5 Tags: the body of html

Updated on December 14, 2014

Basic Structure

Below is the most basic structure of an html page.

It must have an html5 declaration at the top:

It must have a tag to prompt the code to be read: <html> and stop reading </html>

It must have a <header> where information about your website is stored for the browser

It must have a <body> where written text will be displayed to users

With this in place we can bring more meaning and structure with additional tags.

<!DOCUTYPE>

<html>

   <header>
   </header>

   <body>
   </body>

</html>

Header Tags

The header holds tags that provide information to the browser, link other website files, and store other pieces of code such as javascript and css.

<title> The title of your webpage is mandatory for the page to function

<meta charset="UTF-8"> This tells the program what keyboard layout to reference

<meta name="author" content="your name"> Claim this work as yours.


<!DOCUTYPE>

<html>

   <header>

   <title>The Webpage Name Showing in the Tab Bar</title>

   <meta charset="UTF-8"> 

   <meta name="author" content="Denny B. Reese">

   </header>

   <body>
   </body>

</html>

What it Looks Like

You will notice what we put in the title tab is now the content up in the tab beside my Hubpages tab. This is now a functioning webpage.
You will notice what we put in the title tab is now the content up in the tab beside my Hubpages tab. This is now a functioning webpage.

Body Tags

<h1> to <h6>

<p> This paragraph tag.

<i> used for ship names and those so called "air quotes"

<b> used for company names and special repeated words, not for bold

<strong> strongly spoken text such as a warning or shouting

<em> empathetically spoken text such as "I'm sorry to hear that" or words in other languages

<cite> for book titles, authors, and magazine publications

<time datetime="year-month-dayThours:minutes:secondsZ">

<header> you can add a header to the body which can be the navigation area of your website

<section> the equivalent of a post category such as sports

<article> the equivalent of a post

<aside> extra information related content about the main article or section, it is often displayed as a sidebar containing things such as a latest blog post section

<footer> the website end bar where extra navigation, advertisement, or contact can be found

<!DOCUTYPE>

<html>

   <header>

   <title>My Recipe Blog</title>

   <meta charset="UTF-8"> 

   <meta name="author" content="Denny B. Reese">

   </header>




   <body>

      <section>
               <h1>Christmas Cooking</h1>
   
          <article>
               <h2>Fruitcake</h2>
               <p><time datetime="2015-11-13">Nov 13, 2015</time></p>
               <p>By:<cite>Denny B. Reese</cite></p>
               <p>You will remember that in previous recipes we used the <b>Ninja Blender</b> to mix out batter. In this recipe it is important that ingredients be chopped by hand. <strong>Do not use a blander!</strong></p>
          </article>

          <article>
               <h2>Gingerbread Cookies</h2>
               <p><time datetime="2015-11-10">Nov 10, 2015</time></p>
               <p>By:<cite>Denny B. Reese</cite></p>
               <p> These cookies will be soft and chewy. As people have told me this recipe is <i>"easy peezie"<i>. Also see the above article <cite>Fruitcake</cite> </p>
          </article>


      </section>

     <aside>
        <h2>A list of previous Recipies</h2>
        <p>Fruitcake. Gingerbread.</p>
    </aside>


   </body>

</html>

What it Looks Like

Now we have some organized content. It does not look like much. You will notice simple styling such as the h1 header is larger than h2,  b tag becomes bold, and i tag becomes italic. This is the browsers default css and can be controlled later.
Now we have some organized content. It does not look like much. You will notice simple styling such as the h1 header is larger than h2, b tag becomes bold, and i tag becomes italic. This is the browsers default css and can be controlled later.

Body Header

<h1> For the title of the blog to be visible at the top of the page

<nav> For the navigation bar at the top of a webpage

<ul> Unordered list shown top to bottom down the page

<li> A list item in the list that will be put as a bullet point

A header area can be added to each section, article, aside, and footer for more customization of colours and areas later. For example, I could have place the information about author and date of each post published and it's own header bar on each post.


<!DOCUTYPE>

<html>

   <header>

   <title>My Recipe Blog</title>

   <meta charset="UTF-8"> 

   <meta name="author" content="Denny B. Reese">


   </header>




   <body>

        <header>
              <h1>My Cooking Blog</h1>
              <nav>
                   <ul>
                      <li>Home Page</li>
                      <li>Christmas Cooking</li>
                   </ul>
              </nav>
        </header>

      <section>
               <h1>Christmas Cooking</h1>
   
          <article>
               <h2>Fruitcake</h2>
               <p><time datetime="2015-11-13">Nov 13, 2015</time></p>
               <p>By:<cite>Denny B. Reese</cite></p>
               <p>You will remember that in previous recipes we used the <b>Ninja Blender</b> to mix out batter. In this recipe it is important that ingredients be chopped by hand. <strong>Do not use a blander!</strong></p>
          </article>

          <article>
               <h2>Gingerbread Cookies</h2>
               <p><time datetime="2015-11-10">Nov 10, 2015</time></p>
               <p>By:<cite>Denny B. Reese</cite></p>
               <p> These cookies will be soft and chewy. As people have told me this recipe is <i>"easy peezie"<i>. Also see the above article <cite>Fruitcake</cite> </p>
          </article>


      </section>

     <aside>
        <h2>A list of previous Recipies</h2>
        <p>Fruitcake. Gingerbread.</p>
    </aside>


   </body>

</html>

What it Looks Like

You will notice that there are now two items in a bullet list. These are placeholders for menu buttons that can later be made to look like buttons and linked to other pages.
You will notice that there are now two items in a bullet list. These are placeholders for menu buttons that can later be made to look like buttons and linked to other pages.

Body Footer

Common things in the Footer

Navigation <nav>

Another navigation is usually placed here leading to less important sections such as contact, FAQ, as well as all the usual top links.

Advertisements

Many people like to place advertisements in this section either as picture or using a code snipped from google adsense.

Links to Similar or Affiliate Websites

Can be included with the tag <a/ href="url">Name of URL</a>

<p>Copywrite <p>

Copywrite &copy; Denny B. Reese

&copy; represents the copyright symbol © which is not readable in code format

The code for special keyboard symbols can be found here.

<!DOCUTYPE>

<html>

   <header>

   <title>My Recipe Blog</title>
   
   <meta charset="UTF-8"> 

   <meta name="author" content="Denny B. Reese">

   </header>




   <body>

        <header>
              <h1>My Cooking Blog</h1>
              <nav>
                   <ul>
                      <li>Home Page</li>
                      <li>Christmas Cooking</li>
                   </ul>
              </nav>
        </header>

      <section>
               <h1>Christmas Cooking</h1>
   
          <article>
               <h2>Fruitcake</h2>
               <p><time datetime="2015-11-13">Nov 13, 2015</time></p>
               <p>By:<cite>Denny B. Reese</cite></p>
               <p>You will remember that in previous recipes we used the <b>Ninja Blender</b> to mix out batter. In this recipe it is important that ingredients be chopped by hand. <strong>Do not use a blander!</strong></p>
          </article>

          <article>
               <h2>Gingerbread Cookies</h2>
               <p><time datetime="2015-11-10">Nov 10, 2015</time></p>
               <p>By:<cite>Denny B. Reese</cite></p>
               <p> These cookies will be soft and chewy. As people have told me this recipe is <i>"easy peezie"<i>. Also see the above article <cite>Fruitcake</cite> </p>
          </article>


      </section>

     <aside>
        <h2>A list of previous Recipies</h2>
        <p>Fruitcake. Gingerbread.</p>
    </aside>


    <footer>
         <nav>
             <ul>
                <li>Home Page</li>
                <li>Christmas Cooking</li>
             </ul>
         </nav>  
         <p>Copywrite &copy; Denny B. Reese</p>  
   </footer>

   </body>

</html>

This is What it Looks Like

Now we have the start of a bottom navigation and a visible copyrite.
Now we have the start of a bottom navigation and a visible copyrite.

© 2014 DennyReese

Comments

    0 of 8192 characters used
    Post Comment

    No comments yet.

    working

    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, hubpages.com uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: https://hubpages.com/privacy-policy#gdpr

    Show Details
    Necessary
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the googleapis.com or gstatic.com domains, for performance and efficiency reasons. (Privacy Policy)
    Features
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Marketing
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Statistics
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)