亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

directory search
Attributes accesskey (attribute) class (attribute) contenteditable (attribute) contextmenu (attribute) data-* (attribute) dir (attribute) draggable (attribute) dropzone (attribute) Global attributes hidden (attribute) id (attribute) itemid (attribute) itemprop (attribute) itemref (attribute) itemscope (attribute) itemtype (attribute) lang (attribute) slot (attribute) spellcheck (attribute) style (attribute) tabindex (attribute) title (attribute) translate (attribute) Elements a abbr address area article aside audio b base bdi bdo blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 head header hr html i iframe img input input type="button" input type="checkbox" input type="color" input type="date" input type="datetime"-local input type="email" input type="file" input type="hidden" input type="image" input type="month" input type="number" input type="password" input type="radio" input type="range" input type="reset" input type="search" input type="submit" input type="tel" input type="text" input type="time" input type="url" input type="week" ins kbd label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt rtc ruby s samp script section select slot small source span strong style sub summary sup table tbody td template textarea tfoot th thead time title tr track u ul var video wbr Miscellaneous Attributes Block-level elements CORS enabled image CORS settings attributes Element Inline elements Kinds of HTML content Link types Microdata Optimizing your pages for speculative parsing Preloading content Reference Supported media formats Using the application cache Obsolete acronym applet basefont big blink center command content dir element font frame frameset hgroup image input type="datetime" isindex keygen listing marquee nextid noframes plaintext strike tt xmp
characters

HTML 著重元素 (<em>) 標(biāo)記出需要用戶著重閱讀的內(nèi)容, <em> 元素是可以嵌套的,嵌套層次越深,則其包含的內(nèi)容被認(rèn)定為越需要著重閱讀。

內(nèi)容類別

流量?jī)?nèi)容,措辭內(nèi)容,可觸及的內(nèi)容

允許的內(nèi)容

短語(yǔ)內(nèi)容。

標(biāo)記遺漏

沒有,起始和結(jié)束標(biāo)簽都是強(qiáng)制性的。

允許的父母

任何接受短語(yǔ)內(nèi)容的元素。

允許ARIA角色

任何

DOM界面

HTMLElement包括Gecko 1.9.2(Firefox 4),F(xiàn)irefox實(shí)現(xiàn)這個(gè)元素的HTMLSpanElement接口。

屬性

此元素只包括全局屬性。

使用說(shuō)明

通常這個(gè)元素以斜體顯示。但是,不應(yīng)該簡(jiǎn)單地使用斜體; 使用<cite>元素標(biāo)記作品的標(biāo)題(書籍,播放,歌曲等)應(yīng)該使用此CSS元素; 它典型地用斜體字,但帶有不同的含義。使用<strong>元素標(biāo)記比周圍文本更重要的文本。

示例

<em> 元素通常被用于指示一個(gè)隱式或顯式的對(duì)比。

<p>
  In HTML 5, what was previously called  <em>block-level</em> content is now called  <em>flow</em> content.</p>

結(jié)果

在HTML 5, 過去被稱為塊級(jí)內(nèi)容(block-level)的現(xiàn)在被稱為流( flow)內(nèi)容.

<i> vs. <em>

新的開發(fā)人員經(jīng)常被它混淆,為什么有這么多的元素來(lái)表達(dá)對(duì)一些文本的強(qiáng)調(diào)。<i> 和 <em> 也許是最常見的一種。 為什么使用 <em></em>vs<i></i>? 他們產(chǎn)生的結(jié)果是完全相同的,不是嗎?

不完全是. 在 默認(rèn)情況下,視覺效果是一樣的- 這兩個(gè)標(biāo)簽都把內(nèi)容呈現(xiàn)為斜體. 但語(yǔ)義是不同的。<em>標(biāo)簽表示著重強(qiáng)調(diào)其內(nèi)容,而 <i> 標(biāo)簽表示從正常的散文中區(qū)分出的文本, 如電影或書籍的名字,一個(gè)外來(lái)詞, 或者當(dāng)文本指的是一個(gè)字的定義,而不是其自身代表的語(yǔ)義。

例如,<em>可能是: "Justdoit already!", 或: "Wehadto do something about it". 人或軟件在閱讀文本時(shí)會(huì)對(duì)斜體字的發(fā)音使用重讀強(qiáng)調(diào)。

例如, <i> 可能是: "The Queen Mary sailed last night". 在這里,沒有必要對(duì)這個(gè)詞"Queen Mary"添加強(qiáng)調(diào)或重要性. 它只是表明,談?wù)搯栴}的對(duì)象不是一個(gè)名叫瑪麗女王, 而是一艘名字叫瑪麗的船. 另一個(gè)例子 <i> 可能是: "The word the is an article".

規(guī)范

規(guī)范

狀態(tài)

評(píng)論

HTML Living Standard該規(guī)范中'<em>'的定義。

生活水平


HTML5該規(guī)范中'<em>'的定義。

建議


HTML 4.01規(guī)范該規(guī)范中'<em>'的定義。

建議


瀏覽器兼容性

Feature

Chrome

Edge

Firefox

Internet Explorer

Opera

Safari

Basic Support

1

(Yes)

1

(Yes)

(Yes)

(Yes)

Feature

Android

Chrome for Android

Edge mobile

Firefox for Android

IE mobile

Opera Android

iOS Safari

Basic Support

(Yes)

(Yes)

(Yes)

1

(Yes)

(Yes)

(Yes)

Previous article: Next article: