HTML5 > Structures

Quotation in HTML5

How to get the Quotation mark to the particular word/sentence in HTML5?


By using the <q> tag we can get the Quotation mark to the particular word/sentence in the web page.

<body>
    It is used to bring quotation mark.
    <h1>Hello hello <q>hello</q>, this is "async" attribute of script element.</h1>
</body>

In the above code snippet, the word 'hello' is placed in <q> tag.

Output

Notice that the text inside the <q> tag appears in quotation mark in the webpage.

 Views: 4529 | Post Order: 77



Write for us






Hosting Recommendations