This forum is now read-only. Please use our new forums! Go to forums
Help with 5/26- CSS an overview
I’m having some trouble with excercise 5/26. Below is the code I inserted and I’m not having much luck with it. Could someone explain to me what the proper code is and why?
<!DOCTYPE html>
<html>
<head><link type="text/css" rel="stylesheet.css"
href="http://www.codecademy.com/courses/web-beginner-en-TlhFi/0/5"/>
<title>Result</title>
</head>
<body>
<p>I want to be SIZE 44 font!</p>
</body>
</html>
Answer 5272b1ad80ff33919c00050b
Answer 52824aa5f10c602359003dc1
Hm..
<link type=”text/css” rel=”stylesheet” href=”stylesheet.css”**<**/>
The < after “Stylesheet.css” is unnecessary.. ?
1 comments
No. That would be a typo. Browsers are pretty forgiving, and may ignore it, but it’s still errant syntax.
Answer 527dd581f10c60bbc30016c9
<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet"
href="stylesheet.css"</>
<title>Result</title>
</head>
<body>
<p>I want to be SIZE 44 font!</p>
</body>
</html>
(I did it this way)
1 comments
This worked for me. thx
Answer 535d8aa49c4e9d719a0003d6
If you’re getting a strange number for the font size (like 44.6363), try resetting your zoom with Ctrl-0 or Cmd-0.
Answer 540dceca548c35be0e00e550
This was what I was looking for, too. The hints tab tells you to enter in stylesheet.css as your href, but I want to know if that is what you always put in there, or if this is a special case because it’s a tab on the same page?
1 comments
That is the normal way to import an external style sheet. The tab is part of the editor environment. The file itself is in the same directory as the index.html file. The key is to be sure the href path points the CSS file.
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
3 comments
I dont understand
You got me. What don’t you understand?