What you want to see on DotNetFunda.com ?
Go to DotNetFunda.com
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 3432 |  Welcome, Guest!   Register  Login
Home > Articles > HTML 5 > HTML5 TAG ELEMENTS

HTML5 TAG ELEMENTS

1 vote(s)
Rating: 5 out of 5
Article posted by Ogipansrk on 1/13/2012 | Views: 2453 | Category: HTML 5 | Level: Beginner | Points: 250 red flag


In this article you will learn HTML5 new descriptive elements.

Introduction

In this article you will learn HTML5 new descriptive 
elements.


Using the code


Previously, we were using div tag in the following format.

<div id="Menu">
<div id="Header">

We are using these "id" for our own purpose to identyfying.Unfortunately this doesnot help browser with this markup.

With HTML5 W3C introduces new rich set of elements , through which developer can convey his meaning.


Few Elements of HTML5:

  • Article
  • Aside
  • Figure
  • Figurecaption
  • Header
  • Hgroup
  • Mark
  • Nav
  • Section
  • Time

Using these elements , developer can easily guess what the most elements do.


In above daigram , you can see that Header and Footer.

By, seeing itself user can understand , that these contain information related to header and footer.

Example: 

<BODY>
<HEADER>
 <hgroup>
   <h1> HTML5 ARTICLE 2 </h1>
   <h3> HTMLL5 DEMO DEMO</h3>
 </hgroup>
</HEADER>
</BODY>



So, above example illustrates us how to use header element.
"hgroup"  used to group all related things.

Lets us how to use Section and Article tags.

"Section" - To expain in simple terms , consider a document which is divided into
 different sections. Each section has its own meaning and purpose.
Similary , we can divide our webpage into different sections , using "Section" tag.

Example:

<BODY>

<SECTION>
<H1> NEWS </H1>
</SECTION>

<SECTION>
<H1> RSS FEEDS</H1>
</SECTION>

</BODY>


ARTICLE TAG: The name itelf is self expanatory, which indicates that we can write some content in
that tag. You will get a clear picture in the below example, how to use this tag.

Example:

<BODY>

<SECTION>
<H1> NEWS </H1>
<ARTICLE>
  place your news content here!
  this article is related to news section.
</ARTICLE>
</SECTION>

<SECTION>
<H1> RSS FEEDS</H1>

<ARTICLE>
  place your RSS FEEDS here!
  this article is related to RSS section.
</ARTICLE>
</SECTION>

</BODY>

NAV Tag: We can use this tag for placing Links or Hyperlinks or Menus.
         So by seeing this Tag , u can identity that this tag contains Navigation Items.

Example:

<Body>
<Nav>
 <ul>
   <li><a href="#">HOME</a></li>
   <li><a href="#">MICROSOFT DOWNLOADS</a></li>
   <li><a href="#">MICROSOFT HYDERABAD</a></li>
   <li><a href="#">MICROSOFT REDMOND</a></li>
 </ul>
</Nav>
</Body>

Aside Tag: By seeing the diagram-001 , which clearly says us , that all the elements which we
want to place in sidebar , can be put inside Aside Tag.


Example:

<Body>
<Aside>
 <ul>
   <li><a href="#">HOME</a></li>
   <li><a href="#">MICROSOFT DOWNLOADS</a></li>
   <li><a href="#">MICROSOFT HYDERABAD</a></li>
   <li><a href="#">MICROSOFT REDMOND</a></li>
 </ul>
<Aside>
</Body>

Figure & Figurecaption: These tags are used when we want to place any images. 

Example:

<figure>
    <img src="Images/demo.jpg"  height="100" width="100"/>
    <figcaption>PHOTO</figcaption>
</figure>

Finally , Combining all, I have designed something below, with some dirty CSS Styles.



You can use CSS for better designing.

Conclusion


Html5 RICH SET OF TAGS HELPS DEVELOPERS TO IDENTIFY AND PLACE ELEMENTS PROPERLY.

If you like this article, subscribe to our RSS Feed. You can also subscribe via email to our Interview Questions, Codes and Forums section.

Page copy protected against web site content infringement by Copyscape
Found interesting? Add this to:



Please Sign In to vote for this post.

Latest Articles from Ogipansrk

About ogipansrk hc

Experience:0 year(s)
Home page:http://www.dotnetfunda.com
Member since:Sunday, December 04, 2011
Level:Starter
Status: [Member]
Biography:
>> Write Response - Respond to this post and get points
Related Posts

In this article, we are going to learn How to play audio in the HTML5 and how to control the audio play using in HTML element.

In this article, we are going to learn new form elements introduced in HTML5.

HTML 5 has a very nice drawing API in the form of new Canvas element. Canvas is used for rendering graphs, game graphics, or other visual images on the fly. Canvas is a rectangular area that we can add to our HTML5 page. In this article, we shall learn how to draw a shape on the HTML 5 Canvas and save it as image on the server.

In this Article you will learn the Basics of Razor and How to use it

This article gives some brief introduction on Canvas element in HTML 5 that can exposes the fundas of how the canvas element works with an example.

More ...
About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/21/2013 8:07:27 PM