Use <main> element

digitalpoint

Well-known member
Licensed customer
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">


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
"We can't use that, it's not supported by Internet Explorer"

Is probably something we said at the time...

Cringe Wince GIF
 
Back
Top Bottom