New tags in HTML5

0
1237

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

Please find the output as shown below

Capture