why would you ever in gods name want to do that
Because
Hello
This is a Test
looks better than
Hello This is a
Test
why would you ever in gods name want to do that
Why the fuck do you end a br tag is my question?
Its <br>
Must have went to college for coding...
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.
I'd probably say shit like that too if I didn't know how to fix it.
Code:<h1><span style="display: block">Hello</span> This is a test</h1>
<h1><span>Hello</span> This is a test</h1>
<style type="text/css">h1 span { display: block; }</style>
You're doing it wrong bro
5 REM **MY FIRST MONEY SITE**
10 POSITION 1,1
20 PRINT "Hello"
30 POSITION 2,1
40 PRINT " this is a test"
Now just rinse & repeat with
50 GOTO 10
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.
Use <h1> for top-level heading
<h1> is the HTML element for the first-level heading of a document:
Unlike the title, this element can include links, emphasis and other HTML phrase elements.
- If the document is basically stand-alone, for example Things to See and Do in Geneva, the top-level heading is probably the same as the title.
- If it is part of a collection, for example a section on Dogs in a collection of pages about pets, then the top level heading should assume a certain amount of context; just write <h1>Dogs</h1> while the title should work in any context: Dogs - Your Guide to Pets.
<p>hello<br/> this is a test</p>
...
But when it's an h1 tag like this:
<h1> Hello<br/> this is a test</h1>
it all reads as one line.
Let's look at what an H1 tag is meant for. H signifies "headline", the 1 signifies it's the most important section on the page. This means that any element on the same level as the h1, directly below it should be treated as the most important content on the page.
Now, if you were paying attention, "line" came right haver "head". Semantically, this means that H1 should all be on a single line... because it's a heading. Headings are short snippets to summarize a block of content.
Now, let's look at the W3C standard of what H1 is (you know, the people who are responsible for standardizing HTML code and how it's rendered):
If you noticed, they said "phrase elements" these don't include anything other than inline text formatting used to define what a bit of text is semantically.
So, stop being like a kid that ate paintchips his whole life that tries to put a square block through a round hole, and actually use tags like they're suppose to be used.
I suggest you get this book and learn how to style your pages properly.
Jesus christ man, it says nothing about controlling how your headlines break or are formatted.
If your headline is long enough that it spans two rows and you want to better control how it looks, there's absolutely no reason why you can't throw in a <br> or <br /> tag.
I have no idea what the OP has done, but it should just work like that and isn't semantically incorrect. Some you fucks need to learn what semantics means... it has nothing to do with adding a <br> tag to your code or how that <br> tag is or isn't formatted.
Neither <br> nor <br /> is "semantically correct" because neither has anything to do with semantics. One is formatted correctly for a HTML doctype and one if formatted correctly for a XHTML doctype.
End of story.
What's your geocities' extension? I'll see if it works on my Windows 95 with Netscape.
All tend to allow SPAN, and I'm guilty of using it inside it at times, but it's not technically correct based on W3C standards.
There's absolutely no reason why you can't do the same with CSS styling either.
Why thank you.I loves ya Fatbat and respect your knowledge on a variety of subjects,
but you need to re-read your last sentence and then apply that logic to the one before it.