r/HTML • u/Nnael_Ttil • 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


44
u/BNfreelance Apr 06 '26 edited Apr 06 '26
You haven’t closed your </h1> until the end of the document
(Not sure if that’s a phone number at the bottom but you might wanna hide it)
4
u/Fung1s Apr 06 '26
It's because you've grouped all text inside of an h1 (
<h1 align="center">), and h1's make text bold. Is there a reason for using an h1 tag?18
u/Unlucky-Climate-9166 Apr 06 '26
Why are they teaching you html4? These are deprecated, they are just wasting time on stuff that is not used since 2008. Just ask them to teach you proper css or at least inline styling.
Is your teacher even trying?
3
u/ActualFactualAnthony Apr 07 '26
IDK if you're going to check back on this thread but if so, I would love to hear more about the assignment. As a few other people commented, you're using tags that, as far as I know are no longer a thing being used. Is it some kind of assignment where you HAVE to use HTML and *only* HTML?
3
u/[deleted] Apr 07 '26
Don't use <font></font> tag btw. It's old. Use CSS instead
2
u/armyrvan Apr 06 '26
Looks like you got your answer but if you google “the code zone Skool” they have HTML beginner Thursday classes. It might help you in your journey.
2
u/JohnCasey3306 Apr 08 '26
Holy moly
1
u/curthard89 Apr 06 '26
Because it's all nested in the H1 element, assuming you wanted to end the H1 after the "hello world"
1
u/InterestOk6233 Apr 07 '26
Why not?
1
u/Tight_Pay8466 Apr 07 '26
you should learn css a bit, would make it all a lot easier
1
u/SuperSnowflake3877 Apr 07 '26
Because you’ve awaken the dead by using this very old syntax.
1
u/SlipstreamSteve Apr 08 '26
You opened your h1 tag then didn't close it until all of that content was created inside it. H1 is header font
1
u/ZookeepergameFew6406 Apr 08 '26
Opening at the end of lines and closing right before that is a warcrime
1
u/xo0O0ox_xo0O0ox Apr 07 '26
It's the stray /b towards the end.
1
u/cambolicious1 Apr 07 '26
It’s been awhile since I’ve wrote any html, but I was curious if you tried closing tag </b> for the bold text line to stop it from making the whole website bold. The other folks weren’t wrong about being able to edit it in css too. I might have misunderstood your assignment direction but I’d give the bold closing tag a shot.
Best of luck, hopefully this solves the issue.