Thread: css question
View Single Post
Old 04-21-2024, 10:49 AM   #25
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,221
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by Brett Merkey View Post
To be clear however, when using the horizontal rule to do that job, it is best to keep things simple and not bother combining it with the pseudo-element technique.
HTML elements and CSS styling are two different things.

The proper HTML element to create a thematic breaks is hr. Assistive technologies will understand that. If you use a p or a div, AT may try to read it (if 'content' is present).

As for styling, you can decide. On most (all?) browsers and reading systems, if no CSS is applied, then you have a horizontal rule for the hr element. But you can style it differently, without loosing the correct semantic.
thiago.eec is offline   Reply With Quote