HTML (Ngôn ngữ đánh dấu siêu văn bản)
HTML là ngôn ngữ đánh dấu tiêu chuẩn cho trang web. Nó định nghĩa cấu trúc và nội dung trang web sử dụng thẻ, thuộc tính và ngữ nghĩa — nền tảng của World Wide Web.
Loại MIME
text/html
Loại
Văn bản
Nén
Không mất dữ liệu
Ưu điểm
- + Universal support in every web browser and email client
- + Semantic elements improve accessibility and SEO
- + Extensible with CSS for styling and JavaScript for interactivity
- + Human-readable source that is easy to inspect and debug
Nhược điểm
- − Verbose syntax compared to Markdown for simple content
- − Rendering inconsistencies between browsers require testing
- − Static HTML alone has limited interactivity without JavaScript
Khi nào nên dùng .HTML
HTML là bắt buộc cho mọi trang web. Sử dụng HTML ngữ nghĩa cho trợ năng, SEO và khả năng bảo trì. Kết hợp với CSS (kiểu dáng) và JavaScript (tương tác).
Chi tiết kỹ thuật
HTML sử dụng cấu trúc cây DOM với các phần tử (thẻ), thuộc tính và nút văn bản. HTML5 thêm phần tử ngữ nghĩa (
Lịch sử
Tim Berners-Lee tạo HTML vào năm 1991 tại CERN. HTML 4.01 (1999) ổn định web ban đầu. HTML5 (2014) thêm video, canvas, lưu trữ cục bộ, ngữ nghĩa và API — được duy trì bởi WHATWG như tiêu chuẩn sống.
Chuyển đổi từ .HTML
Chuyển đổi sang .HTML
Định dạng liên quan
Thuật ngữ liên quan
Learn More
CSS Units Explained: px, em, rem, vh, and When to Use Each
CSS offers over a dozen length units, each suited to different situations. Understanding the differences between absolute and relative units …
JSON vs YAML vs TOML: Choosing a Configuration Format
Configuration files are the backbone of modern applications. JSON, YAML, and TOML each offer different trade-offs between readability, complexity, and …
Meta Tags for SEO: Title, Description, and Open Graph
Meta tags control how your pages appear in search results and social media shares. This guide covers the essential meta …
Text Encoding Explained: UTF-8, ASCII, and Beyond
Text encoding determines how characters are stored as bytes. Understanding UTF-8, ASCII, and other encodings prevents garbled text, mojibake, and …
Flexbox vs CSS Grid: A Practical Comparison
Flexbox and CSS Grid are complementary layout systems, not competitors. This guide clarifies when to reach for each one and …
How to Format and Validate JSON Data
Malformed JSON causes silent failures in APIs and configuration files. Learn how to format, validate, and debug JSON documents to …