Best way to lay out "mainContentOfPage"?

for other areas of the webpage, just note; i.e. navigation element, title, footer, sidebar

Not so with mainContentOfPage; I saw several different ways to implement this, most recently (and I found it the strangest) on schema.org itself :

<div itemscope itemtype="http://schema.org/Table">
  <meta itemprop="mainContentOfPage" content="true"/>
  <h2 itemprop="about">list of presidents</h2>
  <table>
    <tr><th>President</th><th>Party</th><tr>
    <tr>
      <td>George Washington (1789-1797)</td>
      <td>no party</td>
    </tr>
    <tr>
      <td>John Adams (1797-1801)</td>
      <td>Federalist</td>
    </tr>
    ...
  </table>
</div>

I could use some examples; the main content of my page is the search results page, but I plan to use it on other pages as well (home page, product page, etc.).

Edit, I found some more examples:

Will it really be? I found this on the blog:

<div id="main" itemscope itemtype="http://schema.org/WebPageElement" itemprop="mainContentOfPage">
    <p>The content</p>
</div>

I also found this even simpler example on another blog (maybe too simple?):

<div id="content" itemprop="mainContentOfPage">
    <p>The content</p>
</div>
+4
2

mainContentOfPage WebPage WebPageElement .

Table WebPage true . , .

WebPage Table mainContentOfPage:

<body itemscope itemtype="http://schema.org/WebPage">
  <div itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/Table">
  </div>
</body>

:

, , WebPageElement Table. (, WebPage, .)

schema.orgs, Text, WebPageElement ( ).

+4

:

<body itemscope itemtype="http://schema.org/WebPage">
 <main itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/WebPageElement">
  <div itemprop="about" itemscope="" itemtype="http://schema.org/Thing">
   <h1 itemprop="name">whatever</h1>
  </div>
 </main>
</body>

, Thing , . mainEntity, - , , 1- , WebPage mainEntity:

<body itemscope itemtype="http://schema.org/WebPage">
 <header><h1 itemscope itemprop="mainEntity" itemtype="http://schema.org/Thing">whatever</h1></header>
  <main itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/WebPageElement">
   <div itemprop="about" itemscope="" itemtype="http://schema.org/Thing">
    <h2 itemprop="name">whatever</h2>
    </div>
 </main>
</body>

, :

<body itemscope itemtype="http://schema.org/WebPage">
 <main itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/WebPageElement">
  <div itemprop="mainEntity" itemscope="" itemtype="http://schema.org/Thing">
   <h1 itemprop="name">whatever</h1>
  </div>
 </main>
</body>    

mainEntity .

, , "[...] - WebPage [...]", WebPage , HTML <main>, <footer> <header> , . , -, HTML-, mainContentOfPage WebPage.

0

Source: https://habr.com/ru/post/1536185/


All Articles