html - CSS formating is giving me an error when I try to validate the file -


line 8, column 7: end tag "style" omitted, declaration not permit ✉ •you forgot close tag, or •you used inside tag not allowed, , validator complaining tag should closed before such content can allowed. next message, "start tag here" points particular instance of tag in question); positional indicator points validator expected close tag. line 7, column 1: start tag here

<html> <head> <title>randy's first html web page !</title> <style type="text/css"> </head> body h1 { background-color:#6495aa; margin-right:1350px; } h2 { background-color:#b0c4de; margin-right:1350px; } p { background-color:#649fff; margin-right:1350px; } div { background-color:#efffff; } </style> 

you closed head before style, validator sees you've finished <style>, , take forgot close before </head>, try:

    <html> <head> <title>randy's first html web page !</title> <style type="text/css"> body h1 { background-color:#6495aa; margin-right:1350px; } h2 { background-color:#b0c4de; margin-right:1350px; } p { background-color:#649fff; margin-right:1350px; } div { background-color:#efffff; } </style> </head> 

also, saw

body h1 { ... 

is intended?


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -