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,307 Responses

  1. DannyHycle表示:

    Inside a heat chamber kraken shop Kreycik had almost everything on his side when he went running on that hot day: he was extremely fit relatively young and was an experienced runner. While some people are more vulnerable to heat than others including the very old and young no one is immune — not even the world’s top athletes. Many are expressing anxiety as temperatures are forecast to soar past 95 degrees this week in Paris as the Olympic Games get underway. https://kraken18s.com kraken ссылка Scientists are still trying to unravel the many ways heat attacks the body. One way they do this is with environmental chambers: rooms where they can test human response to a huge range of temperature and humidity. CNN visited one such chamber at the University of South Wales in the UK to experience how heat kills but in a safe and controlled environment. “We’ll warm you up and things will slowly start to unravel” warned Damian Bailey a physiology and biochemistry professor at the university. Bailey uses a plethora of instruments to track vital signs — heart rate brain blood flow and skin temperature — while subjects are at rest or doing light exercise on a bike. The room starts at a comfortable 73 degrees Fahrenheit but ramps up to 104. Then scientists hit their subjects with extreme humidity shooting from a dry 20 to an oppressive 85. “That’s the killer” Bailey said “it’s the humidity you cannot acclimatize to.” And that’s when things get tough.

  2. Antonioblarl表示:

    Inside a heat chamber kraken тор Kreycik had almost everything on his side when he went running on that hot day: he was extremely fit relatively young and was an experienced runner. While some people are more vulnerable to heat than others including the very old and young no one is immune — not even the world’s top athletes. Many are expressing anxiety as temperatures are forecast to soar past 95 degrees this week in Paris as the Olympic Games get underway. https://kraken18s.com kraken вход Scientists are still trying to unravel the many ways heat attacks the body. One way they do this is with environmental chambers: rooms where they can test human response to a huge range of temperature and humidity. CNN visited one such chamber at the University of South Wales in the UK to experience how heat kills but in a safe and controlled environment. “We’ll warm you up and things will slowly start to unravel” warned Damian Bailey a physiology and biochemistry professor at the university. Bailey uses a plethora of instruments to track vital signs — heart rate brain blood flow and skin temperature — while subjects are at rest or doing light exercise on a bike. The room starts at a comfortable 73 degrees Fahrenheit but ramps up to 104. Then scientists hit their subjects with extreme humidity shooting from a dry 20 to an oppressive 85. “That’s the killer” Bailey said “it’s the humidity you cannot acclimatize to.” And that’s when things get tough.

  3. CharlesLit表示:

    mexican pharmaceuticals online mexico pharmacies prescription drugs or mexico drug stores pharmacies https://megalodon.jp/?url=https://mexicandeliverypharma.online mexican border pharmacies shipping to usa medication from mexico pharmacy mexico drug stores pharmacies and mexico pharmacies prescription drugs mexico drug stores pharmacies

  4. MatthewWer表示:

    mexican pharmaceuticals online mexican pharmaceuticals online or medicine in mexico pharmacies https://cse.google.co.bw/url?sa=t&url=https://mexicandeliverypharma.com purple pharmacy mexico price list mexican online pharmacies prescription drugs buying prescription drugs in mexico online and buying prescription drugs in mexico medicine in mexico pharmacies

  5. Charleszep表示:

    Наша цель — предоставить вам не просто кухню а настоящее произведение искусства которое будет радовать вас каждый день https://kuhnyaofabrikaufabrik.ru/. variant3

  6. JoshuaHIT表示:

    url=https://mostbet.com.in/Mostbet bet/url url=https://mostbet.com.in/Mostbet app download/url url=https://mostbet.com.in/Mostbet app/url url=https://mostbet.com.in/Mostbet app download/url url=https://mostbet.com.in/To access the whole set of the Mostbet.com services user must pass verification. For this a gambler should log in to the account enter the “Personal Data” section and fill in all the fields provided there. Then the user must click the green “Save Changes” button. Next step – the player sends scans of the identity documents to the specified email address or via messenger. That’s all and after a while a player will receive confirmation that the verification has been successfully completed. Remember that withdrawals and some Mostbet bonuses are only available to players who have passed verification./url url=https://mostbet.com.in/Mostbet/url url=https://mostbet.com.in/Mostbet app download/url url=https://mostbet.com.in/Mostbet bet/url url=https://mostbet.com.in/MostBet apk/url

  7. Roberttiday表示:

    Mostbet bet Mostbet app Mostbet India Mostbet India Mostbet India is highly popular in 2023 in Asia and worldwide. This betting platform operates on legal terms as it has a license from the commission of Curacao. The online bookie provides gamblers with impressive deals such as esports betting live casino games Toto games Aviator Fantasy sports options live betting service etc. Mostbet Mostbet app Mostbet bet Mostbet

  8. TaylorFrome表示:

    Mostbet India Mostbet app download Mostbet app MostBet apk To access the whole set of the Mostbet.com services user must pass verification. For this a gambler should log in to the account enter the “Personal Data” section and fill in all the fields provided there. Then the user must click the green “Save Changes” button. Next step – the player sends scans of the identity documents to the specified email address or via messenger. That’s all and after a while a player will receive confirmation that the verification has been successfully completed. Remember that withdrawals and some Mostbet bonuses are only available to players who have passed verification. Mostbet bet Mostbet Mostbet India Mostbet India

  9. Blanca表示:

    Thank you for tthe auspicious writeup. It in fact was a
    amusement account it. Look advanced to more added agreeable from you!
    By tthe way, how can we communicate? https://www.waste-ndc.pro/community/profile/tressa79906983/

  10. CharlesLit表示:

    mexican drugstore online purple pharmacy mexico price list or mexico drug stores pharmacies http://www.mafiamania.ru/bitrix/rk.php?goto=http://mexicandeliverypharma.online reputable mexican pharmacies online mexican online pharmacies prescription drugs mexican border pharmacies shipping to usa and mexican mail order pharmacies п»їbest mexican online pharmacies

  11. MatthewWer表示:

    mexican online pharmacies prescription drugs buying prescription drugs in mexico online or buying from online mexican pharmacy https://dramatica.com/?URL=https://mexicandeliverypharma.com::: mexican mail order pharmacies п»їbest mexican online pharmacies buying prescription drugs in mexico and medication from mexico pharmacy mexican drugstore online

  12. CharlesLit表示:

    п»їbest mexican online pharmacies medication from mexico pharmacy or mexican border pharmacies shipping to usa https://images.google.com.na/url?sa=t&url=https://mexicandeliverypharma.online mexican rx online mexico drug stores pharmacies mexico drug stores pharmacies and п»їbest mexican online pharmacies mexico drug stores pharmacies

  13. MatthewWer表示:

    pharmacies in mexico that ship to usa mexico pharmacies prescription drugs or mexican border pharmacies shipping to usa http://gngate.com/portal/frames.php?siteurl=http://mexicandeliverypharma.com mexican pharmaceuticals online buying from online mexican pharmacy mexico pharmacies prescription drugs and medication from mexico pharmacy buying prescription drugs in mexico online

  14. MatthewWer表示:

    medicine in mexico pharmacies mexican border pharmacies shipping to usa or reputable mexican pharmacies online http://www.meinvz.net/Link/Dereferrer/?http://mexicandeliverypharma.com medicine in mexico pharmacies medicine in mexico pharmacies п»їbest mexican online pharmacies and medicine in mexico pharmacies buying prescription drugs in mexico

  15. CharlesLit表示:

    mexico pharmacies prescription drugs reputable mexican pharmacies online or mexican rx online https://image.google.ki/url?q=https://mexicandeliverypharma.online buying from online mexican pharmacy medication from mexico pharmacy buying from online mexican pharmacy and mexico pharmacies prescription drugs mexican drugstore online

  16. Seth Gordon’s resume as director has been an interesting one; ranging from the enjoyable Fistful of Quarters to the weak-weak Four Christmases.

  17. Charleszep表示:

    Проектируем уникальные кухни которые соответствуют вашим желаниям и потребностям https://kuhnyaofabrikaufabrik.ru/. variant4

  18. Just a smiling visitant here to share the love (:, btw outstanding style .

  19. The following time I learn a weblog, I hope that it doesnt disappoint me as a lot as this one. I imply, I do know it was my option to learn, however I really thought youd have one thing fascinating to say. All I hear is a bunch of whining about something that you can fix when you werent too busy on the lookout for attention.

  20. CharlesLit表示:

    best online pharmacies in mexico medicine in mexico pharmacies or mexican rx online https://www.google.bs/url?sa=t&url=https://mexicandeliverypharma.online п»їbest mexican online pharmacies п»їbest mexican online pharmacies buying from online mexican pharmacy and mexican rx online mexican pharmaceuticals online

  21. MatthewWer表示:

    reputable mexican pharmacies online buying from online mexican pharmacy or best online pharmacies in mexico https://www.google.td/url?q=https://mexicandeliverypharma.com buying prescription drugs in mexico online reputable mexican pharmacies online buying from online mexican pharmacy and best online pharmacies in mexico best online pharmacies in mexico

  22. One more thing. I really believe that there are lots of travel insurance sites of respectable companies that allow you enter your holiday details and have you the prices. You can also purchase this international holiday insurance policy on-line by using the credit card. All you need to do should be to enter all travel details and you can understand the plans side-by-side. Merely find the plan that suits your financial budget and needs and after that use your bank credit card to buy it. Travel insurance on the internet is a good way to begin looking for a respected company for international holiday insurance. Thanks for revealing your ideas.

  23. Jacintoexcus表示:

    url=https://rentyachtsincyprus.com/Charter a yacht and experience the ultimate in luxury and convenience for your next special occasion or private vacation in Cyprus. Our highly trained crew is dedicated to ensuring your safety and wellbeing while providing exceptional service that caters to your every need. With our yachts maintained to the highest standards you can relax and enjoy your trouble-free journey in style and comfort. Let us help you create unforgettable memories on the crystal-clear waters of your dream destination in Cyprus./url url=https://rentyachtsincyprus.com/enIn any coastal city of Cyprus – Latchi Paphos Limassol Larnaca Ayia Napa or Protaras you can find and rent for as long as you like a yacht which suits you the best. The captain and crew will take care of the itinerary and will turn your boat trip into an abundance of unique emotions./url url=https://rentyachtsincyprus.com/enFor lovers of outdoor activities and sunbathing by the pool renting a yacht is the best solution because while sunbathing in the bow of a yacht you can simultaneously explore the many marine attractions located along the entire coast of Cyprus./url url=https://rentyachtsincyprus.com/Our company Rent Yachts in Cyprus provides yacht rental services in Cyprus. With our extensive fleet of yachts we offer a variety of options for every taste and budget. Our team of experienced professionals is dedicated to providing exceptional service and ensuring that our customers have an unforgettable experience on the beautiful waters of Cyprus. Book your yacht rental with us and discover the stunning coastline of Cyprus in style and comfort./url

  24. not safe表示:

    online slot

  25. Awesome blog! Is your theme custom made or did you download it from somewhere? A theme like yours with a few simple adjustements would really make my blog stand out. Please let me know where you got your design. Thanks a lot

  26. CharlesLit表示:

    mexican rx online mexican online pharmacies prescription drugs or mexican rx online http://www.hts-hsp.com/feed/feed2js.php?src=https://mexicandeliverypharma.online mexico drug stores pharmacies mexico pharmacies prescription drugs п»їbest mexican online pharmacies and mexico pharmacies prescription drugs pharmacies in mexico that ship to usa

  27. MatthewWer表示:

    buying prescription drugs in mexico buying prescription drugs in mexico online or best online pharmacies in mexico https://maps.google.lu/url?q=https://mexicandeliverypharma.com medication from mexico pharmacy medicine in mexico pharmacies mexico drug stores pharmacies and mexican drugstore online pharmacies in mexico that ship to usa

發佈留言

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