ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel
  • »
  • Technology»
  • Internet & the Web

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