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

  1. Simply want too saay your article is aas amazing. The clarity in your
    post iis simply coo and i can assumke you’re an expert on thiis subject.
    Finee with your permiwsion allow mme to grab your RSS fed tto keep updated wijth
    forthcomiing post. Thanks a millin annd plewase continue tthe gratiffying work.

  2. JeremyPsymn表示:

    https://mexstarpharma.online/# п»їbest mexican online pharmacies

  3. Peterhew表示:

    canadian online drugs: canadian pharmacy mall – canadian online pharmacy reviews

  4. Как избежать дубликатов номеров в документах Узнаем почему возникают дублированные номера Практические шаги по предотвращению повторяющихся номеров Зачем нужно следить за уникальностью номеров Способы предотвращения повторений в нумерации документов Методы нумерации документов без дубликатов изготовить номера на автомобиль https://dublikat-znak-automobile.ru/ .

  5. Robertengep表示:

    https://mexstarpharma.com/# mexico pharmacies prescription drugs

  6. Эффективные способы избежать повторения номеров Что делать если встретились дубликаты номеров Как грамотно нумеровать документы Зачем нужно следить за уникальностью номеров Как не нарушить нумерацию и избежать дубликатов Профессиональное руководство по нумерации без ошибок дубликаты номеров дубликаты номеров .

  7. Peterhew表示:

    best india pharmacy: top online pharmacy india – Online medicine home delivery

  8. Oprqwg表示:

    order generic celebrex 100mg – order indomethacin online cheap indocin 50mg without prescription

  9. Thanks for the points shared in your blog. One more thing I would like to mention is that losing weight is not information about going on a fad diet and trying to get rid of as much weight as you’re able in a couple of weeks. The most effective way to shed pounds is by having it slowly and gradually and obeying some basic suggestions which can enable you to make the most from the attempt to lose weight. You may be aware and already be following some of these tips, although reinforcing expertise never affects.

  10. WillieUrill表示:

    canada cloud pharmacy legit canadian pharmacy or best canadian online pharmacy https://images.google.com.my/url?sa=t&url=http://easyrxcanada.com canadian family pharmacy canadian pharmacy uk delivery canadian pharmacy prices and canadian pharmacy price checker canadian pharmacy king reviews

  11. Peterhew表示:

    medication from mexico pharmacy: reputable mexican pharmacies online – mexico drug stores pharmacies

  12. I’m amazed, I must say. Seldom do I come across a blog that’s both educative and amusing, and let me tell you, you have hit the nail on the head. The issue is something not enough people are speaking intelligently about. I’m very happy that I found this during my hunt for something concerning this.

  13. Robertengep表示:

    http://easyrxindia.com/# top 10 pharmacies in india

  14. biardiova表示:

    The codes not agreed on were discussed in detail and a decision about coding was made by consensus of both raters where to buy priligy usa In contrast miR 1254 restoration in TAM R cells significantly reduced their expression

  15. Robertengep表示:

    http://easyrxcanada.com/# safe online pharmacies in canada

  16. Hi! This is my first visit to your blog! We are a group of volunteers and starting a new initiative in a community in the same niche. Your blog provided us beneficial information to work on. You have done a outstanding job!

  17. AngkHesia表示:

    Weinberg I, et al.
    Everyone can flagyl for vaginal infection by shopping online.
    WebMD CommunitiesConnect with people like you, and get expert guidance on living a healthy life.

  18. AgnvHesia表示:

    I think probably the best thing is good hydration — drinking plenty of fluids, voiding on a regular basis, not holding urine too long.
    For the best deals, buy valtrex maximum dose today.
    Clinical guideline 66: Type 2 diabetes.

  19. Hermanswoff表示:

    mexican pharmaceuticals online: purple pharmacy mexico price list – mexican rx online

  20. Feel free to visit my page; Daycare Near Me

  21. Hermanswoff表示:

    legitimate canadian pharmacy: canada pharmacy – reddit canadian pharmacy

  22. 33win表示:

    Good post! We will be linking to this particularly great post on our website. Keep up the great writing.

  23. Danielnof表示:

    india pharmacy mail order india online pharmacy or Online medicine order https://kultameren.fi/pennut/gotourl.php?url=http://easyrxindia.com top online pharmacy india Online medicine home delivery best online pharmacy india and best online pharmacy india buy prescription drugs from india

  24. Stephenideox表示:

    Opening a bank account for a company in Europe can be challenging due to strict anti-money laundering and counter-terrorist financing requirements. Banks require extensive documentation including proof of business model and origin of funds. It is also important to consider that many banks require the personal presence of the founder when opening an account. Step 4: Tax planning Once a company has been incorporated and a bank account opened attention should be paid to tax planning. This includes selecting the best tax scheme possible tax incentives and examining any double tax treaties that may exist between the country of incorporation and other countries where the business is planned to operate. Step 5: Compliance with legal requirements The company must comply not only with tax regulations but also with other legal regulations including labour health and safety and industrial safety laws. It is important to regularly consult with local legal counsel to maintain compliance with all requirements. Conclusion: Opening a company in Europe with a bank account requires careful planning and preparation. Understanding local laws choosing the right jurisdiction and complying with all regulatory requirements are key elements of success in this process. It is advisable to seek professional assistance from international business and tax experts to ensure a smooth start of your business in Europe.

  25. Hermanswoff表示:

    mexico drug stores pharmacies: purple pharmacy mexico price list – reputable mexican pharmacies online

  26. Peterhew表示:

    buying prescription drugs in mexico: mexico pharmacies prescription drugs – medicine in mexico pharmacies

  27. Hello there! This article could not be written much better! Looking at this post reminds me of my previous roommate! He always kept preaching about this. I am going to forward this post to him. Pretty sure he will have a good read. Many thanks for sharing!

  28. If the business is located just outside the larger city’s local calling area, an FX number in the next-closer suburb would provide a limited coverage of the city.

  29. GlennSaunk表示:

    A Regulated United Europe procura constantemente melhorar o seu desempenho e o nivel de servicos prestados com base no feedback constante dos clientes e na captura das necessidades do mercado de servicos juridicos em varios paises europeus. O tempo de resposta as perguntas/e-mails dos clientes tambem e reduzido ao minimo. Na area dos precos a Regulated United Europe tambem esta a tentar adaptar-se as necessidades dos clientes fornecendo um preco fixo para a maioria dos servicos juridicos prestados apesar de na maioria dos paises europeus serem aplicadas principalmente taxas legais horarias. Prestamos aconselhamento juridico e apoio diario aos nossos clientes em todas as fases da implementacao do seu projeto. Solucoes complexas sao desenvolvidas por uma equipe de advogados experientes individualmente para cada cliente. financeira. Estamos comprometidos em expandir as fronteiras corporativas tradicionais e oferecer novas oportunidades de startups para clientes em todo o mundo. O nosso objectivo e acrescentar valor aos negocios internacionais aproveitando as possibilidades ilimitadas da Uniao Europeia durante a sua ascensao tecnologica e facilitando decisoes empresariais perfeitas com apenas um clique de distancia. Trabalho em equipe Na Regulated United Europe reconhecemos que a eficacia do nosso trabalho depende dos esforcos coletivos de cada membro da equipa. A nossa visao centra-se no apoio mutuo e na colaboracao diaria impulsionada pelo envolvimento com clientes parceiros e colegas. Integramos valores corporativos em todos os aspectos de nossas operacoes enfatizando a importancia de definir metas realistas assumir a responsabilidade corporativa pelas decisoes da equipe e acompanhar os projetos ate a conclusao. Abordagem individual

發佈留言

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