Cite Tag in HTML5

Introduction

 
A Cite tag is used to represent the title of a work. In other words, the cite tag indicates a citation from a paper, essay, book, a score, a song, a script, a film, TV show, sculpture, a painting, a musical, a play, an opera, etc. Usually, the text in a cite is rendered by the browser using an italic font style. It can be used by itself, or along with one of the quote tags <q> and <blockquote>.
 
Syntax
 
<cite
class=specifies class names
id= unique identity
lang=specifiy language code
style= information about style
title=Specify title > Use text here
</cite>
 
Attributes Introduced by HTML5
accesskey
contenteditable
contextmenu
data-X
draggable
hidden
itemid
itemprop
itemref
itemscope
itemtype
spellcheck
tabindex
 
HTML5 Event Attributes
onabort onblur oncanplay oncanplaythrough
onchange onclick oncontextmenu ondblclick
ondrag ondragend ondragenter ondragleave
ondragover ondragstart ondrop ondurationchange
onemptied onended onerror onfocus
onformchange onforminput oninput oninvalid
onkeydown onkeypress onkeyup onload
onloadeddata onloadedmetadata onloadstart onmousedown
onmousemove onmouseout onmouseover onmouseup
onmousewheel onpause onplay onplaying
onprogress onratechange onreadystatechange onscroll
onseeked onseeking onselect onshow
onstalled onsubmit onsuspend ontimeupdate
onvolumechange onwaiting    
 
Code :
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
  2. <html  
  3.     xmlns="http://www.w3.org/1999/xhtml">  
  4.     <head>  
  5.         <title></title>  
  6.     </head>  
  7.     <body>  
  8.         <p>  
  9.         This is an example of   
  10.             <cite>cite tag </cite>in HTML5.   
  11.         </p>  
  12.         <p>  
  13.         This is an example of   
  14.             <cite title="Example of cite tag in html 5">cite tag </cite>  
  15.         in HTML5.      
  16.         </p>  
  17.         <p>  
  18.         This is an example of   
  19.             <cite title="Example of cite tag in html 5" style="color: Red">  
  20.             cite tag </cite>in HTML5.    
  21.         </p>  
  22.     </body>   
  23. /html>  
Output
 
Internet Explorer
 
cite tag
 
Chrome
 
cite tag
 
FireFox
 
cite tag
 
Safari
 
cite tag