Question about HTML & CSS: Part I


#1


https://www.codecademy.com/courses/learn-html-css/lessons/css-setup/exercises/html-link-css?action=lesson_resume&link_content_target=interstitial_lesson


It's not that I'm stuck with something but I just have several questions.

When you're linking to create a new styling page, this is normally how it's written. But "/style.css" isn't exactly a web page. Then how is it possible for the computer to figure out what page to go to?

In the body section, we write this code:
href="https://en.wikipedia.org/wiki/Brown_bear" target="_blank"
But this code actually doesn't make anything appear. So why is this written?

And lastly, what is the function of ?


Replace this line with your code.


#2

no, its not a webpage. Its points the the style.css file on the codecademy server. Thankfully we can link css files relative to the html file on the server and the computer understands this :slight_smile:

well, if we have:

<a href="https://en.wikipedia.org/wiki/Brown_bear" target="_blank">brown bear</a>

you can click on the brown bear to get redirected to the wikipedia pages on brown bear), href points to the page it should open

target blank indicates it should open in new tab

this might not work wonderful well in the lesson, because the output displayed in the lesson is a webpage inside a webpage.

i put your code in a bin, here it works, If you code your own webpages later, it will also work :slight_smile:

good to question this kind of thing, that you don't take it for granted


#3

Wow! Thank you
(that bin is awesome)


#4

No more questions? There are plenty of sites like jsbin (jsfiddle, codepen, repl.it) which offer such features

Learn how to code html and css files on your own computer, install a good text-editor (atom for example)


#5

I'm trying to figure out what Atom is. Is it some kind of a notepad for coding?


#6

Its a text-editor, slightly more suitable for coding then notepad:


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.