Vanilla HTML Crash Course for Absolute Beginners
HTML Video Tutorial Every Beginner Should Watch
If you prefer learning from a video SemiColon published this YouTube tutorial that goes over exactly the same concepts with practical examples.
Your Vanilla HTML Curriculum
- <DOCTYPE html> signals to browser to render HTML5 not just HTML.
- Tags, self-closing tags, nesting and basic structure.
- Attributes (style for applying inline CSS (note: not always best practice but important to know) and event based attributes like onclick, onkeydown, onkeyup, that trigger JavaScript code.)
- DOM: This is arguably the most important thing about HTML.
- DOM: When you type it is added in JavaScript as a DOM object.
- DOM: HTML attributes are also stored in DOM hierarchy.
- DOM: Learn basic JavaScript functions for manipulating DOM elements. They stem from main DOM object document. Its methods and properties can be accessed as document.title or document.querySelector etc.
- HTML entities for displaying < and > without transforming into tag.
- Quotes, double quotes and basic HTML entity names like ©
- All commonplace tags: H1-H6, p, b, i, span, pre, table, form, input, code, div, head, samp, kbd (a keyboard key tag.)
- Colors. Common HTML names like red, blue, yellow. But also X11 names (CSS3 and SVG1.0) like tomato, cornflowerblue.
- CSS color functions: rgb(), rgba()and HEX #RRGGBB values.
- Links: tag, target="_blank" to open in new tab.
- Lists:
- ,
- tags.
- Images:
or
tag, alt="", title="". - Forms:
- Forms: Submitting as POST and GET.
- Forms: Upload file form.
- HTML5 Semantic Tags: header, main, article, section, menu, menuitem, nav, aside, footer.
- Where to enter CSS and JavaScript? At least 3 different places.
- Two JS program entry points: window.onload & DOMContentLoaded.
- item 1
- item 2
- item 2
- and
This is the break down of what you need to know about HTML.
It's the minimum list of subjects just to get your started.But they follow a natural order focused around only the best parts of HTML.
Who was this tutorial made for? You want to learn to make apps. But you have no previous experience with coding. Someone told you you should learn HTML first. But many tutorials also add CSS and JavaScript. So what should you do?As a complete newbie to coding: What should you learn first?
What is the best order of subjects for learning HTML in 2021?This tutorial aimed to answer those questions!
After over a decade experience with HTML as web technologies continued to evolve I created this curriculum that will guide you through the best parts.HTML is simple. This often leads to underestimating some of its important features like attributes. For example data-varname actually creates dataset['varname'] property on DOM element created by that HTML tag.
You can create source code tags by wrapping text in back-tick quotes.
You don't have to use p tags to create paragraphs, but you still can.
It's recommended to keep author tag so that readers who come from search engine traffic can also discover your social network links and bio.
Note: You can use regular HTML in this article but be careful not to break anything.