My blog is not XHMTL transitional because of one error in line 4:
"Missing xmlns attribute for element html. The value should be: http://www.w3.org/1999/xhtml"
http://validator.w3.org/check?uri=http% ... ose=1&st=1
Can I just replace the current value in index.tpl, which is http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
or would that cause all kinds of other problems? Do I have to change anything else in index.tpl, which currently looks like this:
{if $is_embedded != true}
{if $is_xhtml}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{else}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
{/if}
Validate
Validate
My blog: http://AtlanticReview.org
Re: Validate
Actually, the relevant part is right below the one you quotedJosh wrote:Can I just replace the current value in index.tpl, which is http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
or would that cause all kinds of other problems? Do I have to change anything else in index.tpl, which currently looks like this:
The part you quoted is the doctype declaration, and it's fine the way it is now. Your index.tpl probably has something like:
Code: Select all
<html>
<head>
[...]
Code: Select all
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[...]
YL