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

erin mackel
erin mackel
917 Points

writing CSS code. not linking to html

Introduction to HTML and CSS at video Writing CSS.. CSS code isn't linking up. font color won't change... h1 { color: blue; }

2 Answers

Sumana Vittal
Sumana Vittal
3,813 Points

Probably there must be spell error or syntax error in css. As syntax error in CSS it doesn't throw error instead it doesn't do what it is supposed to do.

following worked for me. resume.html <link rel="stylesheet" href="resume.css">

resume.css h1{ color:blue; }

Claudia Robinson
Claudia Robinson
Full Stack JavaScript Techdegree Student 5,430 Points

I'm having the same problem, but saw in an answer further back that removing the .css from the file name in the href makes it work for me. So for example, instead of:


I have:


and it's working!

I'm not sure why, but there you go! Hope this works.