update
This commit is contained in:
parent
d0a56742e3
commit
f00c6f18e5
|
@ -1,14 +1,14 @@
|
||||||
Demo: https://www.zengardenwebsites.com
|
Demo: https://www.zengardenwebsites.com
|
||||||
|
|
||||||
A website in a single HTML file. It simply uses the #anchor suffix and the :target CSS selector to show and hide pages/content.
|
A website in a single HTML file. It simply uses the `#anchor` suffix and the `:target` CSS selector to show and hide pages/content.
|
||||||
|
|
||||||
To create a new page, add a <section> with a unique id:
|
To create a new page, add a `<section>` with a unique `id`:
|
||||||
```
|
```
|
||||||
<section id="contact">
|
<section id="contact">
|
||||||
Contact me!
|
Contact me!
|
||||||
</section>
|
</section>
|
||||||
```
|
```
|
||||||
Then you could add a link to it inside <nav>:
|
Then you could add a link to it inside `<nav>`:
|
||||||
|
|
||||||
```
|
```
|
||||||
<a href="#contact">Contact</a>
|
<a href="#contact">Contact</a>
|
||||||
|
|
Loading…
Reference in New Issue