For challenges like implementing new skins which are making use of HTML5 sectioning elements `main`, `footer` or `nav` and for interoperability between skins code should limited to only ids and classes and remove `div` mentions.
== Proposal
[] [[ https://codesearch.wmflabs.org/search/?q=div%23content&i=nope&files=&repos= | div#content ]] becomes `.mw-body`, on some exceptions in order to prevent unforeseeable breakage `#content.mw-body`,
[x] [[ https://codesearch.wmflabs.org/deployed/?q=div%23content&i=nope&files=&repos= | Wikimedia deployed ]]
[x] Documentation ([[ https://en.wikipedia.org/w/index.php?cirrusUserTesting=glent_m0&sort=relevance&search=%22div%23content%22&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%22fields%22%3A%7B%22phrase%22%3A%22%5C%22div%23content%5C%22%22%7D%7D&ns0=1&ns1=1&ns2=1&ns3=1&ns4=1&ns5=1&ns6=1&ns7=1&ns8=1&ns9=1&ns10=1&ns11=1&ns12=1&ns13=1&ns14=1&ns15=1&ns100=1&ns101=1&ns108=1&ns109=1&ns118=1&ns119=1&ns446=1&ns447=1&ns710=1&ns711=1&ns828=1&ns829=1&ns2300=1&ns2301=1&ns2302=1&ns2303=1 | enwiki ]], [[ https://www.mediawiki.org/w/index.php?sort=relevance&search=div%23content&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1&ns4=1&ns12=1&ns100=1&ns102=1&ns104=1&ns106=1 | MediaWiki, ex div#content ]])
[] User styles (possibly scripts), examplified on [[ https://en.wikipedia.org/w/index.php?cirrusUserTesting=glent_m0&sort=relevance&search=%22div%23content%22+intitle%3Amonobook.css&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%22fields%22%3A%7B%22intitle%22%3A%22monobook.css%22%7D%7D&ns2=1 | enwiki ]]
| Current `.mw-body` selector, 2020-03-23 | core | Vector | MinervaNeue | Monobook | Timeless | Modern | CologneBlue
| | -- | -- | -- | -- | -- | -- | --
| `div#content` | | | | | | | |
| `#content` or id equiv | | | | | | `#mw_contentholder` | `#article`
| `.mw-body` | {icon check color=green} | {icon check color=green} | {icon check color=green} | {icon check color=green} | {icon check color=green} | | |
Note, CologneBlue also features `#content`, but it's used on parent element of `#article.mw-body`
Note, MinervaNeue uses `.mw-body > .content` over `#bodyContent`
[x] [[ https://codesearch.wmflabs.org/search/?q=div.portal&i=nope&files=&repos= | div.portal ]] becomes `.portal`
[x] [[ https://codesearch.wmflabs.org/search/?q=div%23footer&i=nope&files=&repos= | div#footer ]] becomes `#footer`
=== Related
{T240489}