0

Can I create two pages in the single html file?

22nd Jul 2020, 2:08 PM
Nitin Chavhan
Nitin Chavhan - avatar
1 Antwort
+ 1
Sort of yes but it would be weird and I'm not sure why you'd want to. Suggestion 1: Tabbed Control Maybe you want tabbed content on a single page. A control like this would work: https://jqueryui.com/tabs/ Hit the "Proin dolor" tab to see some content replaced without changing switching to a completely different HTML document. Suggestion 2: Internal Anchors Internal anchors are used to quickly scroll to points within a very tall page. Aside from the scroll position moving, enough content could move to look like another page. Internal anchors are very simple. Just specify id attribute on elements you want to scroll to and use the "a" tag name like <a href="#your_id">your text</a>. This is useful for table of contents. I often set id on h2 or h3 elements and link to them.
22nd Jul 2020, 2:27 PM
Josh Greig
Josh Greig - avatar