Spantastic


#1

I am stuck on Spantastic. My code seems correct as I can see the correct reply but it won't accept and I cannot proceed. I did this exercise: Use tags to style the word "Impact" with a font family of Impact. Leave the rest of the text as-is—don't include the exclamation point in the tag!

My code is:

<!DOCTYPE html>
<html>
	<head>
		<title>Result</title>
	</head>
	<body>
		<p>My favorite font is <span style="font-family:Arial">Impact</span>!</p>
	</body>
</html>


#2

You used the style attribute to give impact a font-family of Arial, not Impact.

for next time, use one of the two following options to make your code/indent is visible:

select your code and press ctrl + shift + c (or cmd + shift + c if you use a mac)

if this instructions are unclear, you can also insert 3 backticks before and after your code, like so:

```
<p>visible</p>
```

the backtick is located above the tab key on your keyboard


#3

Thanks for your reply. I used the code below and it worked :slightly_smiling:

My favorite font is Impact!


#4

span tag is not self closing:

<span style="font-family: Impact;"/>

remove the the slash in the span opening tag