HTML <q> ƙaɗa
- Previous Page <progress>
- Next Page <rp>
实例
例子 1
标记简短的引用:
<p>The goal of the World Wide Fund for Nature is: <q>Build a future where people live in harmony with nature.</q> We hope they succeed.</p>
例子 2
使用 CSS 设置 <q> 元素的样式:
<html> <head> <style> q { color: gray; font-style: italic; } </style> </head> <body> <p>The goal of the World Wide Fund for Nature is: <q>Build a future where people live in harmony with nature.</q> We hope they succeed.</p> </body> </html>
Attribute
Attribute | Value | Description |
---|---|---|
cite | URL | Specifies the source URL of the citation. |
Global Attributes
<q>
The tag also supports Global Attributes in HTML.
Event Attributes
<q>
The tag also supports Event Attributes in HTML.
Default CSS Settings
Most browsers will use the following default values to display <q>
Element:
q { display: inline; } q:before { content: open-quote; } q:after { content: close-quote; }
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |
- Previous Page <progress>
- Next Page <rp>