RSS Feed/News Use <main> element

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
31,239
Points
823

Reputation:

Within the PAGE_CONTAINER template, it probably makes sense to use the <main> element instead of a <div>:

HTML:

<div class="p-body-content">

becomes:

HTML:

<main class="p-body-content">

<main>: The Main element - HTML | MDN

The <main> HTML element represents the dominant content of the <body> of a document. The main content area consists of content that is directly related to or expands upon the central topic of a document, or the central functionality of an application.
developer.mozilla.org
developer.mozilla.org

XenForo is already using most of the semantic elements available in HTML5 (<article>, <aside>, <footer>, <header>, <nav>, <section>, <time>, etc.). Google Speedtest Insights is crabbing about missing <main> these days...

Read more

Continue reading...
 
Status
Not open for further replies.
Top