Simple line break <br/> question

kdr4t

New member
Feb 21, 2010
103
2
0
I'm making a site and can't figure out why when I do this:

<p>hello<br/> this is a test</p>

I successfully get back:
hello
this is a test

But when it's an h1 tag like this:
<h1> Hello<br/> this is a test</h1>
it all reads as one line.

Thanks for the help in advance.
 


I'm making a site and can't figure out why when I do this:

<p>hello<br/> this is a test</p>

I successfully get back:
hello
this is a test

But when it's an h1 tag like this:
<h1> Hello<br/> this is a test</h1>
it all reads as one line.

Thanks for the help in advance.

why would you ever in gods name want to do that
 
Because <br /> is the semantic (read: proper) way to do it. It doesn't really mean shit but there's no reason to hate on someone doing things right.

OP, there's probably a stylesheet doing something to your h1 tag.
 
  • Like
Reactions: WildGunner
I'd probably say shit like that too if I didn't know how to fix it.

You're asking about the most proper way to duct-tape your muffler back on to your car. Don't get upset when the mechanics tell you it's a bad idea.