HTML 介紹

HTML:HyperText Markup Language,是一個用來建構網頁結構的一種標籤語法,以下是各版本的發佈年份。

年份 版本
1993 HTML
1995 HTML 2.0
1997 HTML 3.2
1997 HTML 4
1999 HTML 4.01
2000 XHTML
2014 HTML 5

撰寫HTML文件時,第一行可以宣告本文件所採用的版本,例如:

HTML 5

<!DOCTYPE html>

XHTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

HTML 4.01

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

其中XHTML強制每個標籤都要有結束,如果沒有外部封閉標籤的,需使用內部封閉的方式,例如:

外部封閉:<p>內容1</p><p>內容2</p>

內部封閉:內容1<br />內容2

目前大部分的瀏覽器都支援HTML5,但若要IE8以前的瀏覽器支援,請加入下面的語法:

<!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

想要測試自己的瀏覽器是不是完全支援所有的HTML5標籤,可以到這個網站來測試看看,以下是為大家整理的HTML標籤:

基礎結構類標籤
標籤 說明 備註
<html></html> 建構整份網頁文件
<head></head> 網頁描述資料
<body></body> 網頁內容

基礎描述類標籤
標籤 說明 備註
<title></title> 網頁標題
<base> 連結參考 針對相對路徑的參考位置
<meta> 頁面描述資料 關鍵字、描述…等
<style></style> CSS樣式 直接在網頁文件中撰寫CSS樣式
<script></script> Javascript語法 直接在網頁文件中撰寫Javascript樣式
<noscript></noscript> 不支援語法時顯示訊息
<link> 連結外部檔案 例如:CSS樣式表、網頁圖示檔…等

內容結構類標籤
標籤 說明 備註
<h1></h1>~<h6></h6> 標題 數字越小權重越高
<p></p> 段落
<br> 跳行
<wbr> 文字過長則斷行 HTML 5新增
<hr> 水平線
<table></table> 表格
<th></th> 標題欄位
<tr></tr>
<td></td>
<caption></caption> 表格標題
<colgroup></colgroup> 欄群組
<col> 欄群組屬性設定
<thead></thead> 表格標題群組
<tbody></tbody> 表格內容群組
<tfoot></tfoot> 表格頁尾群組
<ul></ul> 定義無順序清單
<ol></ol> 定義有順序清單
<li></li> 清單項目
<dl></dl> 定義描述清單
<dt></dt> 描述項目
<dd></dd> 項目說明
<div></div> 定義區塊型的區域
<span></span> 定義單行型的區域
<header></header> 定義網頁標題區域 HTML 5新增
<nav></nav> 定義網頁導覽區域 HTML 5新增
<main></main> 定義網頁主內容區塊 HTML 5新增
<section></section> 定義網頁章節區域 HTML 5新增
<article></article> 定義網頁內容區域 HTML 5新增
<aside></aside> 定義網頁邊欄區域 HTML 5新增
<footer></footer> 定義網頁頁尾區域 HTML 5新增
<details></details> 定義詳細訊息 HTML 5新增
<summary></summary> 定義詳細訊息總結 HTML 5新增
<iframe></iframe> 內嵌頁框
<menuitem></menuitem> 彈出式選單內容 HTML 5新增(僅Firefox支援)

內容描述類標籤
標籤 說明 備註
<b></b> 粗體字
<strong></strong> 粗體字 除了文字樣式上變粗之外,語意上也有加強的意思
<i></i> 斜體字
<em></em> 斜體字 除了文字樣式上變斜之外,語意上也有強調的意思
<small></small> 較小的字
<mark></mark> 突顯的字  HTML 5新增
<del></del> 刪除的字
<ins></ins> 加入的字
<sub></sub> 下標字
<sup></sup> 上標字
<q></q> 引用 用於較短的文字引用
<blockquote></blockquote> 引用 用於較長的文字引用,利用cite屬性說明出處
<abbr></abbr> 縮寫字說明 利用title屬性說明縮寫字
<address></address> 聯絡資訊
<cite></cite> 作品標題
<bdo></bdo> 文字方向 利用dir屬性決定方向(ltr:由左向右、rtl:由右向左)
<dfn></dfn> 術語
<kbd></kbd> 鍵盤輸入 表達需要使用者用鍵盤按下某按鍵
<samp></samp> 電腦回饋內容
<code></code> 程式碼
<pre></pre> 預先格式化 內容會按照在HTML中的排版來顯示
<var></var> 變數
<ruby></ruby> 文字音標 HTML 5新增
<rt></rt> 文字音標內容 HTML 5新增
<rp></rp> 不支援文字音標時顯示 HTML 5新增
<time></time> 定義日期時間 HTML 5新增
<bdo></bdo> 反向文字 HTML 5新增
<bdo></bdo> 對話框 HTML 5新增
<figure></figure> 圖片說明 HTML 5新增
<figcaption></figcaption> 圖片說明內容 HTML 5新增

連結類標籤
標籤 說明 備註
<a></a> 超連結

圖形類標籤
標籤 說明 備註
<img> 圖片
<map></map> 影像連結地圖
<area></area> 影像連結區域
<svg></svg> 網頁向量圖檔 HTML 5新增

表單類標籤
標籤 說明 備註
<form></form> 表單範圍
<input> 表單輸入項目
<fieldset></fieldset> 表單欄位群組
<legend></legend> 表單欄位群組名稱
<select></select> 表單選單
<optgroup></optgroup> 表單選單選項群組
<option></option> 表單選單選項
<textarea></textarea> 表單文字區域
<button></button> 表單按鈕
<datalist></datalist> 表單資料清單
<keygen> 表單金鑰產生欄位 HTML 5新增
<output></output> 表單計算結果欄位
<meter></meter> 量度圖形 HTML 5新增
<progress></progress> 進度圖形 HTML 5新增

多媒體類標籤
標籤 說明 備註
<canvas></canvas> 畫布區域 HTML 5新增
<audio></audio> 聲音內容 HTML 5新增
<video></video> 視訊內容 HTML 5新增
<source> 內容來源 HTML 5新增
<track> 內容字幕指定 HTML 5新增
<embed> 外部程式內容嵌入 HTML 5新增
<object></object> 外部程式內容嵌入 HTML 5新增

28,776 Responses

  1. Blakesmema表示:

    http://www.shth.ru — Надежный партнер в создании идеальной кухни.

  2. вывод из запоя ростов и область вывод из запоя ростов и область .

  3. JeffreyVog表示:

    Chainlist: Simplifying Blockchain Connections In the evolving world of cryptocurrencies Chainlist emerges as a pivotal tool for users looking to seamlessly interact with various blockchain networks. Understanding what Chainlist offers and how it operates can significantly enhance your crypto experience. chainlist org What is Chainlist? Chainlist is a user-friendly platform designed to facilitate easy connections between crypto wallets and blockchain networks. It caters to both new and experienced crypto users by providing a comprehensive list of blockchain networks that can be accessed with just a few clicks. Key Features of Chainlist Extensive Network List: Chainlist provides access to a vast selection of blockchain networks ensuring users can connect to the network of their choice with ease. Seamless Wallet Integration: With Chainlist users can connect their crypto wallets such as MetaMask efficiently facilitating quick and secure transactions. User-Friendly Interface: The platforms intuitive design ensures a smooth user experience making it easy for beginners to navigate through different blockchain networks. Why Use Chainlist? Using Chainlist can considerably enhance your blockchain interactions by simplifying the network connection process. Here are some reasons why you should consider using Chainlist: Reduce Errors: Minimize the chances of manually inputting incorrect network details. Save Time: Quickly switch between networks without having to tweak wallet settings manually. Broaden Access: Easily explore lesser-known or new blockchains without extensive setup procedures. How to Connect Your Wallet Using Chainlist Visit the . Search for the blockchain network you wish to connect with. Click on the Connect Wallet button next to your desired network. Authorize the connection through your wallets interface such as MetaMask. Begin your crypto transactions on the selected network. In summary Chainlist serves as a crucial bridge between crypto users and blockchain networks offering a simplified connection process that enhances both functionality and accessibility. Welcome to Chain List: Your Comprehensive Blockchain Directory Are you looking for a simple way to connect to different blockchain networks? Chain List offers a seamless solution allowing users to discover and connect to thousands of blockchain networks rapidly and efficiently. What is Chain List? Chain List is a user-friendly platform designed to help cryptocurrency enthusiasts developers and investors explore various blockchain networks. With a focus on decentralized technologies it provides a vast database of available networks offering quick reliable connections for users.

  4. Blakesmema表示:

    https://www.shth.ru/ — Лучшие предложения для вашего дома на нашем сайте.

  5. Blakesmema表示:

    кухни на заказ — Уникальные решения для кухни которые соответствуют вашему стилю.

  6. JefferyTar表示:

    mexican rx online: mexican pharmacy online – mexican pharmaceuticals online

  7. вывод из запоя в ростове на дону https://www.domsadremont.ukrbb.net/viewtopic.php?f=3&t=901 .

  8. быстрый вывод из запоя ростов http://stranaua.ukrbb.net/viewtopic.php?f=2&t=59741/ .

  9. infulky表示:

    buy priligy Effects of cyclohexanone RL90 and RL91 in MDA MB 231 SKBr3 MCF 7 parental and its derived sub lines in proliferation

  10. P?ker online Jugabet jugabet777.com .

  11. CharlesHog表示:

    Aerodrome Finance: Unlocking Potential for Growth The world of aerodrome finance is pivotal for ensuring the efficient operation enhancement and expansion of aerodrome facilities globally. With the increasing demand for air travel understanding aerodrome financial processes is more important than ever. Aerodrome fi Why Aerodrome Finance Matters Aerodrome finance plays a critical role in the lifespan of airport projects providing necessary funding from initial development to ongoing management. Here are key reasons why it matters: Infrastructure Development: Secure financial backing enables the construction and maintenance of essential airport infrastructure. Operational Efficiency: Adequate funding ensures that airports can operate smoothly adapting to technological advancements and logistical demands. Economic Growth: Airports serve as economic hubs; their development stimulates job creation and boosts local economies. Aerodrome Finance Strategies Various strategies can be employed to optimize aerodrome finance ensuring both immediate and long-term benefits. Here are a few notable approaches: Public-Private Partnerships PPP These partnerships combine public sector oversight and private sector efficiency leading to shared risks and rewards. They facilitate diverse financial resources and innovative solutions for airport projects. Revenue Diversification Exploring non-aeronautical revenue streams such as retail concessions and property leases can significantly bolster an airports financial resilience. Such diversification allows for a steady income flow independent of ticket sales. Sustainable Financing Adopting sustainable financial practices including green bonds and ESG Environmental Social and Governance criteria aligns with modern ecological standards and attracts environmentally conscious investors.

  12. JefferyTar表示:

    mexican online pharmacies prescription drugs: mexicanpharmgate.com – buying prescription drugs in mexico online

  13. Jdurxi表示:

    г‚·гѓ«гѓ‡гѓЉгѓ•г‚Јгѓ«йЂљиІ©гЃ§иІ·гЃ€гЃѕгЃ™гЃ‹ – バイアグラは薬局で買える? г‚·г‚ўгѓЄг‚№йЂљиІ©

  14. Aviator is ideal for those in India looking for a balance of strategy and luck. The goal? Cash out at the peak multiplier before the plane flies off-screen. Try it in demo mode to refine your skills first. play aviator online aviator real money game .

  15. RobertSam表示:

    What is DeBridge Finance? DeBridge Finance is an innovative solution designed to facilitate seamless cross-chain blockchain operations. It empowers developers and users by allowing the transfer of data and assets across different blockchain networks efficiently and securely. debridge exchange Key Features of DeBridge Finance DeBridge Finance stands out due to its remarkable features which include: Interoperability: The platform provides effective interoperability between multiple blockchains eliminating the boundaries that exist. Security: By leveraging advanced security protocols DeBridge ensures the safe transit of data and assets. Scalability: It is designed to handle a growing number of transactions without compromising on performance. How Does DeBridge Finance Work? DeBridge Finance operates through a combination of smart contracts and decentralized communication protocols. These components work together to authenticate and execute cross-chain data and asset transfers swiftly and securely. Smart Contracts The platform utilizes smart contracts to automate processes and ensure trustless operations across different chain environments. Decentralized Communication Communication across blockchains is made possible through a decentralized message protocol enabling effective data sharing. Benefits of Using DeBridge Finance Choosing DeBridge Finance for cross-chain operations brings several advantages: Cost-Effectiveness: By integrating various blockchains it reduces the cost and complexity of using multiple networks. Developer-Friendly: Offering robust tools and resources DeBridge makes it easier for developers to build cross-chain applications. Enhanced User Experience: Users benefit from smoother transactions without the need to switch between different network interfaces.

  16. Тут можно преобрести сейф огнестойкий в москве купить несгораемый сейф

  17. Blakesmema表示:

    заказать кухню — Сделайте заказ на кухню которая отвечает всем вашим требованиям.

  18. Тут можно преобрести сейф для сайги 12 сейфы для оружия москва

  19. RichardWic表示:

    mexico drug stores pharmacies mexican pharmaceuticals online or pharmacies in mexico that ship to usa http://preview.oberallgaeu-ferien.de/index.shtml?seite=mobile_lis&url=mexicanpharmgate.com&id=24274 pharmacies in mexico that ship to usa pharmacies in mexico that ship to usa medicine in mexico pharmacies and buying prescription drugs in mexico online mexican border pharmacies shipping to usa

  20. StevenLoN表示:

    Unlock the Power of Eigenlayer As the blockchain landscape evolves Eigenlayer emerges as a beacon of innovation offering robust solutions to enhance blockchain security and customization. But what exactly does Eigenlayer bring to the table? Eigenlayer Revolutionizing Blockchain Security Security is paramount in the blockchain world and Eigenlayer takes this seriously. By leveraging state-of-the-art technology Eigenlayer provides an unparalleled layer of protection for blockchain protocols. This ensures that transactions are not only secure but also reliable. Advanced Encryption: Protects data integrity and confidentiality. Scalable Solutions: Ensures that security measures grow with your networks demand. Customization like Never Before One of the most compelling features of Eigenlayer is its customization capabilities. Understanding that each blockchain project has unique needs Eigenlayer offers a flexible architecture allowing projects to tailor solutions to their specific requirements. Modular Design: Adapts to various use cases without sacrificing performance. Interoperability: Seamlessly integrates with existing blockchain systems. Empowering Blockchain Ecosystems By providing these advanced features Eigenlayer doesnt just offer protection and customization; it empowers blockchain developers to push the boundaries of what’s possible. With Eigenlayer the limitations often faced in blockchain scalability and security are becoming a thing of the past. Whether you are a developer seeking better security solutions or an entrepreneur aiming to launch your blockchain project with tailor-made features Eigenlayer provides the tools and the support you need to succeed in the competitive digital landscape. Explore the potential of Eigenlayer today and step into the future of blockchain technology with a partner committed to your success.

  21. GlennSnofs表示:

    best online pharmacies in mexico mexican pharmacy online medications п»їbest mexican online pharmacies

  22. Blakesmema表示:

    кухни под заказ екатеринбург — Широкий выбор материалов и дизайнов для кухонь в Екатеринбурге.

  23. Здесь можно преобрести где купить сейфы в москве сейф купить в москве

  24. Richardnek表示:

    A ring found among the debris of Florida’s recent hurricanes awaits its owner kra19 cc Scattered across Florida’s hurricane-ravaged communities are piles of debris remnants of what were once homes. Cherished memories — photo albums family heirlooms and tokens of love — swallowed by floodwaters and carried miles away are now reduced to mere fragments and discarded amid the wreckage. But in one of these piles of lost memories a small inconspicuous velvet black box was discovered with a ring and a note that read: “I was 18 when my parents gave it to me.” https://kra18c.cc kra18.cc Now Joe Kovach the engineer managing one of the debris sites in Tarpon Springs Florida where the box was found is searching for its owner. “Everyone has been basically dumping their entire lives onto the curb after the storm when everything flooded. My own boss’ house had 30 inches of water in it and I saw his face and just how devastating it can be for everyone” Kovach an engineer with Pinellas County Public Works told CNN. “A lot of people in the community were really affected by these two storms if there’s just a little bit I can do to give back then that’s perfect.” A contractor who was gathering and condensing debris with an excavator discovered the ring when he looked down and saw the box. “This was a needle in a haystack for sure. For something like that to survive all that when everything else was so wet and saturated that was kind of incredible” Kovach said. Although the ring was found after Hurricane Milton Kovach is sure the treasure was initially lost amid the ruins of Hurricane Helene based on the pile of debris it came from which Pinellas County Public Works tracks. It is likely the owner of the ring is from Crystal Beach Ozona or Palm Harbor Kovach said. On Tuesday after the contractor informed him about the ring Kovach posted a photo of the box and the note on several local community Facebook pages asking if it belonged to anyone. He did not include a photo or description of the ring to ensure it is returned to the rightful owner who can accurately describe it. On the inside lid of the box is a gold engraving with the jewelry brand “The Danbury Mint.”

  25. Blakesmema表示:

    заказать кухню — Легко заказать кухню мечты на нашем сайте.

  26. LarryEvini表示:

    impotence pills: Best Canadian online pharmacy – viagra without doctor prescription

  27. Stairlifts表示:

    I want to to thank you for this excellent read!! I certainly loved every little bit of it. I have got you book-marked to look at new things you post…

  28. KurtisCrext表示:

    mail order pharmacy india indian pharmacies safe or top online pharmacy india http://www.harikyu.in/mt4i/index.cgi?id=2&mode=redirect&no=12&ref_eid=8&url=http://indianpharmacyeasy.com indian pharmacies safe indian pharmacies safe buy prescription drugs from india and india online pharmacy indian pharmacies safe

  29. oamjkeldtc表示:

    canadiandrugsgate.com canadian pharmacy drugs gate or canadiandrugsgate https://www.google.tn/url?q=https://canadiandrugsgate.com canadian drugs gate canadian pharmacy drugs gate Best Canadian pharmacy and canadian pharmacy drugs gate canadiandrugsgate.com

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。