Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML Introduction to HTML and CSS 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
PLUS
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
seal-mask
.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.