All HTML guides
Find a guide to sharing, fixing or building an HTML page.
Guides 721-780 of 2735. Page 13 of 46.
best coding fonts
Monospaced typefaces for code
Pick on the characters that get confused, not on looks. And on a page, a font file is a download, which changes the calculation.
wordpress to static
Turning a managed site into static files
Generating a static copy removes the database, the plugins and the patching. What survives the conversion and what has to be replaced first.
indesign digital publishing
Publishing a print layout digitally
A layout designed for a page keeps its proportions and loses its readability on a phone. Which publications should convert and which should be rebuilt.
indesign to html
Exporting a layout to a web page
Export produces markup positioned to match the page. It preserves appearance at one width and does not reflow, which is the point of a page.
interactive html5 content
Making interactive content with a visual tool
Timeline tools export a folder that runs anywhere. The questions are weight, what happens on touch, and whether the interaction earns its cost.
script online
Sharing a script as a link
Screenplay formatting is a standard and a fixed document is the right carrier. What an address adds is knowing it was opened.
rdp files
What an RDP file is
A connection shortcut in plain text, and a common phishing tool. Why they get stripped, and what to send colleagues instead.
nft whitepaper
Publishing a project document
A project document is read sceptically, on a phone, by people checking whether it changed. Publishing decisions matter as much as the writing.
free online pdf tools
Using free document tools safely
Merge, split, compress and convert are all free somewhere. The question is whether the file left your machine and how long it stayed.
drag and drop website builder
Deciding whether a visual builder suits you
Building visually is genuinely faster for many people. The question nobody asks in the trial is what survives if you stop paying.
web hosting for developers
Choosing hosting as a developer
Static, functions, a container or a machine. Each step up adds capability and adds something you now maintain, and many projects can stop at the first.
booking link on a page
Adding booking to a page
Scheduling tools work. What loses bookings is a bare link with no context, an embed that fails on phones, and too many options.
build a simple freelance website
Building a freelance site in a day
Four pages, one stylesheet, your own domain. What to write, in what order, and why a framework is usually more work than plain styling.
first paying users
Testing whether anybody will pay
Before a product exists, a page describing it honestly with a price and one way to respond tells you more than another month of building.
google analytics for freelancers
Measuring a small freelance site
Small numbers make most analytics meaningless. Three things are worth watching, and enquiries matter more than all the visit figures.
consulting tools
Tools for running consulting work
Five jobs, five tools, and the one nobody sets up properly is how documents reach clients. That one decides how the work looks.
static site generators
Choosing a static site generator
They all turn source content into pages. Pick on the language your team reads and whether the build will still run in three years.
html in discord
How to send an HTML file in Discord so people see the page, not the code
Upload an .html file to Discord and the channel sees source code, not the page. What the file preview shows, and how to send a link that opens in the browser.
html in linkedin post
How to share HTML in a LinkedIn post
LinkedIn does not run your HTML as a post. Choose a document or a working page link, inspect the preview, and keep page corrections separate from card updates.
draggable div
Make a draggable div with HTML and JavaScript
Make a div you can drag with a mouse or a finger, in about 20 lines of JavaScript. Live examples to try, the code to copy, and fixes for jumping and phones.
css transform
CSS transform: move, rotate, scale and skew an element
How CSS transform moves, rotates, scales and skews an element without touching layout. Live examples, why function order matters, and fixes when it does nothing.
back to top button
Make a back to top button with HTML, CSS and JavaScript
Build a back to top button that works without JavaScript, scrolls smoothly, appears after scrolling and shows reading progress. Live examples, code, and fixes.
smooth scroll css
Smooth scroll with CSS, from one line to a finished one-page site
Smooth scroll with one CSS line, plus scroll-margin-top for sticky headers, scrollIntoView for buttons, reduced motion, and a nav that marks the section in view.
before after slider html
Build a before/after slider with HTML and CSS
Build a before/after image comparison slider with two stacked layers, clip-path and a range input or drag handle. Live examples, code to copy, and fixes.
drag and drop file upload html
Build a drag and drop file upload zone in HTML
Build a drag and drop file upload zone in HTML and JavaScript: dragover and drop, a highlight, a click fallback, image previews and type and size checks.
carousel html
Build a carousel in HTML, CSS and JavaScript
Build an image or card carousel in plain HTML, CSS and JavaScript. Scroll-snap for swipe, a sliding track with dots, and autoplay that pauses. Live code to copy.
marquee html
Scrolling text in HTML: the marquee tag and the CSS way
The <marquee> tag is obsolete, though browsers still render it. Build the same scrolling text in CSS with a seamless loop, hover pause and reduced motion.
form submit html
HTML form submit: what the browser sends, and how to take over
What happens when an HTML form is submitted: GET vs POST, why unnamed fields vanish, the submit event, FormData, and requestSubmit() vs submit(). Live examples.
box shadow css
Box shadow in CSS, one value at a time
How box-shadow works value by value, with a live generator, six presets to copy, cards that lift on hover, and fixes for shadows that get cut off or vanish.
z-index css
CSS z-index and stacking contexts, explained with live examples
z-index only works on positioned elements and flex or grid items, and only inside its stacking context. Live examples to try, and fixes for when it seems ignored.
buttons html css
Good-looking buttons with HTML and CSS
Style HTML buttons with CSS, one line at a time: reset, padding, colour, hover, pressed and focus states, plus primary, outline, ghost, danger and loading buttons.
innerhtml
innerHTML in JavaScript: read, set and use it safely
How element.innerHTML reads and sets HTML, when to use textContent or insertAdjacentHTML instead, why += breaks your page, and how to show user text safely.
css cursor
The CSS cursor property: every value and when to use it
Hover every CSS cursor value in a live grid, learn which one fits which job, and add a custom cursor image with a hotspot and the fallback keyword it needs.
queryselector
querySelector and querySelectorAll: find elements with CSS selectors
Find elements with CSS selectors in JavaScript: by id, class, attribute or state. Try selectors live, see why querySelector returns null, and loop a NodeList.
getelementbyid
document.getElementById: get one element and change it
How document.getElementById works: read and set .value, .textContent, .style and .classList, and fix the null error. Live examples and a tip calculator to copy.
fieldset html
Group form controls with fieldset and legend
Group related form fields with fieldset and legend: named radio groups, disabling a whole section at once, CSS for the border and legend, and fixes for phones.
css opacity
CSS opacity: how see-through works, and when to use something else
How CSS opacity works from 0 to 1, why it fades the text too, how to make only the background see-through, and opacity: 0 vs visibility: hidden vs display: none.
input types html
HTML input types: every type, what it shows and what it gives you
Every HTML input type in one live gallery: what each one draws, the value your script gets, the phone keyboard it asks for, and the validation it adds for free.
json.parse
JSON.parse and JSON.stringify in JavaScript
JSON.parse turns JSON text into objects; JSON.stringify turns them back. A live validator, the error each mistake gives, and a table built from JSON in the page.
css display
CSS display: what each value changes, and which one to pick
What each CSS display value changes: new lines, width and height, margins. Why width does nothing on a span, the inline-block gap, and display: none vs hidden.
css position
CSS position explained with live examples
What each CSS position value does, what top and left are measured from, and why absolute jumps to the page corner. Live examples to try, and fixes when it breaks.
css background color
CSS background-color: every format, with live examples
Set a background colour with CSS in hex, rgb, rgba or hsl, fill the whole page, and keep text readable. Live examples to try, code to copy, and fixes.
audio tag html
The HTML audio tag, from controls to a custom player
How the HTML audio tag works: controls, source fallbacks, why autoplay with sound is blocked, the JavaScript API, and a custom player you can try and copy.
ul tag html
The ul tag in HTML: lists, bullets and the CSS that styles them
How the HTML ul tag works: ul vs ol vs dl, nested lists, list-style-type values, ::marker, custom bullets and a flex nav bar. Live examples to edit and copy.
h1 tag html
The h1 tag in HTML: headings, levels and how to size them
What the h1 tag means, how h1-h6 build a page outline, why the level is not the size, and how to size an h1 in CSS with clamp(). Live examples and fixes.
css border
CSS border, from one line to rounded cards
How the CSS border property works: why a border needs a style to show, one side at a time, border-radius for pills and circles, outline vs border, and fixes.
dom html javascript
The DOM in HTML and JavaScript: the page as a tree you can change
What the DOM is, how it differs from your HTML source, and how JavaScript selects, creates, moves and removes elements. Live tree viewer, kanban example and fixes.
text input html
The HTML text input: label it, read it, style it
How to make a text input box in HTML: the input tag with a label, value vs defaultValue, input vs change events, CSS for the field, and live examples to copy.
textarea html
The HTML textarea: size it, grow it, read it
How the HTML textarea works: rows and cols vs CSS, resize: none, auto height, placeholder, reading .value, keeping line breaks, and a character counter.
datalist html
HTML datalist: suggestions for an input, free text still allowed
Add suggestions to any text box with <datalist> and the list attribute. Live examples, datalist vs select, filling it from JavaScript, and fixes when it fails.
object fit css
CSS object-fit: fit any image into a fixed box
How object-fit fits an image or video into a fixed box: fill, contain, cover, none and scale-down side by side, object-position, and why it sometimes does nothing.
css before after
CSS ::before and ::after, explained with live examples
How CSS ::before and ::after work: why content is required, why width is ignored, how to position them, and five real uses. Live examples, code and fixes.
max width css
Use max-width in CSS: width, max-width and min-width
How max-width, width and min-width differ, with live examples: a centered column, images that fit, readable line length in ch, and fixes when max-width fails.
css variables
CSS variables: define once on :root, use everywhere with var()
Define CSS variables on :root, use them with var() and a fallback, override them per component, change them from JavaScript, and fix the ones that do not work.
css background image
CSS background image: url(), size, position and repeat
Set a CSS background image with url(), then control it with background-size, background-position and background-repeat. Live examples, a full-screen hero, and fixes.
span tag html
The HTML span tag: styling part of a line
The span tag wraps part of a line so CSS and JavaScript can reach it. Live examples of span vs div, when strong, em or mark fit better, and why width does nothing.
css filter
CSS filter: every function, live
Every CSS filter function on one live example: blur, brightness, grayscale, sepia, hue-rotate and more. Chaining order, backdrop-filter glass, and fixes.
line height css
Line height in CSS: how it works and what to set
Set line-height in CSS with a unitless number so it scales with each font size. Live examples, the px inheritance trap, one-line centering and fixes.
nav tag html
The nav tag in HTML: when to use it and how to label it
What the HTML nav tag does, when to use it and when a div or footer is enough. Label several navs, mark the current page, add a skip link. Live examples.
hr tag html
The HTML hr tag, and how to style the line
What the hr tag means, why its default line is a grey inset border, and how to set colour, thickness, dashes, gradients and margins. Live styler with CSS to copy.