HTML: HyperText Markup Language - MDN Web Docs
Có thể bạn quan tâm
- Skip to main content
- Skip to search
HTML (HyperText Markup Language) is the most basic building block of the Web. It defines the meaning and structure of web content. Other technologies besides HTML are generally used to describe a web page's appearance/presentation (CSS) or functionality/behavior (JavaScript).
"Hypertext" refers to links that connect web pages to one another, either within a single website or between websites. Links are a fundamental aspect of the Web. By uploading content to the Internet and linking it to pages created by other people, you become an active participant in the World Wide Web.
HTML uses "markup" to annotate text, images, and other content for display in a Web browser. HTML markup includes special "elements" such as <head>, <title>, <body>, <header>, <footer>, <article>, <section>, <p>, <div>, <span>, <img>, <aside>, <audio>, <canvas>, <datalist>, <details>, <embed>, <nav>, <search>, <output>, <progress>, <video>, <ul>, <ol>, <li> and many others.
An HTML element is set off from other text in a document by "tags", which consist of the element name surrounded by < and >. The name of an element inside a tag is case-insensitive. That is, it can be written in uppercase, lowercase, or a mixture. For example, the <title> tag can be written as <Title>, <TITLE>, or in any other way. However, the convention and recommended practice is to write tags in lowercase.
The articles below can help you learn more about HTML.
In this article
- Beginner's tutorials
- Guides
- How to
- Reference
- Related topics
Beginner's tutorials
Our learn web development core modules contain modern, up-to-date tutorials covering HTML fundamentals.
Your first website: Creating the contentThis article provides a brief tour of what HTML is and how to use it, aimed at people who are completely new to web development.
Structuring content with HTMLThis module covers the basics of the HTML language, before looking at key areas such as document structure, links, lists, images, forms, and more.
HTML formsForms are a very important part of the Web — these provide much of the functionality you need for interacting with websites, e.g., registering and logging in, sending feedback, buying products, and more. This module gets you started with creating the client-side/front-end parts of forms.
Guides
The HTML guides help you build with HTML on the web. They cover topics such as forms, CORS, content preloading, and responsive images.
HTML cheatsheet for syntax and common tasksQuick reference for common HTML syntax and tasks.
Using HTML comments <!-- … -->HTML comments are used to add explanatory notes to the markup or to prevent the browser from interpreting specific parts of the document.
Using HTML form validation and the Constraint Validation APIHTML5 introduced constraint validation to ease form validation on the client side. Basic constraints can be checked without JavaScript by setting attributes on form elements.
Content categoriesHTML is comprised of several kinds of content, each of which is allowed to be used in certain contexts and is disallowed in others. Similarly, each context has a set of other content categories it can contain and elements that can or can't be used in them. This is a guide to these categories.
Using date and time formats in HTMLCertain HTML elements use date and/or time values. This guide describes the formats of the strings that specify these values.
Using microdata in HTMLMicrodata is used to nest metadata within existing content on web pages. Search engines and web crawlers can extract and process microdata to provide a richer browsing experience.
Using microformats in HTMLMicroformats are standards used to embed semantics and structured data in HTML for use by social web applications, search engines, aggregators, and other tools.
Understanding quirks and standards modesHistorical information on quirks mode and standards mode.
Using responsive images in HTMLLearn about responsive images that work well on devices with widely differing screen sizes, resolutions, and other features, improving performance across different devices.
Media types and formats on the webThe <audio> and <video> elements allow you to play audio and video media natively within your content without the need for external software support.
How to
Define terms with HTMLHTML provides several ways to convey description semantics, whether inline or as structured glossaries. This article shows how to properly mark up keywords when defining them.
Use data attributesHTML5 is designed with extensibility in mind for data that should be associated with a particular element but need not have any defined meaning. data-* attributes allow us to store extra information on standard, semantic HTML elements.
Use cross-origin images in a canvasSome HTML elements that provide support for CORS, such as <img> or <video>, have a crossorigin attribute (crossOrigin property), which lets you configure the CORS requests for the element's fetched data.
Add a hitmap on top of an imageImage maps allow hyperlinks to be associated with different parts of an image. This article shows how to create and implement them.
Author fast-loading HTML pagesThese tips are based on common knowledge and experimentation. An optimized web page not only provides for a more responsive site for your visitors but also reduces the load on your web servers and internet connection.
Add JavaScript to your web pageThis article explains how to add JavaScript code to an HTML file.
Reference
HTML consists of elements, each of which may be modified by some number of attributes. HTML documents are connected to each other with links. Browse the complete HTML reference documentation.
HTML elementsReference for all HTML elements.
HTML attributesReference for all HTML attributes. Attributes are additional values that configure elements or adjust their behavior in various ways.
Global attributesReference for global attributes that may be specified on all HTML elements, even those not specified in the standard. This means that any non-standard elements must still permit these attributes, even though those elements make the document HTML5-noncompliant.
Attributes by element
Input typesUsed to create interactive controls for web-based forms.
Script typesIndicates the type of script represented by the element.
meta nameProvides metadata in name-value pairs for the whole page.
Attribute values
rel keywordsDefines the relationship between a linked resource and the current document.
Related topics
Applying color to HTML elements using CSSThis article covers most of the ways you use CSS to add color to HTML content, listing what parts of HTML documents can be colored and what CSS properties to use when doing so.
Help improve MDN
Was this page helpful to you? Yes No Learn how to contributeThis page was last modified on Dec 22, 2025 by MDN contributors.
View this page on GitHub • Report a problem with this content Filter sidebar- HTML
- Guides
- Cheatsheet
- Comments
- Constraint validation
- Content categories
- Date and time formats
- Microdata
- Microformats
- Quirks and standards modes
- Responsive images
- How to
- Define terms with HTML
- Use data attributes
- Use cross-origin images
- Add a hitmap on top of an image
- Author fast-loading HTML pages
- Add JavaScript
- Reference
- Elements
- <a>
- <abbr>
- <acronym> Deprecated
- <address>
- <area>
- <article>
- <aside>
- <audio>
- <b>
- <base>
- <bdi>
- <bdo>
- <big> Deprecated
- <blockquote>
- <body>
- <br>
- <button>
- <canvas>
- <caption>
- <center> Deprecated
- <cite>
- <code>
- <col>
- <colgroup>
- <data>
- <datalist>
- <dd>
- <del>
- <details>
- <dfn>
- <dialog>
- <dir> Deprecated
- <div>
- <dl>
- <dt>
- <em>
- <embed>
- <fencedframe> Experimental
- <fieldset>
- <figcaption>
- <figure>
- <font> Deprecated
- <footer>
- <form>
- <frame> Deprecated
- <frameset> Deprecated
- <h1>
- <head>
- <header>
- <hgroup>
- <hr>
- <html>
- <i>
- <iframe>
- <img>
- <input>
- <ins>
- <kbd>
- <label>
- <legend>
- <li>
- <link>
- <main>
- <map>
- <mark>
- <marquee> Deprecated
- <menu>
- <meta>
- <meter>
- <nav>
- <nobr> Deprecated
- <noembed> Deprecated
- <noframes> Deprecated
- <noscript>
- <object>
- <ol>
- <optgroup>
- <option>
- <output>
- <p>
- <param> Deprecated
- <picture>
- <plaintext> Deprecated
- <pre>
- <progress>
- <q>
- <rb> Deprecated
- <rp>
- <rt>
- <rtc> Deprecated
- <ruby>
- <s>
- <samp>
- <script>
- <search>
- <section>
- <select>
- <selectedcontent> Experimental
- <slot>
- <small>
- <source>
- <span>
- <strike> Deprecated
- <strong>
- <style>
- <sub>
- <summary>
- <sup>
- <table>
- <tbody>
- <td>
- <template>
- <textarea>
- <tfoot>
- <th>
- <thead>
- <time>
- <title>
- <tr>
- <track>
- <tt> Deprecated
- <u>
- <ul>
- <var>
- <video>
- <wbr>
- <xmp> Deprecated
- Attributes
- accept
- autocomplete
- capture
- content
- crossorigin
- dirname
- disabled
- elementtiming
- fetchpriority
- for
- form
- max
- maxlength
- min
- minlength
- multiple
- pattern
- placeholder
- readonly
- rel
- required
- size
- step
- Global attributes
- accesskey
- anchor Experimental Non-standard
- autocapitalize
- autocorrect
- autofocus
- class
- contenteditable
- data-*
- dir
- draggable
- enterkeyhint
- exportparts
- hidden
- id
- inert
- inputmode
- is
- itemid
- itemprop
- itemref
- itemscope
- itemtype
- lang
- nonce
- part
- popover
- slot
- spellcheck
- style
- tabindex
- title
- translate
- virtualkeyboardpolicy Experimental
- writingsuggestions
- Attributes by element
- <input> type
- <input type="button">
- <input type="checkbox">
- <input type="color">
- <input type="date">
- <input type="datetime-local">
- <input type="email">
- <input type="file">
- <input type="hidden">
- <input type="image">
- <input type="month">
- <input type="number">
- <input type="password">
- <input type="radio">
- <input type="range">
- <input type="reset">
- <input type="search">
- <input type="submit">
- <input type="tel">
- <input type="text">
- <input type="time">
- <input type="url">
- <input type="week">
- <script> type
- importmap
- speculationrules Experimental
- <meta> name
- color-scheme
- referrer
- robots
- theme-color
- viewport
- <meta> http-equiv
- <input> type
- Attribute values
- rel keywords
- rel="alternate stylesheet"
- rel="compression-dictionary" Experimental
- rel="dns-prefetch"
- rel="manifest"
- rel="me"
- rel="modulepreload"
- rel="noopener"
- rel="noreferrer"
- rel="preconnect"
- rel="prefetch"
- rel="preload"
- rel="prerender" Non-standard Deprecated
- rel keywords
Từ khóa » Html Offical Website
-
HTML For Beginners The Easy Way: Start Learning HTML & CSS ...
-
HTML Tutorial - W3Schools
-
W3C HTML
-
HTML - Wikipedia
-
How To Build A Website With HTML | DigitalOcean
-
Learn HTML - Codecademy
-
Living Standard - HTML
-
STMicroelectronics: Home
-
Tailwind CSS - Rapidly Build Modern Websites Without Ever Leaving ...
-
Bootstrap · The Most Popular HTML, CSS, And JS Library In The World.
-
The Ultimate Guide To HTML For Beginners: How To Write, Learn ...
-
HTML Full Course - Build A Website Tutorial - YouTube
-
: Home
-
MATLAB & Simulink - MathWorks