HTML Basics III Number 1. PLEASE HELP BUG


#1


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

Its telling me that

is not in the font-family of Arial but thats exactly what I have written


<!DOCTYPE html>
<html>
	<head>
		<title>Table Time</title>
	</head>
	<body>
		<h1 style"font-family:Arial">Tables Are Mega Sweet</h1>
		<a href="http://google.com"><img src="https://s3.amazonaws.com/codecademy-blog/assets/ninja_zpsa5dbe37a.jpg"/></a>
		
		<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTo2oDDdi-C7z94UUstcuE4QSrgUNzdGDsakteUcbkjWqBRgcMl4ZaHjJo"/>
		
		
		
	</body>
</html>


#2

you haven't used the proper syntax you assign a value to style and other attributes using = style="font-size: 20px;" you also always use a semicolon at the end of the property value


#3

Doesn't he just need an = inbetween style and "font......"


#4

OH I'm such a ■■■■■■ I forgot all about the "=" Thanks alot guys


#5

when using css you usev
a semi colon after setting your properties. without it if you were to try and set font-size:30px; it would not read it in the browser


#6

Whenever there is only one line of css that you need then it doesn't require a semicolon, however when there are multiple lines of css then it will require a semicolon after each line. Although it is a good practice to use a semicolon after every line of css no matter what.


#7

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