Within the
becomes:
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, and the change is about as easy as can be.
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.
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, and the change is about as easy as can be.
Upvote
7