Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions blog/2026-11-19-html-preview-missing-assets/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ A relative path starts from another location. For paths in your HTML:

- `styles.css` and `./styles.css` resolve from the current directory.
- `../styles.css` resolves from the parent directory.
- The server resolves `/styles.css` from the site root when it serves the page
over HTTP or HTTPS.
- On an HTTP or HTTPS page, the browser resolves `/styles.css` from the site
root, even when the page is in a subfolder.

A relative path does not mean 'find this file anywhere on my computer.'
[MDN explains how relative references are resolved](https://developer.mozilla.org/en-US/docs/Web/API/URL_API/Resolving_relative_references).
Expand Down Expand Up @@ -230,8 +230,8 @@ do not trust. Do not disable browser security to make a preview work.
## Test a button with inline JavaScript {#check-a-small-javascript-interaction}

Paste the [first, self-contained example](#check-a-self-contained-html-example)
back into the Viewer. Add this button inside its `body`, after the paragraph and
before . Start with **Allow external resources** off:
back into the Viewer. Add this button after the paragraph, just before the
closing `</body>` tag. Start with **Allow external resources** off.

```html
<button type='button' onclick='this.textContent=`Clicked`'>
Expand Down
Loading