+ 2
how to add new html page on code playground?
I want to do a big project and I need several HTML5 page but alas the console have only proposed one
1 Answer
+ 2
We are provided one HTML, CSS and JS tab.
To work with this, I used jQuery Mobile to simulate multiple pages:
https://code.sololearn.com/W6nybHh1bGHX/?ref=app
The technique used is some eye-candy on top of normal behavior of "fragment URIs", which are #hashed in-page anchors resulting in a jump:
https://www.w3.org/TR/html401/intro/intro.html#fragment-uri
* The link above itself contains a fragment identifier ( #fragment-uri ).
If you visit the page (observe that it jumps to the right section) then look at the page source, you can see that it jumps to the element identified by:
<a name="fragment-uri">