HTML 5 TutorialsNew tags in HTML5

New tags in HTML5

In our blog today we will deal with some of the new tags introduced in HTML5 specification. We will talk about the following today

<article> tag : It tag is used to represent an article. Basically, the content within the 

 tag is independent from the other content on the site (even though it could be related).This tag makes its own sense means it does not depend on other element of site. It has various attributes like other tags discussed before.

<bdi> tag: The <bdi> tag isolates a part of text that can be formatted in a different way or span from other text outside it.It is basically a formatting tag in HTML and newly introduced in HTML5.

<command> tag : This tag is used by the user to invoke a command in HTML.This tag provides the user a facility to use the same command with many buttons.

<figure> tag : The figure tag is actually contains some self-defined content. As its name suggest figure that’s means it contains illustrations, diagrams, figures etc. It may be inserted anywhere in the document, its presence or absence do not affect the flow of document. This tag is also introduced in HTML5.

<figcaption> tag : This tag defines a caption to the figue. It simply acts as markup for the figure inserted in our document. This tag is optional and may be placed before and after the figure inserted.

Let us write some code using these tags

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<h1>USE OF VARIOUS TAGS...!!!!!</h1>
  <h1>This is an article</h1>
  <p>This is a new tag and introduced in HTML5.</p>
//article tag is used here.It automatically converts the input data like we gave headings,paragraphs etc in this format.

 <img src="" width="237" height="116" />
</figure><br />

<img src="" width="237" height="116"  align="middle"/>
<figcaption >WELCOME TO POLARSATR <a href="">VISIT US</a></figcaption>

//Caption to the figure element is provided using the <figcaption> tag.We also provide a hyperlink for perfectly define our figure.


Please find the output as shown below


Previous articleEntities in HTML
Next articleUsing Iframe tag in HTML

Exclusive content

- Advertisement -

Latest article


More article

- Advertisement -Eduonix Blog