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.
| <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:
Difference between HTML5 and HTML4
There is the introductory tag in HTML5.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.