HTML
HTML, short for HyperText Markup Language, is the foundation of all web pages. It was created by Tim Berners-Lee in 1993 to define the structure of a web page. Without it, you wouldn’t be able to organize text or add images or videos to your pages. HTML is the beginning of everything you need to know to make your first website.
HTML Structure
HTML is organized into a family tree structure. HTML elements can have parents, grandparents, siblings, children, grandchildren, etc.
<!DOCTYPE html><html><head><title>Title of the document</title></head><body><div><h1>Heading 1</h1><h2>Heading 2</h2></div></body></html>
The <!DOCTYPE>
declaration tells the browser that a given file is a markup .html
file and that a set of web standards must be applied to it. It is the first line of code that goes at the top of every HTML or XHTML file.
HTML Concepts
- Attributes
- Classes
- Comments
- Elements
- Entities
- Favicon
- File Paths
- Forms
- Headings
- IFrames
- Images
- Links
- Lists
- Quotations
- Semantic HTML
- Tables
- Tags
- Text Formatting
- Videos
HTML contributors
- BrandonDusch88 contributions
- short_matthew_f25 contributions
- Not-Ethan25 contributions
- StevenSwiniarski18 contributions
- asiqurr9 contributions
- Christine_Yang8 contributions
- THE-Spellchecker8 contributions
- CBID26 contributions
- CaupolicanDiaz6 contributions
- lcart7534 contributions
- AntonioRiccelli4 contributions
- cslylla3 contributions
- CliffordMapesa3 contributions
- garanews3 contributions
- douglasnarcizo2 contributions
- MarcoBuono2 contributions
- elliezub2 contributions
- JasonClough2 contributions
- vivek_prajapatii1 contribution
- Conor12_1 contribution
- danieldo191 contribution
- MFValmayor1 contribution
- cheriii1 contribution
- Brag2gr81 contribution
- fa125had1 contribution
- sharkipelago1 contribution
- hughlilly1 contribution
- nicky-diaz1 contribution
- Hani_Al-Azzawi1 contribution
- JeremyBarbosa1 contribution
- artyspangler1 contribution
- TheZepp1 contribution
- anuragG37202438741 contribution
- DenisCabrera1 contribution
- TheRealArmani1 contribution
- tonichaelmight1 contribution
- DakuwoN1 contribution
- itskarelleh1 contribution
- cjparsonson91485222221 contribution
- shyamtawli1 contribution
- Rohith6xt1 contribution
- kitttrick1 contribution
- ETurner-Bisset1 contribution
- WilkoDG1 contribution
- reece.atkinson1 contribution
- web19805607921 contribution
- Roshan-Singh1 contribution
- Morethanmom1 contribution
- lukHotov72434148211 contribution
Contribute to Docs
- Learn more about how to get involved.
- Submit feedback to let us know how we can improve Docs.
Learn HTML on Codecademy
- Career path
Front-End Engineer
Front-end engineers work closely with designers to make websites beautiful, functional, and fast.Includes 34 CoursesWith Professional CertificationBeginner Friendly115 hours - Free course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner Friendly7 hours