Jump to content

[SOLVED] HTML 5 and the 'xmlns' attribute


random1

Recommended Posts

I'm making the switch to HTML5 on my site and have an issue the line:

 

<html lang="en-au" xml:lang="en-au">

 

Vlidation Error message:

 

The 'xmlns' attribute for this tag is missing

 

What is the xmlns value need for this?

Link to post
Share on other sites

if your planning on using html5's xml syntax you should use...

 

<!DOCTYPE html>
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
...

 

Otherwise (and recommended) is simply....

 

<!DOCTYPE html>
<html>
...

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.