<q> - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:q

Introduction

The q element marks content quoted from another source.

The cite attribute is used to specify the URL of the source document.

The q Element summary

Item Value
Elementq
Local Attributes cite
Tag Style Start and end tag
New in HTML5 No
Changes in HTML5 None

Style Convention

q {
   display: inline;
}

q:before {
   content: open-quote;
}

q:after {
   content: close-quote;
}

Using the q 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 www  .  j  ava  2 s  .  co  m-->
            <dfn title="css">css</dfn>
             is cool.
         </q> 
      </p>  
   </body>
</html>

Related Tutorials