I came across this and that question, however, they are both focused on Javascript.
I am searching for a way to target the lone div that does not have an ID or Class assigned to it.
For instance:
<body>
<div class="X" ... />
<div class="Z" ... />
...
<div class="Y" ... />
<div>Select me</div>
<div id="footnote" ... /> <!-- Notice I have no class. -->
...
</body>
There will always be only one div
without a class and id.
This div might change position within the HTML structure or may not be there at all.
I am not allowed to use Javascript. However, any language that can be compiled into CSS like SASS is acceptable.
The targeted div
s will always be directly under <body>
.
The specific classes or IDs of other elements are unknown in advance.