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

目錄
屬性
1.全域?qū)傩?/a>
2.事件屬性
3. Windows 事件屬性
4.表單事件屬性
Examples of implementing HTML address Tag
Example #1
Example #2 – Color property
Example #3 –?Background Color Property
Example #4 –?Text Decoration
Example #5 –?CSS Fonts
Example #6 –?Text Shadow
Example #7 –?Line Height
Conclusion
首頁(yè) web前端 html教學(xué) HTML 位址標(biāo)籤

HTML 位址標(biāo)籤

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

;標(biāo)籤用於獲取有關(guān)網(wǎng)站所有者或文章作者的詳細(xì)聯(lián)絡(luò)資訊。它可能包括地址、電話、電子郵件、網(wǎng)站連接等等。 標(biāo)籤對(duì)於不同的上下文很有幫助,包括頁(yè)面標(biāo)題中的業(yè)務(wù)聯(lián)絡(luò)訊息,或與作者相關(guān)的聯(lián)絡(luò)資訊等。傳統(tǒng)上,瀏覽器將

中包含的斜體文字視為斜體文字。標(biāo)籤。此標(biāo)籤通常也稱為。地址>。通常,元素將包含在 元素以及其他細(xì)節(jié)。難道就不能用其他方式來(lái)辨識(shí)地址嗎?在本主題中,我們將學(xué)習(xí) HTML 位址標(biāo)籤。

文法

的語(yǔ)法標(biāo)籤將如下所示寫(xiě)入:

<html>
<body>
<address>
Contact Information:<br>
www.mycompany.com<br>
#12345, Main Street<br>
Name of City, Name of State
</address>
</body>
</html>

屬性

以下是下面提到的以下屬性

2.事件屬性

每當(dāng)瀏覽器回應(yīng)特定使用者的介入時(shí),就會(huì)發(fā)生事件。當(dāng)使用者點(diǎn)擊滑鼠、上傳文件或圖片、播放影片或在網(wǎng)頁(yè)上執(zhí)行任何其他活動(dòng)。

3. Windows 事件屬性

視窗事件屬性在視窗物件啟動(dòng)時(shí)使用。

  • onafterprint:需要列印文件時(shí)使用。
  • onbeforeprint:在需要列印文件之前執(zhí)行。
  • onbeforeload:當(dāng)文件將被卸載時(shí)使用。
  • onblur:當(dāng)視窗沒(méi)有焦點(diǎn)時(shí)將定義此屬性。
  • onerror:下載文件時(shí)出現(xiàn)錯(cuò)誤時(shí)定義。
  • onload:載入網(wǎng)頁(yè)內(nèi)容時(shí)指定。
  • onmessage:當(dāng)訊息中有原因時(shí)使用。
  • onoffline:當(dāng)瀏覽器在離線模式下工作時(shí),將使用該屬性。
  • ononline:當(dāng)瀏覽器處?kù)毒€上模式時(shí)將使用此屬性。
  • onpagehide:當(dāng)使用者離開(kāi)網(wǎng)頁(yè)時(shí)指定。
  • onpageshow: 當(dāng)使用者導(dǎo)覽至網(wǎng)頁(yè)時(shí)指定。
  • onpopstate:當(dāng)視窗歷史記錄發(fā)生變更時(shí)將使用此屬性。
  • onredo:當(dāng)頁(yè)面上有重做選項(xiàng)時(shí)使用。
  • onresize:當(dāng)使用者調(diào)整視窗大小時(shí)指定。
  • onstorage: 當(dāng)網(wǎng)路儲(chǔ)存有更新時(shí)定義。
  • onundo:當(dāng)有一個(gè)撤銷選項(xiàng)被取消時(shí)使用。
  • onunload:卸載網(wǎng)頁(yè)內(nèi)容時(shí)指定。

4.表單事件屬性

可以在表單內(nèi)發(fā)生的事件被視為流程中的事件。當(dāng)使用者開(kāi)啟或關(guān)閉表單、在表單之間切換或?qū)ΠY料的表單進(jìn)行操作時(shí),會(huì)發(fā)生表單事件。

  • onblur: This attribute will be defined when there is no focus on the form element.
  • onchange: It is defined when there is a change in the value of an element.
  • oncontextmenu: It is used when the user wants to see the context menu.
  • onfocus: It is used when an element gets a focus.
  • oninput: It is used when an element gets input from the user.
  • oninvalid: It is specified when there is an invalid element on a page.
  • onreset: This attribute will be used when a user wants to reset the form.
  • onsearch: It is defined when the user searches for some information in the search field.
  • onselect: It is used when the user selects the text in an element.
  • onsubmit: It is used when the user submits the form.

Examples of implementing HTML address Tag

Here are the following examples mention below

Example #1

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>
HTML Address Tag
</title>
</head>
<body>
<article>
<h2>This is Heading Title</h2>
<p>Information about article will be written here...</p>
</article>
<footer>
<address>
Contact Address:<br>
mycompany.com<br>
#987 5th Main, 10th Cross<br>
XYZ road<br>
New Delhi, India
</address>
</footer>
</body>
</html>

Output:

  • Save the above code in a file with a .html extension
  • Run the html file in a browser, and you would get the output as shown in the below image

HTML 位址標(biāo)籤

Example #2 – Color property

Code:

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>
HTML Address Tag
</title>
<style>
.color_prop {
color: #1c87c9;
}
</style>
</head>
<body>
<article>
<h2>This is Heading Title</h2>
<p>Information about article will be written here...</p>
</article>
<footer>
<address>
<p class="color_prop">Contact Address:</p>
mycompany.com<br>
#987 5th Main, 10th Cross<br>
XYZ road<br>
New Delhi, India
</address>
</footer>
</body>
</html>

Output:

Run the above file in a browser, and you would get the output as shown in the below image:

HTML 位址標(biāo)籤

Example #3 –?Background Color Property

Code:

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>
HTML Address Tag
</title>
<style>
.color_prop {
background-color: #1c87c9;
}
</style>
</head>
<body>
<article>
<h2>This is Heading Title</h2>
<p>Information about article will be written here...</p>
</article>
<footer>
<address>
<div class="color_prop">Contact Address:<br>
mycompany.com<br>
#987 5th Main, 10th Cross<br>
XYZ road<br>
New Delhi, India
</div>
</address>
</footer>
</body>
</html>

Output:

Run the above file in a browser, and you would get the output as shown in the below image:

HTML 位址標(biāo)籤

Example #4 –?Text Decoration

Code:

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>
HTML Address Tag
</title>
<style>
.style1 {
text-decoration: underline;
}
.style2 {
text-decoration: italic;
}
</style>
</head>
<body>
<article>
<h2>This is Heading Title</h2>
<p>Information about article will be written here...</p>
</article>
<footer>
<address>
<p class="style1">Contact Address:</p>
<p class="style2">mycompany.com</p>
#987 5th Main, 10th Cross<br>
XYZ road<br>
New Delhi, India
</div>
</address>
</footer>
</body>
</html>

Output:

Run the above file in a browser, and you would get the output as shown in the below image:

HTML 位址標(biāo)籤

Example #5 –?CSS Fonts

Code:

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>
HTML Address Tag
</title>
<style>
.style1 {
font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;
}
.style2 {
font-weight: bolder;
}
</style>
</head>
<body>
<article>
<h2>This is Heading Title</h2>
<p>Information about article will be written here...</p>
</article>
<footer>
<address>
<p class="style1">Contact Address:</p>
<p class="style2">mycompany.com</p>
#987 5th Main, 10th Cross<br>
XYZ road<br>
New Delhi, India
</div>
</address>
</footer>
</body>
</html>

Output:

Run the above file in a browser, and you would get the output as shown in the below image:

HTML 位址標(biāo)籤

Example #6 –?Text Shadow

Code:

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>
HTML Address Tag
</title>
<style>
.style1 {
text-shadow: 2px 2px #1c87c9;
}
</style>
</head>
<body>
<article>
<h2>This is Heading Title</h2>
<p>Information about article will be written here...</p>
</article>
<footer>
<address>
<p class="style1">Contact Address:</p>
mycompany.com<br>
#987 5th Main, 10th Cross<br>
XYZ road<br>
New Delhi, India
</div>
</address>
</footer>
</body>
</html>

Output:

Run the above file in a browser, and you would get the output as shown in the below image:

HTML 位址標(biāo)籤

Example #7 –?Line Height

Code:

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>
HTML Address Tag
</title>
<style>
.color_prop {
line-height: 2.0;
}
</style>
</head>
<body>
<article>
<h2>This is Heading Title</h2>
<p>Information about article will be written here...</p>
</article>
<footer>
<address>
<div class="color_prop">Contact Address:<br>
mycompany.com<br>
#987 5th Main, 10th Cross<br>
XYZ road<br>
New Delhi, India
</div>
</address>
</footer>
</body>
</html>

Output:

Run the above file in a browser, and you would get the output as shown in the below image:

HTML 位址標(biāo)籤

Conclusion

So far, we have studied how to address tag will be used when an owner wants to specify the address information. In order to quickly contact the author via email, this feature is often combined with the HTML mailto property. The address tag will usually be included in the section < footer> section.

以上是HTML 位址標(biāo)籤的詳細(xì)內(nèi)容。更多資訊請(qǐng)關(guān)注PHP中文網(wǎng)其他相關(guān)文章!

本網(wǎng)站聲明
本文內(nèi)容由網(wǎng)友自願(yuàn)投稿,版權(quán)歸原作者所有。本站不承擔(dān)相應(yīng)的法律責(zé)任。如發(fā)現(xiàn)涉嫌抄襲或侵權(quán)的內(nèi)容,請(qǐng)聯(lián)絡(luò)admin@php.cn

熱AI工具

Undress AI Tool

Undress AI Tool

免費(fèi)脫衣圖片

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅(qū)動(dòng)的應(yīng)用程序,用於創(chuàng)建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Clothoff.io

Clothoff.io

AI脫衣器

Video Face Swap

Video Face Swap

使用我們完全免費(fèi)的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱工具

記事本++7.3.1

記事本++7.3.1

好用且免費(fèi)的程式碼編輯器

SublimeText3漢化版

SublimeText3漢化版

中文版,非常好用

禪工作室 13.0.1

禪工作室 13.0.1

強(qiáng)大的PHP整合開(kāi)發(fā)環(huán)境

Dreamweaver CS6

Dreamweaver CS6

視覺(jué)化網(wǎng)頁(yè)開(kāi)發(fā)工具

SublimeText3 Mac版

SublimeText3 Mac版

神級(jí)程式碼編輯軟體(SublimeText3)

熱門(mén)話題

構(gòu)建網(wǎng)頁(yè)的HTML元素是什麼? 構(gòu)建網(wǎng)頁(yè)的HTML元素是什麼? Jul 03, 2025 am 02:34 AM

網(wǎng)頁(yè)結(jié)構(gòu)需核心HTML元素支撐,1.頁(yè)面整體結(jié)構(gòu)由、、構(gòu)成,其中為根元素,存放元信息,展示內(nèi)容;2.內(nèi)容組織依賴標(biāo)題(-)、段落()及區(qū)塊標(biāo)籤(如、)以提升條理與SEO;3.導(dǎo)航通過(guò)與實(shí)現(xiàn),常用組織鏈接並輔以aria-current屬性增強(qiáng)可訪問(wèn)性;4.表單交互涉及、、與,確保用戶輸入與提交功能完整。正確使用這些元素能提升頁(yè)面清晰度、維護(hù)性及搜索引擎優(yōu)化。

使用HTML5服務(wù)器序列事件處理重新連接和錯(cuò)誤。 使用HTML5服務(wù)器序列事件處理重新連接和錯(cuò)誤。 Jul 03, 2025 am 02:28 AM

使用HTML5SSE時(shí),處理重連和錯(cuò)誤的方法包括:1.了解默認(rèn)重連機(jī)制,EventSource默認(rèn)在連接中斷後3秒重試,可通過(guò)retry字段自定義間隔;2.監(jiān)聽(tīng)error事件以應(yīng)對(duì)連接失敗或解析錯(cuò)誤,區(qū)分錯(cuò)誤類型並執(zhí)行相應(yīng)邏輯,如網(wǎng)絡(luò)問(wèn)題依賴自動(dòng)重連、服務(wù)器錯(cuò)誤手動(dòng)延遲重連、認(rèn)證失效刷新token;3.主動(dòng)控制重連邏輯,如手動(dòng)關(guān)閉並重建連接、設(shè)置最大重試次數(shù)、結(jié)合navigator.onLine判斷網(wǎng)絡(luò)狀態(tài)以優(yōu)化重試策略。這些措施可提升應(yīng)用穩(wěn)定性與用戶體驗(yàn)。

為現(xiàn)代頁(yè)面宣布正確的HTML5 Doctype。 為現(xiàn)代頁(yè)面宣布正確的HTML5 Doctype。 Jul 03, 2025 am 02:35 AM

Doctype是告訴瀏覽器用哪種HTML標(biāo)準(zhǔn)解析頁(yè)面的聲明,現(xiàn)代網(wǎng)頁(yè)只需在HTML文件最開(kāi)頭寫(xiě)。其作用是確保瀏覽器以標(biāo)準(zhǔn)模式而非怪異模式渲染頁(yè)面,且必須位於第一行,前面不能有空格或註釋;正確寫(xiě)法僅有一種,不推薦使用舊版本或其他變體;其他如charset、viewport等應(yīng)放在部分。

使用HTML屬性實(shí)現(xiàn)客戶端表單驗(yàn)證。 使用HTML屬性實(shí)現(xiàn)客戶端表單驗(yàn)證。 Jul 03, 2025 am 02:31 AM

client-sideformvalidationCanbedOnewithOutJavaScriptbyusinghtmlattributes.1)useRequiredToEnforCemandatoryField.2)validateMailsAndUrllSwithTyPeatTributesLikeEmailOrurl,orusepatternwithRegegexforCustomAlorurl

如何使用HTML將選項(xiàng)分組? 如何使用HTML將選項(xiàng)分組? Jul 04, 2025 am 03:16 AM

在HTML中使用標(biāo)籤可以對(duì)下拉菜單中的選項(xiàng)進(jìn)行分組。具體方法是用包裹一組元素,並通過(guò)label屬性定義組名,如:1.包含蘋(píng)果、香蕉、橙子等選項(xiàng);2.包含胡蘿蔔、西蘭花等選項(xiàng);3.每個(gè)為一個(gè)獨(dú)立分組,組內(nèi)選項(xiàng)自動(dòng)縮進(jìn)。注意事項(xiàng)包括:①不支持嵌套;②可通過(guò)disabled屬性禁用整個(gè)組;③樣式受限需結(jié)合CSS或第三方庫(kù)美化;可使用Select2等插件增強(qiáng)功能。

將CSS和JavaScript與HTML5結(jié)構(gòu)有效整合。 將CSS和JavaScript與HTML5結(jié)構(gòu)有效整合。 Jul 12, 2025 am 03:01 AM

HTML5、CSS和JavaScript應(yīng)通過(guò)語(yǔ)義化標(biāo)籤、合理加載順序與解耦設(shè)計(jì)高效結(jié)合。 1.使用HTML5語(yǔ)義化標(biāo)籤如、提升結(jié)構(gòu)清晰度與可維護(hù)性,利於SEO和無(wú)障礙訪問(wèn);2.CSS應(yīng)置於中,使用外部文件並按模塊拆分,避免內(nèi)聯(lián)樣式與延遲加載問(wèn)題;3.JavaScript推薦放在前引入,使用defer或async異步加載以避免阻塞渲染;4.減少三者間強(qiáng)依賴,通過(guò)data-*屬性驅(qū)動(dòng)行為、類名控制狀態(tài),統(tǒng)一命名規(guī)範(fàn)提升協(xié)作效率。這些方法能有效優(yōu)化頁(yè)面性能與團(tuán)隊(duì)協(xié)作。

使用HTML按鈕元素實(shí)現(xiàn)可點(diǎn)擊按鈕 使用HTML按鈕元素實(shí)現(xiàn)可點(diǎn)擊按鈕 Jul 07, 2025 am 02:31 AM

要使用HTML的button元素實(shí)現(xiàn)可點(diǎn)擊按鈕,首先需掌握其基本用法與常見(jiàn)註意事項(xiàng)。 1.使用標(biāo)籤創(chuàng)建按鈕,並通過(guò)type屬性定義行為(如button、submit、reset),默認(rèn)為submit;2.通過(guò)JavaScript添加交互功能,可內(nèi)聯(lián)寫(xiě)法或通過(guò)ID綁定事件監(jiān)聽(tīng)器以提升維護(hù)性;3.利用CSS自定義樣式,包括背景色、邊框、圓角及hover/active狀態(tài)效果,增強(qiáng)用戶體驗(yàn);4.注意常見(jiàn)問(wèn)題:確保未啟用disabled屬性、正確綁定JS事件、避免佈局遮擋,並藉助開(kāi)發(fā)者工具排查異常。掌握這

使用新的HTML5方法(FormData)提交表單數(shù)據(jù) 使用新的HTML5方法(FormData)提交表單數(shù)據(jù) Jul 08, 2025 am 02:28 AM

使用HTML5的FormDataAPI提交表單數(shù)據(jù)更方便,1.它可自動(dòng)收集帶name屬性的表單字段或手動(dòng)添加數(shù)據(jù);2.支持通過(guò)fetch或XMLHttpRequest以multipart/form-data格式提交,適合文件上傳;3.處理文件時(shí)只需將文件附加到FormData並發(fā)送請(qǐng)求即可;4.注意同名字段會(huì)被覆蓋、需處理JSON轉(zhuǎn)換及無(wú)嵌套結(jié)構(gòu)等問(wèn)題。

See all articles