This is a discussion on "break tag" within the Web Page Design section. This forum, and the thread "break tag are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
break tag
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
break tag
Hi,
I know this is a really basic question but I am a total beginner. Is it ok to use the break tag in strict XHTML with the new standards and if so is there a space between the br and the /? ie <br/> or <br /> or maybe something else entirely? Should I use paragraphs instead? Sorry its so basic. Last edited by milly; Apr 27th, 2007 at 02:08. Reason: missed a bit |
|
|
|
||||
|
Re: break tag
Quote:
|
|
|||
|
Re: break tag
Quote:
I always have break between r and / as it's just good coding practice. |
|
||||
|
Re: break tag
Oh, I learned something new today!
|
|
|||
|
Re: break tag
I learned something new too!
|
|
|||
|
Re: break tag
personally I try and avoid break tags... it's nothing that can't be done using CSS and it just seems like a back-door way of adding style to my content.
What if I later chose that I wanted all addresses to be displayed on one line, or that I wanted the line spacing widened? It would be much easier to change a single definition in my CSS, than possibly a whole lot of HTML. A rubbish example, I know - but it still feels like cheating to me! |
|
|||
|
Re: break tag
Snow can you give an example of how you would do an address with html/css?
|
|
|||
|
Re: break tag
I'd use something like:
|
|
|||
|
Re: break tag
I don't think that would typically work for me then...
I usually give my p tags a margin-bottom of 20px to break up paragraphs. However if I did #address.p that might work??? |
|
|||
|
Re: break tag
|
|
|||
|
Re: break tag
Thanks snow... I'll try that from now on..
|
|
||||
|
Re: break tag
That's horrible code! An address doesn't consist of three paragraphs. Semantics people! I'd do a negative line-height before adding p tags.
|
|
|||
|
Re: break tag
lol, it was just an example - I've not really had to put addresses on the sites I've produced... but what would you do if you wanted to display the address on one line?
but I would never want to use a <br/> tag anywhere on my site - it just doesn't seperate the style and content... |
|
||||
|
Re: break tag
I really can't think of any reason why I would want this:
1020 West Point Dr. Omaha, NE 57105 United States I see what you're saying, but if you use the break tag correctly, you won't ever need CSS to change its looks. |
|
|||
|
Re: break tag
but you couldn't do this, could you?
|
|
||||
|
Re: break tag
I can't imagine why I would ever want to, but use spans if it's necessary.
|
|
|||
|
Re: break tag
haha; spans, divs; whatever - the question is whether a br is part of the content or style... for me I would always consider it styling, but while the W3C remains silent on the issue, it's open for interpretation
|
|
||||
|
Re: break tag
Never think of content as style; it's always a shut and closed case. As for an address, <br /> is the right way to do it. You need to think of the way it looks without any CSS. Again, semantics!
|
![]() |
| Tags |
| beginners, break tag, html |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Easter break | unitedcraig | Webforumz Cafe | 6 | Mar 19th, 2008 12:19 |
| <li> elements break in IE7 | pesho318i | Web Page Design | 1 | Mar 4th, 2008 16:17 |
| We need you to break this tie -- Vote Now! | Marc | Entry, Nominations and Voting | 13 | Jan 30th, 2008 14:42 |
| Line Break | DregondRahl | Web Page Design | 6 | Jun 12th, 2007 15:33 |
| Break the Grid | kevrapley | Introduce Yourself | 3 | Jun 7th, 2004 09:01 |