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
- Not-Ethan25 contributions
- short_matthew_f25 contributions
- StevenSwiniarski18 contributions
- asiqurr9 contributions
- THE-Spellchecker8 contributions
- Christine_Yang8 contributions
- CBID26 contributions
- CaupolicanDiaz6 contributions
- AntonioRiccelli4 contributions
- lcart7534 contributions
- cslylla3 contributions
- CliffordMapesa3 contributions
- garanews3 contributions
- douglasnarcizo2 contributions
- JasonClough2 contributions
- MarcoBuono2 contributions
- elliezub2 contributions
- TheZepp1 contribution
- web19805607921 contribution
- kitttrick1 contribution
- anuragG37202438741 contribution
- Hani_Al-Azzawi1 contribution
- hughlilly1 contribution
- ETurner-Bisset1 contribution
- Morethanmom1 contribution
- sharkipelago1 contribution
- Conor12_1 contribution
- Brag2gr81 contribution
- cheriii1 contribution
- lukHotov72434148211 contribution
- DakuwoN1 contribution
- Rohith6xt1 contribution
- itskarelleh1 contribution
- Roshan-Singh1 contribution
- MFValmayor1 contribution
- reece.atkinson1 contribution
- danieldo191 contribution
- artyspangler1 contribution
- shyamtawli1 contribution
- DenisCabrera1 contribution
- vivek_prajapatii1 contribution
- cjparsonson91485222221 contribution
- nicky-diaz1 contribution
- fa125had1 contribution
- JeremyBarbosa1 contribution
- WilkoDG1 contribution
- TheRealArmani1 contribution
- tonichaelmight1 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