国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

目錄
屬性
1.標(biāo)籤特定屬性
2.標(biāo)準(zhǔn)屬性
3.全域?qū)傩?/a>
5. Other Attributes Are
Examples to Implement Area Tag in HTML
Example #5
Conclusion –?HTML Legend Tag
首頁(yè) web前端 html教學(xué) HTML 圖例標(biāo)籤

HTML 圖例標(biāo)籤

Sep 04, 2024 pm 04:21 PM
html html5 HTML Tutorial HTML Properties HTML tags

圖例標(biāo)籤用於定義的標(biāo)題或標(biāo)題。標(biāo)籤,並且它被認(rèn)為是該元素的第一個(gè)子元素。作為標(biāo)題,它通常放置在框架的頂部。 的目的是在特定元素的內(nèi)容上建立一個(gè)包圍框。主要目的是藉助欄位集包裝表單、圖像、內(nèi)容,也用於描述資訊的上下文。在下面的部分中,我們將討論有關(guān)的資訊。標(biāo)籤以及深入的範(fàn)例。本文的主要座右銘是展示如何簡(jiǎn)單且創(chuàng)意地使用 HTML 元素標(biāo)籤進(jìn)行示範(fàn)。

文法

<legend>
……
</legend>

HTML

;元素被放置在 內(nèi)元素,其周圍標(biāo)記為黑色邊框;如果你想要一個(gè)時(shí)尚的或改變框架的行為,那麼這裡使用CSS。這個(gè)標(biāo)籤與
完全不同。標(biāo)籤。此標(biāo)籤支援所有瀏覽器,如 Chrome、android、firefox、Opera、Internet Explorer。所有這些元素在所有瀏覽器中都是統(tǒng)一的。

代碼:

<fieldset>
<legend>
Text
</legend>
… Content
<fieldset>

必須提供開(kāi)始和結(jié)束標(biāo)籤。

屬性

一般來(lái)說(shuō),HTML 標(biāo)籤具有一個(gè)或多個(gè)屬性,這些屬性提供了 HTML 元素的重要面向。圖例標(biāo)籤支援所有已定義的全域?qū)傩?。某些屬性不支援現(xiàn)代網(wǎng)頁(yè)瀏覽器。下表給出了標(biāo)籤屬性及其描述。

1.標(biāo)籤特定屬性

align:定義表單中給定的標(biāo)題或說(shuō)明相對(duì)於父級(jí)

的對(duì)齊方式。

代碼:

<fieldset>
<legend align="center">Align
demo:</legend>

注意:為了清晰對(duì)齊,最好對(duì)元素的變體使用 CSS-Align。

2.標(biāo)準(zhǔn)屬性

這些屬性的描述已經(jīng)在上一篇文章中討論過(guò)。

  • 存取金鑰
  • 班級(jí)
  • 目錄
  • id
  • 風(fēng)格
  • id
  • 標(biāo)籤索引
  • 標(biāo)題

Context

Define the Context

Dir

?The values give the path of the text.

Id

?Its identifier must match the value of a name.

Style

?Specifies the inline and external styles.

Lang

Determines the language used in the text.

上下文

onabort It is called when a particular event has been aborted. For example, the web browser immediately video before it is completely downloaded.
onblur Defines the focus of the element.
oncancel Stops the processed event handler.
Onclick Triggers when a click is done
onchange When a click is done somewhere.
onfocus Triggered when the focus is on the given element
定義上下文

目錄

這些值給了文字的路徑。

Id

其識(shí)別碼必須與名稱值相符。

樣式

?指定內(nèi)聯(lián)樣式和外部樣式。

確定文本中使用的語(yǔ)言。

表> 4.事件屬性

5. Other Attributes Are

onmouse down, onmouse up, onmouse over, onmouse move, onmouse out, on focus, on blur, onkey press,onkey down,onkey up. The tags that come with the tag are listed below: