How Do You Fetch Data from an API with the Fetch API?
Learn to call APIs with fetch and async await: read JSON, send POST data, check status codes, handle errors and timeouts, and render the result.
51 posts about Web Development: questions with answers, tutorials and articles, newest first.
Learn to call APIs with fetch and async await: read JSON, send POST data, check status codes, handle errors and timeouts, and render the result.
Promises and async await let JavaScript handle slow work without callback pyramids. Learn states, chaining, error handling and running tasks in parallel.
Learn how events travel through the page and how to use addEventListener, event delegation and listener options to build responsive, efficient interfaces.
The DOM is the browser's live tree of your page. Learn to select elements and change text, classes and structure with JavaScript without security mistakes.
Understand how JavaScript functions are declared and called, and how scope, closures and let, const and var decide which variables your code can see.
HTTPS is HTTP protected by TLS encryption and a certificate. Learn how the two differ, what the lock icon proves, and how to switch a website to HTTPS.
A beginner guide to declaring variables with let and const, the JavaScript data types, and the arithmetic, comparison and logical operators.
JavaScript is the language that makes web pages interactive. Learn what it is, how it relates to HTML and CSS, and what it can do in the browser.
Learn the web accessibility basics: semantic HTML, text alternatives, labelled forms, keyboard focus, contrast, ARIA and how to test with assistive tools.
Make a site adapt to any screen using the viewport tag, fluid CSS and mobile first media queries, plus preference and container queries.
Learn CSS Grid from tracks and the fr unit to responsive galleries, named grid areas, alignment and subgrid, and when to choose Grid over Flexbox.
Learn how flex containers and flex items work, how to align and size them, and how to assemble a complete page layout with CSS Flexbox.
The CSS box model wraps every element in content, padding, border and margin. Learn how each layer works and why box-sizing matters.
Learn to mark dates, times and durations with the time element, use valid datetime formats and show them in the reader's own locale.
Understand CSS selectors, combinators and pseudo-classes, and how specificity and the cascade decide which style rule applies to an element.
CSS controls how HTML looks. Learn rule syntax, how to link a stylesheet, and the basic properties for colours, fonts and spacing.
Build HTML forms step by step: the form element, input types, labels, select and textarea controls, and built-in validation with examples.
Semantic HTML uses elements that describe what content means. See the key elements and why they help accessibility, search engines and developers.
Understand the difference between HTML tags, elements and attributes, how nesting works, and which global attributes every beginner should know.
HTML is the language that structures every web page. Learn tags, elements and attributes, then build and open your first page in a browser.