W3C home > Mailing lists > Public > public-vocabs@w3.org > May 2012

Re: using <html> tag

From: Aaron Bradley <aaranged@yahoo.com>
Date: Wed, 30 May 2012 10:00:29 -0700 (PDT)
Message-ID: <1338397229.93748.YahooMailNeo@web161005.mail.bf1.yahoo.com>
To: Özer Kavak <ozerkavak@gmail.com>, "public-vocabs@w3.org" <public-vocabs@w3.org>
If the scope of the resource described is the entire HTML document, then marking up the <html> tag is valid and appropriate.

Googler Jenny Murphy had this to say in February [1]:
"You can add the itemscope attribute to any element on your page that 
contains all of the attributes that make up that scope. This includes 
the <html> element at the root of your page (since by definition 
it contains all of the elements on your page), but you may find it 
technically easier and more readable to add the itemscope further down 
your tree to the lowest parent of all of your microdata. "

[1] https://groups.google.com/forum/#!msg/google-plus-developers/8Tpu7GFo428/-ZExqLGiL8IJ


>________________________________
> From: Özer Kavak <ozerkavak@gmail.com>
>To: public-vocabs@w3.org 
>Sent: Tuesday, May 29, 2012 6:12:36 AM
>Subject: using <html> tag
> 
>
>Hi all,
>
>On http://schema.org/WebPage Example 1:
><body> element contains microdata mark up:
>
><bodyitemscopeitemtype="http://schema.org/WebPage";>
>...
></body>
>
>Is using <html> element appropriate for the same purpose? I tested on validators, all OK. But i couldn't be sure.
>I want to use current head section elements and their content for http://schema.org/Webpage properties such as:
>
><!DOCTYPE HTML> <htmlitemscope="itemscope" itemtype="http://schema.org/WebPage"; lang="en">
<head>
<metaitemprop="description" name="description" content="Description of the page" />
<title itemprop="name">Title of the page</title>
>...
></head>
<body itemscope="itemscope" itemtype="http://schema.org/CollectionPage"; itemprop="about">
...
></body>
></html> 
>Best,
>Ozer
> 
>
>
Received on Wednesday, 30 May 2012 17:01:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 May 2012 17:01:03 GMT