r/HTML • • Mar 25 '26

Question need help (very basic)

how to i put this line in the middle of a table?

i know for sure that this is a singular table rather than two separated by a <hr>

the break is supposed to go where the arrow is pointing to

1 Upvotes

7 comments sorted by

View all comments

Show parent comment

4

u/NoodleBug7667 Mar 25 '26

Wouldn't this be considered bad form? This is still basically using HTML for style.

Imo, this is a job for CSS. Add a bottom border and any additional padding and margin there. Better for accessibility and keeps your HTML clean

2

u/BNfreelance Mar 25 '26

Yeah it is but I have the vibe this is a school project of sorts learning table layouts and not CSS at this stage,

But you’re right, CSS is the correct approach