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

  1. Johnniegenia表示:

    Study shows how the pandemic may have affected teens’ brains kra9.gl The pandemic’s effects on teenagers were profound — numerous studies have documented reports of issues with their mental health social lives and more. Now a new study suggests those phenomena caused some adolescents’ brains to age much faster than they normally would — 4.2 years faster in girls and 1.4 years faster in boys on average according to the study published Monday in the journal Proceedings of the National Academy of Sciences. By being the first to contribute details on aging differences by sex the study adds to the existing body of knowledge provided by two previous studies on the Covid-19 pandemic and accelerated brain aging among adolescents. https://kra6.gl-kra6.cc kraken2trfqodidvlh4aa337cpzfrhdlfldhve5nf7njhumwr7instad “The findings are an important wake-up call about the fragility of the teenage brain” said senior study author Dr. Patricia K. Kuhl the Bezos Family Foundation Endowed Chair in Early Childhood Learning and codirector of the Institute for Learning and Brain Sciences at the University of Washington in Seattle via email. “Teens need our support now more than ever.” Significant socioemotional development occurs during adolescence along with substantial changes to brain structure and function. The thickness of the cerebral cortex naturally peaks during childhood steadily decreases throughout adolescence and continues to decrease through one’s lifespan the authors wrote. The researchers originally intended to track ordinary adolescent brain development over time starting with MRIs the authors conducted on participants’ brains in 2018. They planned to follow up with them for another scan in 2020. The pandemic delayed the second MRI by three to four years — when the 130 participants based in Washington state were between ages 12 and 20. The authors excluded adolescents who had been diagnosed with a developmental or psychiatric disorder or who were taking psychotropic medications.

  2. WilliamGoorp表示:

    Meet the artist transforming tennis balls into furniture blackspruty4w3j4bzyhlk24jr32wbpnfo3oyywn4ckwylo4hkcyy4yd.onion In the last two years tennis has taken over our closets court-appropriate garb can be found everywhere from Skims to Miu Miu our screens who could forget Zendaya’s turn as the tennis protoge-turned-elite-coach Tashi Duncan in “Challengers” and now — our living rooms. At least that is the hope of Belgian eco-designer Mathilde Wittock who fashions bespoke furniture from discarded tennis balls. Wittock’s sleek modernist chaise longues are entirely cushionless — save for the padding of 500 precisely arranged tennis balls. Her one meter-long benches are similarly sparse with some 270 balls being both stylish and structurally substantial. https://blacksprutbsgl.net блэк спрут официальный сайт “It takes around 24 different manufacturing steps to make a tennis ball which is around five days. Then it has such a short lifespan” Wittock told CNN in a video call from Brussels. “I was looking into tennis balls because I played tennis myself so I know there is a lot of waste.” Around 300 million tennis balls are produced each year — and almost all of them end up in landfills taking over 400 years to decompose. The US Open which ended at the weekend goes through around 70000 each year with Wimbledon not far behind at 55000. Wittock estimates the lifecycle of a ball stands at just nine games depending on the level of tennis being played. “Even if they are contained in their box if the box has been opened the gas inside the tennis balls will be released over time” she said. “Eventually they will get flat and you’ll have to throw them away.”

  3. Edwardunalf表示:

    Actress Gemma Arterton says director tried to pressure her to do sex scene kra4.gl British actress Gemma Arterton has revealed that a director once tried to put pressure on her to film a sex scene despite the fact that it wasn’t included in the script. In an interview with British publication the Radio Times released Tuesday Arterton said that whilst on set the director – who hasn’t been named – instructed her and her co-star to film a sex scene on a bed. “I said ‘No this scene was written for us to be off screen so you just hear the noises’” Arterton told the Radio Times. “I’d never have accepted the role if it was going to be filmed.” https://kra11-gl.cc kra4.gl The actress said that she was pressured by the director to film the scene but that she “flat out” refused to take part in it. Had she been younger at the time Arterton suggested that she might have been more concerned about being fired for refusing to film it. “I only felt like I could say that because I was older” she said. “When I started acting there was a lot of nudity – you were just expected to do it. When I was younger I played sexy characters the girlfriend. As I’ve got older that’s changed because I’m more successful and can choose the parts I want to play” she said. She praised the use of intimacy coordinators in film and television since the #MeToo movement telling the magazine that “it’s a totally different landscape” now. “Anything you’re not comfortable with is not going to happen. I’ve heard other actors that are like ‘I loved it when there was no intimacy coordinator’ but I definitely think it’s better” she said.

  4. Williamflant表示:

    Long-lost copy of the US Constitution found in North Carolina filing cabinet heads to auction kra 4 Historical document appraiser and collector Seth Kaller spreads a broad sheet of paper across a desk. It’s in good enough condition that he can handle it carefully with clean bare hands. There are just a few creases and tiny discolorations even though it’s just a few weeks shy of 237 years old and has spent who knows how long inside a filing cabinet in North Carolina. At the top of the first page are familiar words but in regular type instead of the sweeping Gothic script we’re used to seeing: “WE the People …” And the people will get a chance to bid for this copy of the US Constitution — the only of its type thought to be in private hands — at a sale by Brunk Auctions on Sept. 28 in Asheville North Carolina. https://kraken5af44k24fwzohe6fvqfgxfsee4lgydb3ayzkfhlzqhuwlo33ad.shop kra10.cc The minimum bid for the auction of 1 million has already been made. There is no minimum price that must be reached. This copy was printed after the Constitutional Convention finished drafting the proposed framework of the nation’s government in 1787 and sent it to the Congress of the ineffective first American government under the Articles of Confederation requesting they send it to the states to be ratified by the people. It’s one of about 100 copies printed by the secretary of that Congress Charles Thomson. Just eight are known to still exist and the other seven are publicly owned.

  5. BryantHap表示:

    medication from mexico pharmacy buying prescription drugs in mexico or mexican drugstore online https://maps.google.fm/url?q=https://mexicopharmacy.cheap mexican drugstore online buying from online mexican pharmacy buying from online mexican pharmacy and mexican border pharmacies shipping to usa best online pharmacies in mexico

  6. ArthurKib表示:

    https://pharmbig24.online/# target store pharmacy hours

  7. You have remarked very interesting details! ps decent website. “Pray To ask that the laws of the universe be annulled in behalf of a single petitioner confessed unworthy.” by Ambrose Gwinett Bierce..

  8. Wnngonert表示:

    Hudson B, Flemming J, Sun G, Rand TG.
    You should only can you take bactrim if allergic to penicillin once you have evaluated price options
    The appendix is a small, tubular organ about the size and shape of your pinky finger.

  9. I just added this website to my rss reader, great stuff. Can’t get enough!

  10. JamesNut表示:

    Arimidex: bupropion pharmacy prices – shoppers drug mart pharmacy http://indianpharmacy.company/# online pharmacy india

  11. AJU Дизайн человека https://humandesignplanet.ru Дизайн человека. 4/1 Дизайн человека.

  12. EXR Дизайн человека https://irida-design.ru Дизайн человека. 4/1 Дизайн человека.

  13. RAC Дизайн человека https://irida-design.ru Дизайн человека. 5/2 Дизайн человека.

  14. Josephfub表示:

    reputable mexican pharmacies online buying prescription drugs in mexico mexican pharmaceuticals online

  15. RHJ Дизайн человека https://design-human.ru Дизайн человека. 5/2 Дизайн человека.

  16. MTE Дизайн человека https://designmsu.ru Дизайн человека. 4/1 Дизайн человека.

  17. AXT Дизайн человека https://irida-design.ru Дизайн человека. 2/4 Дизайн человека.

  18. WGG Дизайн человека https://design-human.ru Дизайн человека. 3/5 Дизайн человека.

  19. KNA Дизайн человека https://rasschitat-dizayn-cheloveka-onlayn.ru Дизайн человека. 5/1 Дизайн человека.

  20. ArthurKib表示:

    https://pharmbig24.com/# linezolid pharmacy

  21. Comfortabl y, the post is really the sweetest on that laudable topic. I fit in with your conclusions and also will thirstily look forward to your future updates. Saying thanks definitely will not simply just be sufficient, for the fantastic clarity in your writing. I will promptly grab your rss feed to stay privy of any kind of updates. Pleasant work and much success in your business efforts!

  22. Danielintox表示:

    Summary Kamala Harris and Donald Trump have had a fiery 90-minute debate in Philadelphia – their first of the 2024 US presidential election kra4.cc After shaking hands – it was the first time they had met – the pair debated policy before moving onto more personal attacks Harris said people leave Trump rallies early out of exhaustion and boredom – he said people dont go to hers in the first place kra 4 https://kraken4-gl.cc Trump criticised Harriss record on immigration and the border and also her shifting policy positions – Harris blamed him for Trump abortion bans and for the 6 January attacks on the US Capitol Snap polls suggest Harris won the debate but Trump says afterwards that she lost very badly With the election taking place on 5 November Harris is slightly ahead in national opinion polls – but polls are very tight in key battleground states Shortly after the debate Taylor Swift endorsed Harris on Instagram calling her a gifted leader

  23. PAQ Дизайн человека https://designchita.ru Дизайн человека. 2/4 Дизайн человека.

  24. QWE Дизайн человека https://designmsu.ru Дизайн человека. 4/1 Дизайн человека.

  25. BXK Дизайн человека https://design-human.ru Дизайн человека. 5/1 Дизайн человека.

  26. RCQ Дизайн человека https://irida-design.ru Дизайн человека. 5/2 Дизайн человека.

  27. ArthurKib表示:

    https://indianpharmacy.company/# п»їlegitimate online pharmacies india

  28. Как избежать дубликатов номеров на документах лучшие практики для повторений номеров почему важно избегать дублирование номеров на документации экспертные советы по повторений на документах как избежать по предотвращению дубликатов номеров на бумагах надежные методы предотвращения совпадения номеров на документах избежание дубликатов номеров: лучшие советы эффективные способы предотвращения дубликатов номеров на документах повторений на официальной документации. дубликат гос номера https://avtonomera77.su .

  29. BNZ Дизайн человека https://irida-design.ru Дизайн человека. 4/6 Дизайн человека.

  30. JWK Дизайн человека https://rasschitat-dizayn-cheloveka-onlayn.ru Дизайн человека. 4/6 Дизайн человека.

發佈留言

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