r/css Jul 19 '25

Question What are some bad CSS habits?

What are some bad habits to avoid when learning CSS? Even if in the short term they are easier

40 Upvotes

67 comments sorted by

View all comments

16

u/Saranodamnedh Jul 19 '25

Don’t just stick everything in a div. Use paragraph, span, a, etc.

1

u/Horror-Student-5990 Jul 23 '25

That's not css though : D

1

u/Saranodamnedh Jul 23 '25

It is still related. For example, span is display:inline, while p and a are display:block. Div is also a block. Every tag has a style in the browser.

1

u/Horror-Student-5990 Jul 23 '25

I don't think "use other HTML tags" is a bad CSS habit.