HTML (HyperText Markup Language)
HTML เป็นภาษา markup พื้นฐานของ World Wide Web จัดโครงสร้างเนื้อหาด้วย element สำหรับหัวเรื่อง ย่อหน้า ลิงก์ รูปภาพ ฟอร์ม และมัลติมีเดีย ทุกหน้าเว็บเป็นเอกสาร HTML ที่เบราว์เซอร์ตีความเพื่อเรนเดอร์เนื้อหาแบบภาพ
ประเภท MIME
text/html
ประเภท
ข้อความ
การบีบอัด
ไม่สูญเสียคุณภาพ
ข้อดี
- + 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
ข้อเสีย
- − Verbose syntax compared to Markdown for simple content
- − Rendering inconsistencies between browsers require testing
- − Static HTML alone has limited interactivity without JavaScript
เมื่อใดควรใช้ .HTML
ใช้ HTML สำหรับหน้าเว็บ เทมเพลตอีเมล เว็บไซต์เอกสารประกอบ และเนื้อหาใดก็ตามที่จะแสดงในเบราว์เซอร์
รายละเอียดทางเทคนิค
HTML ใช้โครงสร้างต้นไม้ของ element (DOM) ที่กำหนดโดยแท็กเปิดและปิด เบราว์เซอร์แยกวิเคราะห์ HTML เป็น Document Object Model ใช้ CSS สำหรับการจัดสไตล์ และรัน JavaScript สำหรับการโต้ตอบ
ประวัติ
Tim Berners-Lee สร้าง HTML ในปี 1991 ที่ CERN เป็นส่วนหนึ่งของโปรเจกต์ World Wide Web W3C และ WHATWG พัฒนาภาษาผ่าน HTML 2.0 (1995), XHTML และ HTML Living Standard ปัจจุบัน (HTML5+)
แปลงจาก .HTML
แปลงเป็น .HTML
รูปแบบที่เกี่ยวข้อง
คำศัพท์ที่เกี่ยวข้อง
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 …