<cite> - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:cite

Introduction

The cite element marks the title of a cited work, such a book, article, film, or poem.

The cite Element summary

Item Value
Element cite
Local Attributes None
Tag Style Start and end tag
New in HTML5 No
Changes in HTML5The cite element can only cite the title of a cited work.

Style Convention

cite {
   font-style: italic;
}

The following code shows the use of the cite element.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
   <head> 
      <title>Example</title> 
   </head> 
   <body> 
      <p> 
         <q cite="http://en.wikipedia.org/wiki/css">
            The <!--from w  ww  . ja v a2 s.c o m-->
            <dfn title="css">css</dfn>
             is cool.
         </q> 
      </p>
       My favorite book on fruit is 
      <cite>CSS tutorial</cite>
       by java2s.com  
   </body>
</html>

Related Tutorials