
Jonathan Tebb
1,030 PointsI need help understanding what mistake I've made here to cause both my class selector and id selector to not work.
I wrote these examples in my html file and css file for the practice task at the end of "css selectors" but neither work. (The html and css parts of these examples were written in html and css files originaly).
<span class="trademark" >©2017 Bookworm Blog</span>
.trademark {
font-size: 1px;
color: red;
}
<img Id="header-image" src="logo.png" alt="Bookworm">
#header-image {
width: 190px;
}

Sean T. Unwin
28,654 PointsI have edited your post for formatting.
I noticed that you have capitalized the id
attribute in <img>
. HTML Element attributes should always be lower-case.
1 Answer

Dimitar Dimitrov
11,795 PointsIf you are using your own files did u linked your HTML file and your CSS file together in the <head> of your HTML file?
devina christabela
12,526 Pointsdevina christabela
12,526 PointsAnd as Sean T. Unwin answered is correct I didn't notice the attribute
id
with capitalId