Learn HTML & CSS PART 1


#1

STUCK ON THIS PART OF THE CODE
Help me with this code
h1, p {
color: DarkSlateGray;
}

p {
font-size: 18px;`
WHERE DO I PUT THIS PART

Replace this line with your code.

`


#2

Hi. What issue is it that you're having so I can best help you? Please describe as best as you can.


#3

Which section are you on?


#4

basic CSS structure and here is what comes up on page 2 out of 9

h1, p {
color: DarkSlateGray;
}
p {
font-size: 18px;
}

what do I do


#5

What do the exercise instructions say? Check the left-side pane.


#6

  1. In style.css, add a selector for the <h1> element.
    Note: The content of the web page updates because we've already linked index.html and style.css for you.

#7

According to @jibblyj's paste from the exercise, you simply need to create an <h1> element in the provided HTML document.


#8

↓↓

LINK: https://www.codecademy.com/en/courses/learn-html-css/lessons/css-structure-syntax/exercises/element-selectors


#9

My bad. Misread that. :slight_smile:

@happy06461, you can try adding a section like this:

h1 {
}

Rather than selecting both h1 and p together.


#10

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