Markup validation warning

My pages pass markup validation but I get this warning, below. Can someone please tell me what to use to pass 100 per cent? I get the same message when I use UTF-8 , no BOM: (Thank you) (Also, this is my doctype: -----!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “

The warning:
The following notes and warnings highlight missing or conflicting information which caused the validator to perform some guesswork prior to validation, or other things affecting the output below. If the guess or fallback is incorrect, it could make validation results entirely incoherent. It is highly recommended to check these potential issues, and, if necessary, fix them and re-validate the document.

  1. Warning Byte-Order Mark found in UTF-8 File.The Unicode Byte-Order Mark (BOM) in UTF-8 encoded files is known to cause problems for some text editors and older browsers. You may want to consider avoiding its use until it is better supported.

Why are you using the transitional doctype? That’s part of the HTML4/XHTML standard if I recall correctly - i.e. what I was using when I started learning web development 12 years ago!

The modern doctype is just <!DOCTYPE html>

OK, so maybe I haven’t progressed since I learned 12 years ago. I just keep using what I know. I’m no pro but I do want to do things right with what I’ve got. Can you suggest where and how I can brush up on the latest way of doing things? I appreciate the info! Thanks!

1 Like

Maybe reading something about the transition from HTML4 to HTML5 might help?

There’s not much to it, though - just some new semantic HTML elements and the like.

As for a specific resource to use…I reckon you’d fly through the HTML section of and that’d help you brush up.

OK, thanks. Will do :slight_smile: