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

  1. Bradleygoath表示:

    https://canadiandrugsgate.com/# ed treatment

  2. JefferyTar表示:

    reputable mexican pharmacies online: mexicanpharmgate.com – buying prescription drugs in mexico online

  3. Тут можно преобрести пожаростойкие сейфы несгораемый сейф

  4. Тут можно преобрести купить сейф для охотничьего ружья в москве купить оружейный сейф в москве

  5. сейф表示:

    Здесь можно преобрести заказать сейф сейф купить

  6. JacobKam表示:

    ‘We barely made it out’: Californians desperately flee their homes amid raging wildfires омг омг Terrie Morin 60 and her husband Dave were at the barber shop when they heard about a raging wildfire making headway toward their Camarillo home on Wednesday morning. The couple were hosting two guests at the time but because their guests worked late Morin suspected they slept through the residence’s fire alarms. “I run in the house and I’m banging on the door and they did not hear me. They were knocked out” Morin told CNN. “Get the dog. Get out of here. You don’t have time just get out” she recalled telling them. https://omgto3.com omg даркнет Ten minutes later Dave noticed sparks in their backyard. The temperature was also picking up. “It was hot. It was so hot” Morin recalled. Dozens of homes in California’s Ventura County were set alight in a sweeping wildfire that burned through thousands of acres of land in just a matter of hours midweek –– prompting authorities to send more than 14000 evacuation notices across the region. The Mountain Fire began early Wednesday and was driven by winds gusting over 60 mph. The flames have seared through more than 20485 acres of land according to Cal Fire. The families who evacuated at a moment’s notice some who say they have now lost their homes must deal with other losses that can also be devastating from daily essentials like medications and shoes to meaningful possessions such as sculptures and artwork to treasured keepsakes from the birth of a child or the life of a parent. At least 132 properties have been destroyed by the fire while 88 have been left damaged Ventura County Fire Department officials said Thursday evening. Ten damage inspection teams have been deployed to inspect structures along the path of the blaze. Ten people endured non-life-threatening injuries from the Mountain Fire which are mostly related to smoke inhalation Ventura County Sheriff Jim Fryhoff said.

  7. infulky表示:

    No statin type had a 95 CI that was fully in the range consistent with a clinically important effect The estimate for rosuvastatin from four studies risk ratio 0 free samples of priligy

  8. GlennSnofs表示:

    best india pharmacy indianpharmacyeasy reputable indian online pharmacy

  9. HaroldDus表示:

    prices of viagra at walmart: canadian pharmacy – tadalafil without a doctors prescription

  10. HaroldDus表示:

    drugs to treat ed: Best Canadian online pharmacy – how to help ed

  11. Bradleygoath表示:

    https://mexicanpharmgate.com/# best online pharmacies in mexico

  12. HaroldDus表示:

    buy ed pills: canadiandrugsgate – home remedies for erectile dysfunction

  13. HaroldDus表示:

    men ed: Best Canadian pharmacy – prescription drugs without doctor approval

  14. HaroldDus表示:

    natural pills for ed: canadiandrugsgate – drug medication

  15. LarryEvini表示:

    india online pharmacy: indianpharmacyeasy – india pharmacy

  16. 경산오피表示:

    Hello, I believe your blog could be having internet browser compatibility problems. Whenever I take a look at your site in Safari, it looks fine however when opening in Internet Explorer, it has some overlapping issues. I merely wanted to give you a quick heads up! Other than that, fantastic website!

  17. HaroldDus表示:

    cat antibiotics without pet prescription: Canadian pharmacy online – vacuum pump for ed

  18. JeromeTox表示:

    Optimize your trades across hundreds of DEXes on multiple networks 1inch Exchange 1inch Exchange is a decentralized exchange aggregator. It searches multiple DEXs to find the most efficient path for your trade thus minimizing costs and maximizing returns. By splitting your transaction into parts and executing them across different platforms 1inch achieves the best possible market rates. Explore the 1inch Network: The Future of DeFi The 1inch Network stands at the forefront of decentralized finance DeFi offering traders highly efficient cryptocurrency swap solutions across multiple platforms. This introduction to 1inch will guide you through its features benefits and the impact its making in the crypto trading ecosystem. What Makes 1inch Unique? 1inch is renowned for being a decentralized exchange aggregator. It sources liquidity from various exchanges to offer users the best possible rates. By splitting orders across multiple platforms 1inch minimizes slippage and maximizes the value from each trade. Core Components of 1inch 1inch Aggregation Protocol: A sophisticated routing mechanism that finds the most efficient swapping paths across multiple decentralized exchanges. 1inch Liquidity Protocol: An automated market maker AMM that operates in a gas-efficient way allowing users to provide liquidity and earn a portion of trades. 1inch DAO: A decentralized autonomous organization that allows token holders to participate in the governance of the network. Benefits of Utilizing 1inch By tapping into 1inchs ecosystem traders gain access to: Optimal Rates: The cutting-edge algorithm ensures youre always getting the best prices available. Security and Trust: As a non-custodial service your funds remain under your control at all times. Reduced Slippage: Smart order routing minimizes discrepancies in pricing. Community-Driven: Participate in the governance processes thanks to the 1inch DAO.

  19. FreddyTOm表示:

    Phantom Wallet Extension Official Website Phantom Wallet The Phantom Wallet is revolutionizing the way users handle digital currencies. Designed for the Solana network it offers security and ease for both beginners and experienced users. Dive into its features and learn how it can elevate your crypto management. Why Choose Phantom Wallet? When it comes to managing digital assets security is paramount. Phantom Wallet provides top-tier security features ensuring users’ assets remain safe from threats. Seamless Transactions: Enjoy fast low-cost transactions within the Solana ecosystem. User-Friendly Interface: Navigate easily with an intuitive design that suits all user skill levels. Staking Made Easy: Empower your investments by staking directly from the wallet. Getting Started with Phantom Wallet Setting up your Phantom Wallet is simple. Follow these steps: Download and install the Phantom extension from a trusted source. Create a new wallet or import an existing one by following the prompts. Backup your secret recovery phrase in a safe location. Once set up you can start managing your tokens effortlessly. Phantom Wallet Features Beyond security Phantom Wallet offers: Integration: Easily connect to popular decentralized apps and exchanges. Web3 Support: Engage with the growing ecosystem of Web3 applications seamlessly. Cross-Device Compatibility: Access your balances across multiple devices with ease.

  20. JefferyTar表示:

    best india pharmacy: Indian pharmacy international shipping – online shopping pharmacy india

  21. kaizenaire表示:

    Wow! I’m in awe of the author’s writing skills and talent to convey complicated concepts in a concise and concise manner. This article is a real treasure that deserves all the applause it can get. Thank you so much, author, for sharing your expertise and giving us with such a priceless resource. I’m truly appreciative!

  22. Dennisflabe表示:

    mexico pharmacies prescription drugs pharmacies in mexico that ship to usa or mexican mail order pharmacies https://maps.google.so/url?q=https://mexicanpharmgate.com buying prescription drugs in mexico pharmacies in mexico that ship to usa mexico drug stores pharmacies and mexican border pharmacies shipping to usa mexico drug stores pharmacies

  23. AndreFuh表示:

    Welcome to Stargate Finance
    Stargate Finance is revolutionizing the way you engage with decentralized financial services. Our platform is designed to offer a secure, efficient, and user-friendly experience for all your financial needs in the world of decentralized finance.
    [url=https://strglifi.net/]Stargate Finance[/url]
    Why Choose Stargate Finance?
    In the rapidly evolving world of decentralized finance (DeFi), Stargate Finance stands out as a trusted platform due to its innovative solutions and user-centric approach. Here are some reasons to choose us:

    Seamless integration with major blockchain ecosystems
    Advanced security protocols to protect your assets
    User-friendly interface for beginners and experts alike
    Core Features of Stargate Finance
    Stargate Finance provides a variety of features to enhance your DeFi experience, including:

    Cross-Chain Transactions: Safely send and receive assets across different blockchain networks.
    Liquidity Provision: Earn rewards by providing liquidity to various liquidity pools.
    Yield Farming: Maximize your returns through strategic yield farming opportunities.
    How to Get Started
    Getting started with Stargate Finance is simple:

    Visit our official website and create an account.
    Connect your crypto wallet and fund your account with preferred assets.
    Explore our platform’s features and start managing your investment portfolio.

  24. Brianclork表示:

    Explore the Innovative World of PancakeSwap Finance
    [url=https://sites.google.com/view/pancakeswap-finance-app/home]pancakeswap finance v3[/url]
    PancakeSwap is a leading decentralized finance (DeFi) platform that allows users to trade cryptocurrencies, participate in yield farming, and more. With its user-friendly interface and wide range of features, PancakeSwap has become a popular choice for cryptocurrency enthusiasts.

    Why Choose PancakeSwap?
    Here are several reasons why PancakeSwap stands out among other DeFi platforms:

    Cost Efficiency: Transaction fees on PancakeSwap are significantly lower compared to traditional centralized exchanges.

    Security: As a decentralized platform, PancakeSwap offers enhanced security by eliminating the need for intermediaries.

    Community-Driven: PancakeSwap is built on the Binance Smart Chain and actively involves its community in the platform’s development.

    Key Features of PancakeSwap
    PancakeSwap provides a plethora of features designed to enhance the trading and investing experience of its users. Here are some noteworthy functionalities:

    1. Decentralized Exchange (DEX)
    PancakeSwap enables users to swap BEP-20 tokens without relying on a centralized exchange. This feature facilitates seamless trading without compromising on speed or security.

    2. Yield Farming
    User can engage in yield farming to earn rewards. By providing liquidity to the exchange, participants can earn CAKE, PancakeSwap’s native token, boosting their holdings.

    3. Lottery
    The platform hosts a lottery where participants can buy tickets with CAKE for a chance to win substantial rewards. This adds an element of fun and potential profit-making opportunities.

    4. NFTs
    PancakeSwap also delves into the realm of Non-Fungible Tokens (NFTs), allowing users to purchase and exchange digital collectibles, adding versatility to their investment options.

  25. алкоголизм лечение вывод из запоя ростов http://www.my.forum2.net/viewtopic.php?id=171/ .

  26. анонимный вывод из запоя ростов анонимный вывод из запоя ростов .

  27. Тут можно преобрести цена сейфа для оружия сейф для сайги 12

  28. вывод из запоя круглосуточно ростов-на-дону http://forumbar.anihub.me/viewtopic.php?id=9747/ .

  29. FreddieDIG表示:

    How to Securely Log Into Debank: A Step-by-Step Guide
    Logging into your Debank account is the first step towards managing your DeFi portfolio. Ensuring that your login credentials remain secure is crucial for protecting your investments. In this guide, we’ll walk you through the process of logging into Debank safely and efficiently.
    [url=https://sites.google.com/view/debank-portfolio/home ]Debank airdrop[/url]
    Step 1: Visit the Official Debank Website
    Start by navigating to the official Debank website. Avoid using search engine results to prevent phishing attacks. The URL should be .

    Step 2: Click on the Login Button
    On the homepage, locate the Login button usually positioned at the top right corner of the page. Click on it to proceed to the login page.

    Step 3: Enter Your Credentials
    Input your registered email address and password. Ensure your password is strong, combining letters, numbers, and symbols to enhance security.

    Step 4: Two-Factor Authentication
    It’s recommended to enable Two-Factor Authentication (2FA) for an additional security layer. This can be done using an app like Google Authenticator. Enter the code generated by your 2FA app to continue.

    Step 5: Secure Your Account
    Regularly Update Your Password: Change your password every 3-6 months.

    Use a Password Manager: Helps store and recall complex passwords without difficulty.

    Monitor Account Activity: Regularly check for any unauthorized access or activity.

    Additional Tips for Staying Safe Online
    Be vigilant about where you input your credentials. Always ensure that you have a secure and reliable internet connection. Avoid accessing your Debank account on public Wi-Fi networks, which might be unsecured.

    By following these guidelines, you can enhance the security of your Debank login process and safeguard your investments effectively. Stay aware of the latest security practices and updates from Debank to keep your account secure.

發佈留言

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