Web standards-HTML-MDN-Docs
Web standards-HTML-MDN-Docs
The HTML head, and its purpose as a metadata container for the document including
key uses:
Setting information like character encoding and title.
Providing metadata for search engines (e.g. <meta name="description"> ) and
social media platforms (e.g. Open Graph Data ), and the Search Engine
Optimization (SEO) benefits.
Linking to icons for use on browsers and mobile platforms.
Linking to stylesheets and script files.
The HTML body and its purpose as a container for the page content.
The anatomy of an HTML element — element, opening tag, content, closing tag,
attributes.
What void elements (also known as empty elements) are, and how they differ from
other elements.
Resources:
Getting started with HTML
What's in the head? Metadata in HTML
Some presentational markup has been repurposed to have new semantic meaning
(e.g. <i> and <b> ).
It is tempting to just use <div> elements wherever a block-level container is
required, but you should be aware of the other available structural elements and
their benefits (such as improved accessibility). Examples include <main> ,
<section> , <article> , <header> , <nav> , and <footer> .
Notes:
One key point to understand here is the difference between semantic
and presentational markup, what these terms mean, and why
semantic markup is important to SEO and accessibility.
The need for heading levels to be used logically, i.e. no skipping levels or using them
arbitrarily because you want to achieve a certain font size (that's a job for CSS).
SEO benefits: for example, keywords are boosted in headings.
Notes:
This conformance criterium doesn't require that you go too deep into
strategies for writing SEO-friendly content, although you should
understand what this means.
Accessibility benefits: Assistive technology (AT) such as screen readers use headings
and landmarks as signposts to navigate content. HTML documents are very difficult
for AT users to use without headings.
Understanding that HTML needs to be correctly nested. If not, the browser has to
guess what you meant your structure to be, and it might not be what you wanted.
Validating your markup using the HTML validator or another similar tool (for example,
view source in Firefox highlights validation errors with a dotted red underline).
Resources:
HTML text fundamentals
Document and website structure
What is accessibility?
2.3 Lists
Learning outcomes:
The HTML structure for the three types of lists — unordered, ordered, and description.
Understand that description lists are less commonly used than the other two types,
with use cases mainly in areas such as academia and documentation.
The correct usage for each list type.
Notes:
Unordered lists are for marking up a list of items where the order doesn't
matter, such as a shopping list.
Ordered lists are for marking up a list of items where the order does
matter, such as a set of directions.
Description lists are for associating a list of terms with descriptions of
those terms, for example, product names and descriptions in a shopping
cart.
The broader use cases of lists, such as navigation menus.
Resources:
HTML text fundamentals > Lists
Advanced text formatting > Description lists
Notes:
It is not necessary to have an exhaustive understanding of all the
semantic elements HTML offers at this stage, but you should understand
that they exist, and how to look them up using MDN if you need them.
Resources:
HTML text fundamentals > Emphasis and importance
Advanced text formatting
A delightful reference for HTML Symbols, Entities and ASCII Character Codes , Toptal
(2023)
2.5 Links
Learning outcomes:
Understand why links are the fundamental feature of the web. There is no web without
links.
The href attribute.
Absolute and relative paths, and when to use them.
Path syntax in detail — slashes, single dot, and double dot.
Link states and why they are important — :hover , :focus , :visited , and :active .
Inline and block-level links.
Understanding the benefits of writing good link text, such as better accessibility for
screenreader users, and potential positive SEO effects.
Resources:
Creating hyperlinks
2.6 Media
Learning outcomes:
The term "replaced element" — what does it mean?
Images, audio, video:
The basics — <img> , <audio> , and <video> tags.
Using src to point to a resource (Paths are also important here; see 2.5 Links).
Using width and height , for example, to avoid unpleasant jerky updates to the UI
once an image has finished loading and is displayed.
Video and audio-specific attributes such as controls and muted .
<sources> .
Optimizing media assets for the web — keep file sizes small.
Media assets and licensing:
Different types of licensing — public domain/CC0, permissive (e.g. CC license,
MIT), copyrighted (rights-managed/royalty-free).
Searching for appropriately licensed media files to use in projects, e.g. via Google
Images , Flickr , and The Noun Project .
Complying with license requirements.
Alternative text ("alt text") for media.
Resources:
What is multimedia? , Geeks for geeks (2023)
Multimedia and embedding
Notes:
There are a lot of input types and form features not explicitly mentioned
here; the purpose is to get a good general introduction to buttons and
form elements, and learn the most common cases. The
advanced/specialized cases can be studied on a need-to-know basis, as
part of a web developer's constant learning throughout their career.
:
<button>
Notes:
Make sure to understand that client-side form validation is really a
usability enhancement, to be used alongside server-side form validation.
It is not a substitute for it.
Making forms accessible — Correct semantics, <label> , and the for attribute.
Notes:
Going back to the argument for semantic HTML (see also 2.2 Good
document structure), you should understand why it is important to use
the right element for the right job. For example, use a <button> to submit
your form, and not a <div> programmed to behave like a <button> .
Understand the features programmed into <button> s and form elements
by the browser by default, and how important they are. Examples include
keyboard accessibility, focus outlines, and semantic meaning for AT to
identify the elements and communicate their meaning.
Form states and why they are important — :focus , :readonly , :disabled , etc.
<textarea> .
<form> elements:
Resources:
HTML tables