Main page would only have several buttons that will show the user designated content.
Those buttons in #home is not in header, so buttons will be only shown on #home only.
<section id="home">
<a href="#content">content</a>
<a href="#something">something</a>
<a href="#someelse">someelse</a>
</section>
<section id="content">
<section id="something">
<section id="someelse">
I found :target method on css which seems very easy to use and works ok, but #home is not displaying.
It seems like it would only work when I have a fixed header outside section
section {
display: none;
}
section:target {
display: block;
}
Each section other than #home will have back button which will send user to #home as well. This was fairly easy on :target method because I just used a href="#", and it worked.
What other method would I be able to use ?
#hometo show by default when the header is likewww.example.com/html.htmland then show the others when it's specified likewww.example.com/html.html#content?www.example.comwill show#homecontent which would be just buttons for other contents, and after button is clicked, it will bewww.example.com#contentand will show the#contentcontent.