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新增

45,717 Responses

  1. Stormske表示:

    Телеграм психолог. Сеанс у психолога. Переписка с психологом. Нужен хороший психолог?Мы обязательно поможем преодолеть эмоциональный кризис избавиться от тревожности и апатии справиться со стрессом и депрессией связанными с неуверенностью и многим другим.Психолог Сайт психологов.

  2. Dreamqxp表示:

    Голосовой анонимный чат. Сайт психологической помощи онлайн. Сайт психолога консультанта. Раздражительность на членов своей семьи.Правильно оценить происходящее в жизни и найти выход из сложившейся жизненной ситуации.Психологическое консультирование.

  3. Ronaldpayon表示:

    https://maxviagramd.com/# buy generic Viagra online

  4. internetmof表示:

    провайдеры по адресу spb-domashnij-internet001.ru провайдеры интернета в санкт-петербурге

  5. Erlene Essa表示:

    Absolutely agree with you! I’ve also seen similar points discussed on net88, and it’s clear that the topic is receiving increasing attention and thoughtful analysis.

  6. LanceCreed表示:

    order Cialis online no prescription generic tadalafil or best price Cialis tablets http://images.google.bf/url?q=http://zipgenericmd.com buy generic Cialis online discreet shipping ED pills best price Cialis tablets and generic tadalafil Cialis without prescription

  7. Barryorind表示:

    Зеркала KRAKEN всегда актуальны

  8. Mirrorhrg表示:

    Как улучшить отношения с любимым. Психологическая консультация. Анонимный видеочат. Психологическое консультирование.Задайте интересующие вас вопросы или запишитесь на сеанс к психологу.86431 проверенных отзывов.

  9. Eanraoh表示:

    Приобрести диплом ВУЗа Заказ документа о высшем образовании через надежную фирму дарит ряд плюсов для покупателя. Заказать диплом об образовании у проверенной фирмы: doks-v-gorode-tomsk-70.online

  10. JeremyMelty表示:

    online Cialis pharmacy: reliable online pharmacy Cialis – reliable online pharmacy Cialis

  11. Brothertld表示:

    Психотерапевт онлайн отзывы. Онлайн психологическая помощь. Консультация психолога по интернету. Анонимный прием.Индивидуальное консультирование.Психолог Сайт психологов.

  12. Masterzsl表示:

    Услуги психолога. Психолог онлайн отзывы. Telegram-чат с психологом. Индивидуальное консультирование.Психолог владеет множеством приемов и техник которые помогут разобраться в себе.Психологическое консультирование заключается в том чтобы помочь клиенту разобраться в своих проблемах и вместе с ним найти пути выхода из сложной ситуации.Запись на прием оплата подробная информация о специалистах и отзывы клиентов.

  13. 24 hr plumber表示:

    We stumbled over here different website and thought I should check things out. I like what I see so i am just following you. Look forward to exploring your web page repeatedly.

  14. 1win_tlen表示:

    ваучер 1win сегодня https://1win10013.ru .

  15. Wifemwe表示:

    Задать онлайн вопрос психологу. Анонимный видеочат. Анонимный онлайн психолог. Психолог Сайт психологов.Нужен хороший психолог?Частые разногласия с самыми близкими.

  16. 1win_poma表示:

    1він додаток http://1win5068.ru/ .

  17. Профессиональный сервисный центр по ремонту техники в Новосибирске. Мы предлагаем: Сколько стоит отремонтировать робот пылесос YEEDI Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом

  18. 1win_mken表示:

    1win вход через вк http://1win10013.ru .

  19. 1win_scet表示:

    lucky jet вывод денег lucky jet вывод денег .

  20. JeremyMelty表示:

    Modafinil for sale: purchase Modafinil without prescription – modafinil pharmacy

  21. Catask表示:

    Психо online. Лучшие психологи онлайн. Разговоры с психологом. Сколько встреч нужно?Психолог владеет множеством приемов и техник которые помогут разобраться в себе.Нужен хороший психолог?Психологическая помощь онлайн.

  22. mostbet_uwst表示:

    мостбет сайт вход https://www.mostbet10014.ru .

  23. LorenzoLiate表示:

    best price Cialis tablets FDA approved generic Cialis online Cialis pharmacy

  24. Sazrwpz表示:

    Мы изготавливаем дипломы любой профессии по приятным ценам. Вы заказываете документ в надежной и проверенной временем компании. Приобрести диплом академии– url=http://lider.pontima.ru/employer/diplomy-grup-24/lider.pontima.ru/employer/diplomy-grup-24/url

  25. Wilbertsit表示:

    Ukrainian President Volodymyr Zelensky will meet US President Joe Biden and Vice President Kamala Harris in Washington on Thursday. Leon Neal/Getty Images CNN — Ukrainian President Volodymyr Zelensky’s visit to the White House on Thursday could be his final chance to convince a receptive American president of his country’s war aims. megaweb8.at The precise details of the “victory plan” Zelensky plans to present in separate meetings to President Joe Biden and Vice President Kamala Harris are unknown having been closely held until they are presented to the American leaders. But according to people briefed on its broad contours the plan reflects the Ukrainian leader’s urgent appeals for more immediate help countering Russia’s invasion. Zelensky is also poised to push for long-term security guarantees that could withstand changes in American leadership ahead of what is widely expected to be a close presidential election between Harris and former President Donald Trump. The plan people familiar with it said acts as Zelensky’s response to growing war weariness even among his staunchest of western allies. It will make the case that Ukraine can still win — and does not need to cede Russian-seized territory for the fighting to end — if enough assistance is rushed in. That includes again asking permission to fire Western provided long-range weapons deeper into Russian territory a line Biden once was loathe to cross but which he’s recently appeared more open to as he has come under growing pressure to relent. Even if Biden decides to allow the long-range fires it’s unclear whether the change in policy would be announced publicly. Biden is usually apt to take his time making decisions about providing Ukraine new capabilities. But with November’s election potentially portending a major change in American approach to the war if Trump were to win Ukrainian officials — and many American ones — believe there is little time to waste. megaweb6.at https://at-megaweb.com Trump has claimed he will be able to “settle” the war upon taking office and has suggested he’ll end US support for Kyiv’s war effort. “Those cities are gone they’re gone and we continue to give billions of dollars to a man who refused to make a deal Zelensky. There was no deal that he could have made that wouldn’t have been better than the situation you have right now. You have a country that has been obliterated not possible to be rebuilt” Trump said during a campaign speech in Mint Hill North Carolina on Wednesday. Comments like those have lent new weight to Thursday’s Oval Office talks according to American and European officials who have described an imperative to surge assistance to Ukraine while Biden is still in office. As part of Zelensky’s visit the US is expected to announce a major new security package thought it will likely delay the shipping of the equipment due to inventory shortages CNN previously reported according to two US officials. On Wednesday the US announced a package of 375 million. The president previewed Zelensky’s visit to the White House a day beforehand declaring on the margins of the United Nations General Assembly his administration was “determined to ensure that Ukraine has what it needs to prevail in fight for survival.” megaweb8.com “Tomorrow I will announce a series of actions to accelerate support for Ukraine’s military – but we know Ukraine’s future victory is about more than what happens on the battlefield it’s also about what Ukrainians do make the most of a free and independent future which so many have sacrificed so much for” he said.

  26. DannyErype表示:

    Ukrainian President Volodymyr Zelensky will meet US President Joe Biden and Vice President Kamala Harris in Washington on Thursday. Leon Neal/Getty Images CNN — Ukrainian President Volodymyr Zelensky’s visit to the White House on Thursday could be his final chance to convince a receptive American president of his country’s war aims. мега сайт The precise details of the “victory plan” Zelensky plans to present in separate meetings to President Joe Biden and Vice President Kamala Harris are unknown having been closely held until they are presented to the American leaders. But according to people briefed on its broad contours the plan reflects the Ukrainian leader’s urgent appeals for more immediate help countering Russia’s invasion. Zelensky is also poised to push for long-term security guarantees that could withstand changes in American leadership ahead of what is widely expected to be a close presidential election between Harris and former President Donald Trump. The plan people familiar with it said acts as Zelensky’s response to growing war weariness even among his staunchest of western allies. It will make the case that Ukraine can still win — and does not need to cede Russian-seized territory for the fighting to end — if enough assistance is rushed in. That includes again asking permission to fire Western provided long-range weapons deeper into Russian territory a line Biden once was loathe to cross but which he’s recently appeared more open to as he has come under growing pressure to relent. Even if Biden decides to allow the long-range fires it’s unclear whether the change in policy would be announced publicly. Biden is usually apt to take his time making decisions about providing Ukraine new capabilities. But with November’s election potentially portending a major change in American approach to the war if Trump were to win Ukrainian officials — and many American ones — believe there is little time to waste. mega444z36oh4eugj7karzpyatt7ma6ptq5wjil27sfadl5cgcmim7id.onion https://megaweb-20at.com Trump has claimed he will be able to “settle” the war upon taking office and has suggested he’ll end US support for Kyiv’s war effort. “Those cities are gone they’re gone and we continue to give billions of dollars to a man who refused to make a deal Zelensky. There was no deal that he could have made that wouldn’t have been better than the situation you have right now. You have a country that has been obliterated not possible to be rebuilt” Trump said during a campaign speech in Mint Hill North Carolina on Wednesday. Comments like those have lent new weight to Thursday’s Oval Office talks according to American and European officials who have described an imperative to surge assistance to Ukraine while Biden is still in office. As part of Zelensky’s visit the US is expected to announce a major new security package thought it will likely delay the shipping of the equipment due to inventory shortages CNN previously reported according to two US officials. On Wednesday the US announced a package of 375 million. The president previewed Zelensky’s visit to the White House a day beforehand declaring on the margins of the United Nations General Assembly his administration was “determined to ensure that Ukraine has what it needs to prevail in fight for survival.” ћега зеркало “Tomorrow I will announce a series of actions to accelerate support for Ukraine’s military – but we know Ukraine’s future victory is about more than what happens on the battlefield it’s also about what Ukrainians do make the most of a free and independent future which so many have sacrificed so much for” he said.

發佈回覆給「24 hr plumber」的留言 取消回覆

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