473,387 Members | 1,391 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Why eliminate <br>?

I note in an Eric Meyers book that he expresses one goal of using CSS is
to eliminate all <brtags. Why?
--
Ed Jay (remove 'M' to respond by email)
Aug 2 '06
56 3710
Spartanicus wrote:
But there are a few legitimate uses for using <br>, one example would be
to create a line break inside an <addresselement:

<address>
My name<br>
My address
<address>
In these cases, I'd rather see a container element that enclosed each
line. Then you'd be able to style each line individually, which could
be useful.

Tim
Aug 24 '06 #51
Timothy Larson <th*********@cox.netwrote:
>But there are a few legitimate uses for using <br>, one example would be
to create a line break inside an <addresselement:

<address>
My name<br>
My address
<address>

In these cases, I'd rather see a container element that enclosed each
line. Then you'd be able to style each line individually, which could
be useful.
Presentational markup such as <bor <ican be used, or styled <span>s,
but you'd still need the <br>.

--
Spartanicus
Aug 24 '06 #52
Spartanicus <in*****@invalid.invalidwrote:
>>But there are a few legitimate uses for using <br>, one example would be
to create a line break inside an <addresselement:

<address>
My name<br>
My address
<address>
Timothy Larson <th*********@cox.netwrote:
>In these cases, I'd rather see a container element that enclosed each
line. Then you'd be able to style each line individually, which could
be useful.
Spartanicus <in*****@invalid.invalidwrote:
Presentational markup such as <bor <ican be used, or styled <span>s,
but you'd still need the <br>.
If HTML included a <line>...</linemarkup, you wouldn't need <br>:

<address>
<line>John Doe</line>
<line>123 Main Street</line>
<line>Anytown USA</line>
</address>

<stanza>
<couplet>
<line>Roses are red</line>
<line>Violets are blue</line>
</couplet>
<couplet>
<line>If it's good enough for Tim</line>
<line>Then it's good enough for you</line>
</couplet>
</stanza>

Sure, you can work around it by using <div>, or a combination of <brand
<span>, but <line>...</lineor something similiar would have been nice.
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

"I can take one day at a time, but sometimes several days attack me at once."
Aug 24 '06 #53
Darin McGrew schrieb:
If HTML included a <line>...</linemarkup, you wouldn't need <br>:
<http://www.w3.org/TR/xhtml2/mod-text.html#edef_text_l>
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Aug 24 '06 #54
Darin McGrew <mc****@stanfordalumni.orgwrote:
>>>But there are a few legitimate uses for using <br>, one example would be
to create a line break inside an <addresselement:

<address>
My name<br>
My address
<address>

Timothy Larson <th*********@cox.netwrote:
>>In these cases, I'd rather see a container element that enclosed each
line. Then you'd be able to style each line individually, which could
be useful.

Spartanicus <in*****@invalid.invalidwrote:
>Presentational markup such as <bor <ican be used, or styled <span>s,
but you'd still need the <br>.

If HTML included a <line>...</linemarkup, you wouldn't need <br>:

<address>
<line>John Doe</line>
<line>123 Main Street</line>
<line>Anytown USA</line>
</address>

<stanza>
<couplet>
<line>Roses are red</line>
<line>Violets are blue</line>
</couplet>
<couplet>
<line>If it's good enough for Tim</line>
<line>Then it's good enough for you</line>
</couplet>
</stanza>

Sure, you can work around it by using <div>, or a combination of <brand
<span>, but <line>...</lineor something similiar would have been nice.
Assuming you'd want to retain validity and the semantics of the
<addresselement, then using <divinside the element is not an option.
(For the sake of not drifting to far off of what is being discussed I'm
ignoring the ambivalence of the element's semantics)

I'd agree that there is a need for an HTML element that could for
example be used for marking up lines of poetry or a lyric, or indeed the
lines inside an <addresselement. For the latter case the <address>
element would have to be changed to allow block level child elements,
assuming that the new element would be of type "block".

Using <div>s to mark up things like lines of poetry is something of an
anomaly, semantically

<div>Roses are red</div>
<div>Violets are blue</div>

equates to "Rose are red Violets are blue", which obviously is a problem
in certain rendering situations.

--
Spartanicus
Aug 24 '06 #55
In article <11*********************@75g2000cwc.googlegroups.c om>,
VidTheKid <vi*******@gmail.comwrites
>In general, I don't believe annoying or un-aesthetic things should be
made invalid, illegal, or impossible, just for being displeasing,
Why not? I say shoot anyone who even contemplates using ugly design
features on their web pages. Line 'em up against the wall, along with
people who create splash pages for their home pages, people who fix font
sizes, people who pick their noses in public and ... sorry, I seem to be
getting carried away!!
especially if they have some obscure but legitimate use. Start doing
that, and what's next, fashion police?
Good idea ;-) Flares should be an illegal offence, punishable by public
flogging.

See, the hard-line right-wing militant approach isn't dead, just
relegated to the ranks of the terminally insane!!

Ta ra

--
Alan Silver
(anything added below this line is nothing to do with me)
Aug 28 '06 #56


Alan Silver wrote:
See, the hard-line right-wing militant approach isn't dead, just
relegated to the ranks of the terminally insane!!
People who are right militant about using terminals are insane.

--
Wes Groleau
-----------
I've been framed! ...
http://www.useit.com/alertbox/9612.html
Aug 29 '06 #57

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: fis | last post by:
Hi all, I've problem because there are needed break lines in my texts on the web site but i can't do it :( My pipeline looks like: XMS -> I18N -> XSLT -> HTML I have lot of texts in my...
6
by: Lasse | last post by:
I have done this simple function, it seems to work as intended, to solve a problem i have had for a while. I couldnt find any sample around that was working for me. I would like to test it with...
3
by: Josh Lee | last post by:
Being the unpaid bum that i am, i am creating a stylesheet for my livejournal. The heading of my page consists of a table cell spanning the entire width of my page, with two lines of text inside. ...
7
by: noor.rahman | last post by:
I have an XML file that stores data from an HTML form. I use XSL to display the data in HTML format. The data may have newline characters. However, XSL is not displaying the newlines properly in...
7
by: Rocky Moore | last post by:
I have a web site called HintsAndTips.com. On this site people post tips using a very simply webform with a multi line TextBox for inputing the tip text. This text is encode to HTML so that no...
2
by: Winshent | last post by:
I have a multi line text in an admin page on my cms. I am trying to capture carriage returns as and replace them with <p></p> bfore the string gets written to the database. I have tried all...
1
by: Winshent | last post by:
I have a multi line text in an admin page on my cms. I am trying to capture carriage returns as and replace them with <p></p> bfore the string gets written to the database. I have tried all...
7
by: Nathan Sokalski | last post by:
Something that I recently noticed in IE6 (I don't know whether it is true for other browsers or versions of IE) is that it renders <br/and <br></br> differently. With the <br/version, which is what...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.