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

  1. I’m excited to discover this web site. I wanted to thank you for ones time for this fantastic read!! I definitely appreciated every part of it and I have you bookmarked to check out new things in your blog.

  2. Stephenideox表示:

    url=https://footballwhispers.com/ru/blog/D0BCD0BED181D182D0B1D0B5D182-D0BFD180D0BED0BCD0BED0BAD0BED0B4/где найти детское порно в тг/url url=https://betonmobile.ru/promokod-bk-mostbetдетское порно тг каналы/url url=https://goldenskyfestival.com/mostbet-promokod-gde-vzjat-promokod-dlja-mostbet-promokod-mostbe/детское порно тг/url url=https://mostbet.game/indian heroin sex/url url=https://mostbet-bangladesh.com/indian heroin sex/url

  3. Eugeneaftek表示:

    Tiny shards of plastic are increasingly infiltrating our brains study says порно анальный секс Human brain samples collected at autopsy in early 2024 contained more tiny shards of plastic than samples collected eight years prior according to a preprint posted online in May. A preprint is a study which has not yet been peer-reviewed and published in a journal. “The concentrations we saw in the brain tissue of normal individuals who had an average age of around 45 or 50 years old were 4800 micrograms per gram or 0.5 by weight” said lead study author Matthew Campen a regents’ professor of pharmaceutical sciences at the University of New Mexico in Albuquerque. “Compared to autopsy brain samples from 2016 that’s about 50 higher” Campen said. “That would mean that our brains today are 99.5 brain and the rest is plastic.” That increase however only shows exposure and does not provide information about brain damage said Phoebe Stapleton an associate professor of pharmacology and toxicology at Rutgers University in Piscataway New Jersey who was not involved in the preprint. “It is unclear if in life these particles are fluid entering and leaving the brain or if they collect in neurological tissues and promote disease” she said in an email. “Further research is needed to understand how the particles may be interacting with the cells and if this has a toxicological consequence.” The brain samples contained 7 to 30 more tiny shards of plastic than samples from the cadavers’ kidneys and liver according to the preprint. “Studies have found these plastics in the human heart the great blood vessels the lungs the liver the testes the gastrointestinal tract and the placenta” said pediatrician and biology professor Dr. Philip Landrigan director of the Program for Global Public Health and the Common Good and the Global Observatory on Planetary Health at Boston College. “It’s important not to scare the hell out of people because the science in this space is still evolving and nobody in the year 2024 is going to live without plastic” said Landrigan who was not involved with the preprint.

  4. Thanks for your writing. I would love to say that the health insurance agent also works for the benefit of the particular coordinators of the group insurance cover. The health insurance professional is given a long list of benefits looked for by an individual or a group coordinator. Such a broker really does is search for individuals or perhaps coordinators which will best match up those wants. Then he gifts his suggestions and if all parties agree, the actual broker formulates a binding agreement between the two parties.

  5. Stephenideox表示:

    url=https://footballwhispers.com/ru/blog/D0BCD0BED181D182D0B1D0B5D182-D0BFD180D0BED0BCD0BED0BAD0BED0B4/детское порно тг каналы/url url=https://betonmobile.ru/promokod-bk-mostbetтг канал детское порно/url url=https://goldenskyfestival.com/mostbet-promokod-gde-vzjat-promokod-dlja-mostbet-promokod-mostbe/детское порно тг/url url=https://mostbet.game/heroin drug/url url=https://mostbet-bangladesh.com/indian heroin sex/url

  6. GlennSaunk表示:

    url=https://footballwhispers.com/ru/blog/D0BCD0BED181D182D0B1D0B5D182-D0BFD180D0BED0BCD0BED0BAD0BED0B4/где найти детское порно в тг/url url=https://betonmobile.ru/promokod-bk-mostbetтг канал детское порно/url url=https://goldenskyfestival.com/mostbet-promokod-gde-vzjat-promokod-dlja-mostbet-promokod-mostbe/детское порно тг каналы/url url=https://mostbet.game/indian heroin/url url=https://mostbet-bangladesh.com/heroin drug/url

  7. Everything is very open with a clear description of the challenges. It was truly informative. Your website is useful. Thanks for sharing.

  8. One thing is that often one of the most frequent incentives for utilizing your credit cards is a cash-back or perhaps rebate present. Generally, you will get 1-5 back with various acquisitions. Depending on the cards, you may get 1 back again on most expenditures, and 5 again on purchases made in convenience stores, gas stations, grocery stores in addition to ‘member merchants’.

  9. Matthewwem表示:

    мастер телефон ремонт рядом

  10. Matthewwem表示:

    мастер по ремонту телефонов

  11. Whats up this is kinda of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML. I’m starting a blog soon but have no coding know-how so I wanted to get guidance from someone with experience. Any help would be enormously appreciated!

  12. Having read this I thought it was really informative. I appreciate you taking the time and energy to put this short article together. I once again find myself spending a lot of time both reading and posting comments. But so what, it was still worth it.

  13. Sv477表示:

    Very good post. I’m experiencing some of these issues as well..

  14. You ought to take part in a contest for one of the greatest blogs on the net. I will recommend this website!

  15. medical bad表示:

    It’s nearly impossible to find experienced people for this topic, but you sound like you know what you’re talking about! Thanks

  16. seo 마케팅表示:

    Thank you for your thought-provoking post.프라그마틱

  17. MichaelDam表示:

    generic lipitor prices: cheapest ace inhibitor – cheap lipitor online http://tamoxifen.bid/# tamoxifen rash pictures Cytotec 200mcg price Misoprostol price in pharmacy buy cytotec online

  18. Williampalge表示:

    Misoprostol 200 mg buy online cytotec online or buy cytotec pills online cheap http://maps.google.cd/url?q=https://cytotec.pro Cytotec 200mcg price purchase cytotec Misoprostol 200 mg buy online and buy cytotec pills online cheap Cytotec 200mcg price

  19. This is a topic which is close to my heart… Thank you! Exactly where are your contact details though?

  20. Jamesric表示:

    price of lisinopril 30 mg: cheap lisinopril – zestril 20

  21. DanielTet表示:

    buy cytotec http://cytotec.pro/# Cytotec 200mcg price
    buy lasix online

  22. tubidy表示:

    Can I simply just say what a comfort to find someone who truly knows what they’re talking about online. You actually realize how to bring an issue to light and make it important. More and more people really need to check this out and understand this side of your story. I was surprised you aren’t more popular since you surely have the gift.

  23. Isaaccruse表示:

    Tottenham Hotspur, founded in 1882, is harmonious of England’s most respected football clubs. They eat a storied annals in house-trained and European competitions. Bayern Munich, founded in 1900, is only of the most pre-eminent and in favour football clubs in Germany and Europe, known exchange for their dominance in the Bundesliga and their provocative European record.

    Matches between these two clubs are relatively rare owed to their distinct household leagues, but when they do liquidate encounter, it is many times an astonishing event. The historical encounters between Spurs and Bayern again showcase high-quality football and tactical battles http://tottenhamhotspurvsbayernmunich.ru.

  24. Dino Game 19表示:

    You’ve made some decent points there. I checked on the net to learn more about the issue and found most people will go along with your views on this website.

  25. Isaaccruse表示:

    Tottenham Hotspur, founded in 1882, is a man of England’s most respected football clubs. They from a storied retailing in domestic and European competitions. Bayern Munich, founded in 1900, is harmonious of the most successful and popular football clubs in Germany and Europe, known on their dominance in the Bundesliga and their exciting European record.

    Matches between these two clubs are to some degree rare due to their singular housekeeper leagues, but when they do touch, it is always an overpowering event. The historical encounters between Spurs and Bayern ordinarily showcase high-quality football and clever battles http://tottenhamhotspurvsbayernmunich.ru/.

  26. JoshuaDen表示:

    The man turning jet planes into cool houses жесткое порно Wasilla south central Alaska. Home to bears lakes mountains and a flight school that’s fast becoming a private aviation wonderland. At FLY8MA Pilot Lodge you can opt for a scenic flight tour with glacier views take the controls for a flying lesson or go all in and get your pilot training. When night falls over the broad vistas of the US state they call the Last Frontier you can then climb the steps to two unique accommodation experiences: a converted McDonnell Douglas DC-6 airplane and the newest arrival a McDonnell Douglas DC-9 – still with its DHL livery. The fast-developing site is an ongoing project by FLY8MA founder Jon Kotwicki who previously owned a flight school in Florida before working as a commercial pilot and eventually ending up in Alaska. Flying for the airlines “pays good money and everything but it’s a very boring job” he says. “Driving Uber is more interesting because you could talk to your passengers.” Having fallen in love with the south central region on a vacation spent hiking fishing and spotting bears and grizzlies he chose it as a spot where he and his team – and his trusty Pomeranian dog Foxtrot – could “buy a lot of property and perhaps develop our own airport and run our own show.”

  27. Jamesric表示:

    tamoxifen and grapefruit: buy tamoxifen citrate – tamoxifen for breast cancer prevention

  28. ClaytonProne表示:

    lisinopril 10 mg 12.5mg lisinopril 10 mg canada cost or cost of lisinopril 40mg http://aanorthflorida.org/es/redirect.asp?url=http://lisinopril.guru lisinopril 10mg lisinopril average cost lisinopril tabs 20mg and lisinopril 40 lisinopril 2019

發佈留言

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