HTML5 2
HTML5 2
section: This tag represents a generic document or application section. It can be used
together with h1-h6 to indicate the document structure.
article: This tag represents an independent piece of content of a document, such as a blog
entry or newspaper article.
aside: This tag represents a piece of content that is only slightly related to the rest of the
page.
footer: This tag represents a footer for a section and can contain information about the
author, copyright information, et cetera.
nav: This tag represents a section of the document intended for navigation.
figure: This tag can be used to associate a caption together with some embedded content,
such as a graphic or video.
SEMANTIC ELEMENTS
A semantic element clearly describes its meaning to both the browser and the developer.
Examples of non-semantic elements: <div> and <span> - Tells nothing about its content.
Examples of semantic elements: <form>, <table>, and <img> - Clearly defines its content.
Many of existing web sites today contains HTML code like this: <div id="nav">, <div
class="header">, or <div id="footer">, to indicate navigation links, header, and footer.
<header>
<nav>
<section>
<article>
<aside>
<figcaption>
<figure>
<footer>
<!DOCTYPE html>
<html>
<body>
<section>
<h2>VISION :</h2>
<p>image To set unparalleled standards of career-oriented IT education and molding
high quality man power pool for all levels of India´s fastest growing industry.</p>
</section>
<section>
<h2>MISSION :</h2>
<p>To be a premier educational institute generating readily employable skilled
manpower in compliance with the international standards to help our students build
world class careers.</p>
</section>
</body>
</html>
An article should make sense on its own and it should be possible to distribute it independently
from the rest of the web site.
Forum post
Blog post
News story
Comment
<!DOCTYPE html>
<html>
<body>
<article>
MISSION :
To be a premier educational institute generating readily employable skilled manpower
in compliance with the international standards to help our students build world class
careers.
</article>
</body>
</html>
The nav element represents a section of a page that links to other pages or to parts within the
page: a section with navigation links. Not all groups of links on a page need to be in
a nav element — only sections that consist of major navigation blocks are appropriate
forthe nav element.
The <nav> element is intended for large blocks of navigation links. However, not all links in a
document should be inside a <nav> element
<!DOCTYPE html>
<html>
<body>
<nav>
<a href="/Home">Home</a> |
<a href="/about/">About Us</a> |
<a href="/service/">Service</a> |
<a href="/contact/">Contact Us</a>
</nav>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<article>
<header>
<h1>Internet Explorer 9</h1>
<p><time pubdate datetime="2011-03-15"></time></p>
</header>
<p>Windows Internet Explorer 9 (abbreviated as IE9) was released to
the public on March 14, 2011 at 21:00 PDT.....</p>
</article>
</body>
</html>
The footer element represents a footer for its nearest ancestor sectioning content or sectioning
root element. A footer typically contains information about its section such as who wrote it, links
to related documents, copyright data, and the like.
<!DOCTYPE html>
<html>
<body>
<footer>
<p>Posted by: Hege Refsnes</p>
<p><time pubdate datetime="2012-03-01">2:30</time></p>
</footer>
</body>
</html>
The <figure> tag specifies self-contained content, like illustrations, diagrams, photos, code
listings, etc.While the content of the <figure> element is related to the main flow, its position is
independent of the main flow, and if removed it should not affect the flow of the document.
The <figcaption> tag defines a caption for a <figure> element. The <figcaption> element can be
placed as the first or last child of the <figure> element.
<!DOCTYPE html>
<html>
<body>
<figure>
<img src="index.jpg" alt="fish" width="304" height="228">
<figcaption>Fig.1 - Index</figcaption>
</figure>
</body>
</html>
The <time> tag defines either a time (24 hour clock), or a date in the Gregorian calendar,
optionally with a time and a time-zone offset.
<!DOCTYPE html>
<html>
<body>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<p>It is our policy to provide quality services on <mark>a best effort basis to satisfy
</mark>the stated and implied needs of our students.</p>
</body>
</html>
The progress element allows you to mark up a value that is in the process of changing. you
have min, max, and value attributes.
<!DOCTYPE html>
<html>
<body>
The <audio> element allows multiple <source> elements. <source> elements can link to different
audio files. The browser will use the first recognized format.
there are 3 supported file formats for the <audio> element: MP3, Wav, andOgg
Microsoft IE 9 Beta ✓ ✓
<!DOCTYPE html>
<html>
<body>
<audio controls>
<source src="songs.ogg" type="audio/ogg">
<source src="s.mp3" type="audio/mpeg">
</audio>
</body>
</html>
The control attribute adds video controls, like play, pause, and volume.It is also a good idea to
always include width and height attributes. If height and width are set, the space required for the
video is reserved when the page is loaded. However, without these attributes, the browser does
not know the size of the video, and cannot reserve the appropriate space to it. The effect will be
that the page layout will change during loading (while the video loads).
You should also insert text content between the <video> and </video> tags for browsers that do
not support the <video> element.
The <video> element allows multiple <source> elements. <source> elements can link to different
video files. The browser will use the first recognized format.
<!DOCTYPE html>
<html>
<body>
</video>
</body>
</html>