Tapas Chandra
Tapas Chandra

Reputation: 69

How to solve this 'character not allowed in prolog' error in my CSS file

I have the property declaration h3 {color:#333;} in my CSS file. When I check my CSS file in https://validator.w3.org, it shows

character "h" not allowed in prolog.

What's the problem with my h3 tag? What is the meaning of "prolog"? Can someone explain it?

Upvotes: 1

Views: 5140

Answers (2)

sandeep
sandeep

Reputation: 92843

For CSS check in this https://jigsaw.w3.org/css-validator/ instead of this https://validator.w3.org/

Upvotes: 1

Pekka
Pekka

Reputation: 449753

https://validator.w3.org/ is for validating HTML only.

You are looking for http://jigsaw.w3.org/css-validator/

Upvotes: 9

Related Questions