HTML Essentials
The small set of patterns behind a useful, accessible first page.
<a href="/resources">Explore resources</a> <button type="button">Show a hint</button>
Quick references for the things you use often and the things you always forget. Copy an example, print a sheet, and get back to building.
The small set of patterns behind a useful, accessible first page.
<a href="/resources">Explore resources</a> <button type="button">Show a hint</button>
Inspect, save and understand your changes without losing the thread.
git status
Read the requests, responses and headers that connect development and security.
GET /guides HTTP/1.1 Host: example.com Accept: text/html
Build flexible layouts, readable text, visible focus, and motion that respects the reader.
*,
*::before,
*::after {
box-sizing: border-box;
}
img {
max-width: 100%;
height: auto;
}Use small functions, safe rendering, explicit loading states, and honest storage feedback.
const visible = resources.filter((resource) => {
const matchesTopic = topic === 'all' || resource.topic === topic;
const matchesText = resource.title.toLowerCase().includes(query.trim().toLowerCase());
return matchesTopic && matchesText;
});Practise data constraints, deliberate queries, grouping, and parameterised input in a disposable database.
CREATE TABLE resources ( id INTEGER PRIMARY KEY, title TEXT NOT NULL, url TEXT NOT NULL UNIQUE, topic TEXT NOT NULL );
Read files, paths, permissions, and processes before making changes. Examples use a Linux shell.
pwd ls -la
Distinguish local interfaces, listening sockets, DNS, HTTP, and packet filters without scanning public targets.
ip address show
Keep source records, event times, counts, hypotheses, and report claims connected.
{"id":"evt-001","time":"10:00:00Z","event":"login_failed","user":"learner-a","source":"192.0.2.10"}Give the model a bounded task, preserve evidence, and check results before they influence code or decisions.
Task: summarise the supplied paragraph for a beginner. Evidence: use only the paragraph below. Output: three bullets, each tied to a sentence. Missing information: say what cannot be determined. Review: I will compare every bullet with the source.