zengarden-bits/README.md

15 lines
378 B
Markdown
Raw Normal View History

2022-12-08 10:19:17 +00:00
Demo: https://www.zengardenwebsites.com
2022-12-08 10:18:27 +00:00
2022-12-08 10:37:26 +00:00
A website in a single HTML file. It simply uses the `#anchor` suffix and the `:target` CSS selector to show and hide pages/content.
2022-12-08 10:18:27 +00:00
2022-12-08 10:37:26 +00:00
To create a new page, add a `<section>` with a unique `id`:
2022-12-08 10:18:27 +00:00
```
<section id="contact">
Contact me!
</section>
```
2022-12-08 10:37:26 +00:00
Then you could add a link to it inside `<nav>`:
2022-12-08 10:18:27 +00:00
```
<a href="#contact">Contact</a>
2022-12-08 10:37:26 +00:00
```