#HTML
HTML (Hyper Text Markup Language) elements are the building blocks of the Web. HTML defines the basic structure of a page and your styles(CSS) and interactivity(Javascript) are based off of your HTML. Every web page, at it’s core, starts with HTML!
HTML consists of elements in opening and closing tags (in angle brackets, i.e. <h1>This is a Headline!</h1>). The opening tag - <h1> - starts the element and the closing tag - </h1> tells the web browser the element has ended.
Attributes provide more information about your HTML element. They consist of a name and value pair. For example:
<p lang=“en-us”>This paragraph is in English</p>
This <p> element has a language attribute (lang) with the value of English (en-us). This attribute indicates to the browser the <p> element’s content will be in English.
Well-written HTML is clean, lean, and semantic. The HTML element should match the role of the content. For example:
<header> tag for a page’s header
<nav> tag for a navigation bar
<p> tag for paragraphs or blocks of text
Let’s use some of the resources below to get you writing your first web page with HTML!
As an opening exercise... Go to your favorite website and type in:
Cmd + Option + I (on Mac) OR Ctrl + Shift + I (on Windows)
This open’s your browser’s Developer Tools. Here you can inspect the page’s HTML! Have a look around, see how they organized the code, and see if you can recognize some basic HTML elements.
If this is your first time with HTML/CSS, we encourage you to go through our First Timer's Guide.
- 💻 - interactive courses, labs, or problems
- 📹 - videos
- 🎧 - podcasts
- 📚 - books or long reads
- 📄 - articles, short reads, or tutorials
- 💰 - paid resource
###Beginner
- CodeAcademy HTML & CSS - CodeAcademy’s HTML fundamentals is a great starter for first-timers with HTML. It will teach you basic elements while completing interactive challenges in your browser. Plus, it’s free! 💻
- Khan Academy Intro to HTML - Free - Great HTML primer with some sprinkled in CSS (you’ll quickly learn it’s hard to separate HTML from CSS...well-written HTML leads to better CSS and vice-versa!) 💻
####Blog
- Building Your First Web Page by Shay Howe - goes in-depth on what HTML is, understanding elements, attributes, tags, and how to pull everything together to write HTML markup for your first web page. 📄
- HTML Dog Beginner Tutorial - Learn about lists, links, tables, forms, and pulling it all together! 📄
####Video
- Lynda.com videos are free with a DC Public Library card. You can be a resident of DC, NoVA, or MD to apply for a DCPL card! The org code on Lynda.com is dclibrary.org. 📹
- HTML Structure, Syntax, and Semantics - What is structure? What is syntax? What are semantics? This set of videos will set you on the right path. Free with a DC library card! 📹
####Projects
- Write the HTML for this screenshot of Mint.com.
- Write the HTML for the Google homepage (test your knowledge of h1s, forms, and navs)
###Intermediate ####Blog
- HTML Dog Intermediate Tutorial - Learn about
<span>and<div>elements (and how not to overuse them). 📄 - OverAPI HTML Cheat Sheet - Cheat Sheet for all your HTML needs! 📄
###Video
- Introduction to HTML - Form elements - Tuts+ is subscription based but you can sign up for a free trial. 📹
- How to Build a Form with HTML - Treehouse - FLearn to build better forms using HTML! 📹
###Projects
- Write the HTML a site with a home page (index.html) and an about page (about.html).
###Advanced ###Blog
- HTML Dog Advanced Tutorial - Final HTML Dog tutorial. 📄
- HTML Semantics and Front-End Architecture by Nicholas Gallagher. 📄
###Projects
- Write the HTML markup for Vox.com
- Write the HTML markup for the New York Times homepage
###Books
- HTML & CSS by Jon Duckett. 📚