Thursday, February 23, 2012

HTML5 <article> Tag


The <article> tag specifies independent, self-contained content.

An article should make sense on its own and it should be possible to distribute it independently from the rest of the site.

Examples of possible articles:

forum post
newspaper article
blog entry
user comment

Example:
<article>
This is a test article.
</article>


All the latest browsers support this property.


Thursday, December 1, 2011

HTML 5 Media Elements With Example


The new HTML5 media elements are ..

<audio> : For audio content, sounds, music or other audio streams
<video> : For video content, such as a movie clip or other video streams
<source> : For media resources for media elements, defined inside video or audio elements
<embed> : For embedded content, such as a plug-in
<track> : For text tracks used in media players

Audio example :

<audio controls="controls">
<source src="song.ogg" type="audio/ogg" />
</audio>


Video example :

<video width="320" height="240" controls="controls">
<source src="movie.mp4" type="video/mp4" />
</video>