I would like to code a little web site that will contain several sections like "Home", "Gallery", "Contact Us", "FAQs", and so on.
I thought to do this in one HTML by putting each section in a div
and show only one div
per time (using Javascript / jQuery), based on the chosen menu button.
Alternatively, I could create a separate HTML page per section, and link these pages to the menu buttons.
What are the advantages and disadvantages of these two methods ?
The first method means longer loading times since you have to load everything on the site up front, and it's totally broken for people who have disabled Javascript or whose browsers don't support it. The second method means the user only has to load the content they are actually looking at, and it should work even with non-Javascript browsers.
The main disadvantages that comes to mind for the first method are:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With