Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: open
Need some help please.
Well, when i add the doc type to a site,
Q1. do i need to also add an *Extra* <html> tag after the
<html xmlns="http://www.w3.org/1999/xhtml"> part?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
Or do i Not add that Extra <html> tag in?
I ask because i'm not sure if we are supposed to enter it in *Also* or if the first one covers the start of the html for the content of the webpage. I want to be sure the page displays correctly:)
Q2. Is it ok to leave the Extra <html> tag In as it is shown above and will it be ok?
Thanks guys for the help:)
So, you need to loose the <html> and keep the html element with the xml namespace attribute.
[validator.w3.org...] usually will help you with these although its errors aren't always as easy to understand as they could be.