Share on Google+Share on Google+

HTML5 cite tag, Definition of <cite> tag in html5

Advertisement
In this illustration we will inform you about the use of <cite>tag in html5

HTML5 cite tag, Definition of <cite> tag in html5

In this illustration we will inform you about the use of <cite> tag in html5. The <cite> tag is used for defining the title of work. The <cite> tag is an inline tag which indicates 'define a citation'. The text within the <cite> tag is shown in italic font style. The cite tag must have start and end tag.

There is a same name word attribute "cite" in the blockquote tag and serves same purpose as <cite> tag . But implementation of both is different , The <cite> tag contains title of the work and the "cite" attribute accepts only valid URL's. In this tag "tilte" attribute is used for defining the title to the Text within <cite>  </cite> tag.

Declaration Syntax:

<cite title="value">Text Here </cite>

Example: Citetag.html

<!DOCTYPE html>
<html>
<head>
<title>Example of cite tag</title>
</head>
<body>
 Do you
<cite title="This is created by gyan singh(September 1, 2010)">
Enjoy The cite tag </cite>
 HTML cite tag works!
</body>
</html>

Output:

Download This Example:

Difference between HTML5 and HTML4

There is the introductory tag in HTML5.

Advertisements

Posted on: September 6, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.