HTML CSS examples for HTML Tag:q
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 |
---|---|
Element | q |
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
<!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>