4

So I'm very new to coding so forgive me if I'm not making sense. I completed my navigation bar, now, how do I add content when the user clicks on "About" "Gallery" "Resume" and "Contact" page? I have researched everywhere but no one seems to talk about the obvious next step? Would this next step still use HTML and CSS or is it now Javascript?

Would I create a separate html file for every page (About, Gallery, Resume, Contact) and add the information to each file then link it to the main index.html file?

Any help would be appreciated!

Alexandra
  • 631
  • 1
  • 13
  • 24

3 Answers3

6

You need to create a new html page for About, Gallery, etc.

Then you can use:

<a href="/SomeFolder/About.html">About Page</a>

to navigate to that page.

Note that /SomeFolder/About.html is that path of you about page. / means that we start from root folder.

Have a look at: https://www.w3schools.com/tags/att_a_href.asp

Hooman Bahreini
  • 14,480
  • 11
  • 70
  • 137
  • 1
    Thank you so much! It seems I was on the right path of how to attempt it- this makes me so proud! Haha, thanks for the layout! – Alexandra Sep 10 '17 at 15:28
  • How would you then link to a specific section in that page? e.g. `#About-Me` – Eduards Sep 26 '20 at 12:35
  • @LV98: I think [this question](https://stackoverflow.com/questions/15481911/linking-to-a-specific-part-of-a-web-page) would help – Hooman Bahreini Sep 27 '20 at 06:41
3

Welcome to a new world.

Yeah you have to create page for each(About, Gallery, Resume, Contact) with it own content with Html and Css, javascript is optional at this early stage.

Example:

<a href="about.html"> About </a>
<a href="gallery.html"> Gallery</a>
<a href="resume.html"> Resume</a>
<a href="contact.html"> Contact Us </a>

You can learn more on this website https://www.w3schools.com/html/html_links.asp

Hope it helps.

  • 1
    Thank you so much! I understand now! :) And thanks for welcoming me into this new world! I'm having fun and hope to learn a lot more! I'm creating my first website for a friend to hopefully start building a portfolio. – Alexandra Sep 10 '17 at 15:29
2

For this you need to use an a tag like this <a href="/about"></a>

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
David Genger
  • 875
  • 10
  • 25