HTML tag HTML tag is used to define a block of text which is quoted from another source. The Browser usually displays the content within tag as indented text. If you want to insert a long quote then use and for short or inline quote use tag. Syntax
Following are some specifications about the tag
Display |
Block |
Start tag/End tag |
Both start and End tag |
Usage |
Semantic/textual |
Example
Test it Now Output: Styling tag
Test it Now Note: We have used CSS property margin-right: 25px to change the indentation applied to the text. You can also use margin-left or margin shorthand property. Output: Attribute Tag specific attribute
Attribute |
value |
Description |
cite |
URL |
It is used to specify the URL of the source from where the quote is taken. |
Global attributes The tag supports all the global attributes in HTML. Event attributes The tag supports all events attributes in HTML. Supporting Browsers
Element |
Chrome |
IE |
Firefox |
Opera |
Safari |
|
Yes |
Yes |
Yes |
Yes |
Yes |
|