Quantcast
Channel: w3c validator HTML5 xmlns - Stack Overflow
Viewing all articles
Browse latest Browse all 4

w3c validator HTML5 xmlns

$
0
0

I couldn't get my website to validate in W3C markup validation.

Here is an example of one of the validation errors.

Error: Attribute xmlns:content not allowed here.

I have done some research and some articles recommend us to change the:
xmlns:name="http://url" syntax into the prefix="name:http://url"

However I am having multiple xmlns attribute.
Not sure how to write the prefix in this case.

Original:

`<html lang="en" dir="ltr"  xmlns:content="http://purl.org/rss/1.0/modules/content/"  xmlns:dc="http://purl.org/dc/terms/"  xmlns:foaf="http://xmlns.com/foaf/0.1/"  xmlns:og="http://ogp.me/ns#"  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"  xmlns:sioc="http://rdfs.org/sioc/ns#"  xmlns:sioct="http://rdfs.org/sioc/types#"  xmlns:skos="http://www.w3.org/2004/02/skos/core#"  xmlns:xsd="http://www.w3.org/2001/XMLSchema#">`

Is it separate by a space between each attribute?

<html lang="en" dir="ltr" prefix="content:http://purl.org/rss/1.0/modules/content/ dc:http://purl.org/dc/terms/ foaf:http://xmlns.com/foaf/0.1/">

or we should separate by \n new line?
I have checked in w3.org website and it looks like they separate the attribute in new line.
Am I right?
http://www.w3.org/TR/2011/WD-rdfa-core-20111215/


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>