Font size


#1

I use this code to make the heading gree and a font size 10px

<h1 style="color: green"; font-size: 16px;">Big Heading</h1>

For some reason I get en error that its 32px.

How to I solve this?

here is the hole code:

<head>
	<title>Changing the colors!</title>
</head>
<body>
	<h1 style="color: green"; font-size: 16px;">Big 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>

#2

if the style attribute has multiply properties and values, the property value pairs are separated by semi-colon, which is you do perfectly here:

<p style="color: red; font-size: 10px">

but for some reason, in your h1 heading you also include some additional quotation marks

all properties and values of a single style attribute should between one set of quotation marks


#3

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