Syntax for the Wintax 7/26


#1


https://www.codecademy.com/en/courses/web-beginner-en-TlhFi/1/1?curriculum_id=50579fb998b470000202dc8b#


I don't know what the problem is, i did exactly what the hint said, i looked it up on the internet and nothing worked. Any help? (It also says in the stylesheet: 'Unknown property 'property')

My code

(Index)
<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
        <title>Result</title>
	</head>
	<body>
		<p>You're about to style this paragraph with CSS all on your own!</p>
	</body>
</html>

(Stylesheet)
selector{
    property: value;
}


#2

this:

selector{
    property: value;
}

is general syntax, to show how the syntax looks. Its not actually valid code.

this is valid code:

p {
    color: red;
}

p is the selector to target paragraph elements, color is a css property and red is value


#3

Yep, that fixed it. Thanks


#4

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