What is wrong with code (Font-Family)


#1

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

Oops, try again. Make sure your < h 1 > header has the font-family Arial!


!DOCTYPE html>
<html>
	<head>
		<title>Table Time</title>
	</head>
	<body>
		<h1><p style="font-family:Arial">Tables Are Mega Sweet</h1>
		<img src="http://s7d4.scene7.com/is/image/roomandboard/?layer=0&size=498,300&scl=1&src=996120_wood_W&layer=comp&$prodzoom0$"/>
		<a href="http://www.ikea.com/">
		 <img src="https://i.ytimg.com/vi/7EeqPTjK38s/hqdefault.jpg"/>
		
	</body>
</html>


#4

Yes but you put it in a p tag and not in the h1 tag. You don't need the p tag.


#6

Wow I never knew that so basically you put whatever you want to change the font of in the tag? Example if I wanted to change the title to font Arial I would put <title style ?


#7

You can't change the style of the <title> tag.
But any other ones yes. Such as changing font of h2 would be <h2 style="font-family: Calibri;">...</h2> etc.


#8

Ahh learn something new everyday thanks so much!


#9

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