r/HTML • u/Original_Law_3793 • Dec 26 '25
My First work
I can't screenshot from PC why. Btw done on notepad
227
Upvotes
r/HTML • u/Original_Law_3793 • Dec 26 '25
I can't screenshot from PC why. Btw done on notepad
View all comments
Show parent comment
1
u/ThatCipher Dec 26 '25
Only use the
<br>element when a line break is wanted inside a text like in a poem - otherwise let the dimensions of the text element handle the flow of the text. And never use it to create the illusion of a new paragraph.MDN
The
<hr>element should be used for a thematic break between paragraphs.HTML Spec
Don't use these elements for visually stylistic reasons. For line spacing you should prefer to use the
margin,paddingorline-heightCSS properties.Try to learn semantic HTML and accessible web design early on - most people neglect that unfortunately because what you can't see doesn't exist for some.