#HTML Pages
11 messages · Page 1 of 1 (latest)
You want to link to other pages or do you want to link to different parts of the same page?
Well I want all of the pages to be in the same HTML, if that's possible. There'd be multiple pages, so I guess links to other pages.
I think that's how Twine does it...
Without JavaScript you can't make a single HTML file that contains multiple pages
You can have one really long page and link to sections of that page
How do I divide the page into sections then?
Well that's up to you. You'd create links by giving an a tag an id and then linking to it from the href using a #id as the URL
<a id="example">Example Anchor</a>
You can then create a link to that like this
<a href="#example">Links to the example anchor</a>
If I wanted to use JavaScript for multiple pages, how would I go about that?
Are there any guides for that?
I don't know of any. It's a bit more advanced but it falls in the category of SPA's (single page apps), so that might be worth googling.