HTML BASICS ll


#1



Replace this line with your code.


#2

I keep getting an error It says font is 15.972...when font should be 16






Heading


A giant bear and a little duck were friends.


But the bear got hungry and ate the duck.




#3

<!DOCTYPE html>
<html>
	<head>
		<title>Changing the colors!</title>
	</head>
	<body>
		<h1 style="color: green; font-size:16px"> Heading</h1>
			<p style="color:violet">A giant bear and a little duck were friends.</p>
			<p style="color: red; font-size:10px">But the bear got hungry and ate the duck.</p>
	</body>
</html>

#4

Hi you should format your code


#5

Make sure your browser zoom is set to 100% (ctrl + 0 or cmd + 0 for mac should do this in most cases), otherwise look in your browser settings


#6

Here is my code

<!DOCTYPE html>
<html>
    <head>
        <title>Putting it all together</title>
    </head>
    <body>
        <p style="font-size:20px;color:blue;font-family:Arial"> 
        A truly spectacular paragraph!</p>
    </body>
</html>

And it tell's me "Oops your font-size is not set to 20px" I resized the browser window zoom,
by the way I'm using Firefox... it was working fine before... what gives?


#7

It tells me font-size is undefined instead of 20px... i tried putting spaces
in between 20px and the : or rearranging the attributes to no avail..


#8

a space between 20 and px is a bad idea, your code works fine (the one you posted without markup). I guess your browser is sending cached data, try a different browser