Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML Introduction to HTML and CSS (2016) Adding a New Web Page Write the HTML

"Experience" link on the web page

How does the web page know where to link my resume.html file? It is currently linked to "Experience" section of the web page, as it should be, but i am trying to understand how does it know where to link it to.

Thank you.

2 Answers

Michael Cockrell
Michael Cockrell
Courses Plus Student 542 Points

its not really "linked" to anything. when you set up a web server you tell it what folder to look in for html files. this is your "root" folder. it will automatically pull anything with certain titles such as index.html, index.htm, index.php, etc. so when you add /resume.html to the end of the address bar in your browser you are telling the web server to display the file called resume.html. by default it will only look in your root folder. however, if you create another folder in your root folder called pages and put your resume.html in that folder, then to access it you would have to go to whatever your home page is then tell it to go into the pages folder to look for the resume.html file. like this http://yourhomepage.com/pages/resume.html

you dont have to do any "linking" unless you are using css stylesheets, javascript scripts, frameworks such as bootstrap. then those links will be in the <head> section of your html document.

Cody Flack
.a{fill-rule:evenodd;}techdegree seal-36
Cody Flack
Front End Web Development Techdegree Graduate 13,213 Points

Not entirely sure if this answers your question, but from my understanding web servers generally search for the 'index.html' file before any others. So I suggest renaming the file you want the user to see when they type in your websites URL.