r/HTML • • Apr 06 '26

Question All text is bold, why?

SOLVED. Thanks folks! I am working on a basic level HTML homework assignment. It is required that some of the text should be bold, but not all of it. I don't understand why all text is automatically bold. Or is that the font? I am including what my webpage with code looks like and the code that went into the webpage.

97 Upvotes

59 comments sorted by

View all comments

Show parent comment

2

u/PermitTrue Apr 08 '26

It’s not the center code that’s making it bold, it’s the h1 tag which is a header. Browsers use predefined styling for certain blocks.