How? Do you have code pen or any sample sir?
May be like this ā
OK, now Iām confused. I pasted the code @Ray.H posted into the validator and it passed even with the p tags inside the list items. And the ā2ā that had errors before now passes.
Was there a change made to the doctype in the interim?
Block level elements have always been allowed in a <li>
divs, p, etc.
Thanks. Goes to show that āI never haveā does not mean the same as āI could never haveā
I couldnāt understand the context here. Can you please explain?
The W3C Validator checks for syntax errors, it canāt detect semantic errors, that requires a human brain.
The Google Structured Data Testing Tool check structured data mark-up. You donāt have any structured data mark-up on your page, so you are testing for something which is not there, thus there are no results.
This is what I see in Firebox(sic). Add-ons are disabled.
Only that just because I have never put p tags inside of list items doesnāt mean that I couldnāt have if I had wanted to.
It still feels like a stretch of semantics as I understand semantics. Which is why I have never done that. But admittedly what constitutes proper semantics is debatable and I could very well be off base.
No bites?
Change the font-family to Verdana and test.
body {
font-family:Verdana,sans-serif;
}
Verdana 16 is my browser default.
The point I was trying to make is that It would have been extremely difficult ( I hesitate to say impossible) to style a default decimal list marker and vertically-align the first line of content without the help of another element.
Without the <p>
tag ,the inline-block :pseudo
marker increased the line-height of the first line of content.
I think it is better to move to this kind of solution:
Sorry, not familiar with firebox
Is that an add-on
I think he mistyped its firefox.
(sic) Intentionally so written or misspelled (used after a printed word or phrase)
Ok, missed the (sic)
Yeah, I see the same as post #35 now with verdana
I only see the drop on #2 list item. Must be due to the wrapping lines on the inline-block