<br><br> versus </div><div>

A DIV contents are of the PCDATA type according to the DTD.
(PCDATA = Refers to Character Data, which is aslo known as CDATA)


http://www.w3.org/TR/html401/types.html

This quote applies to attributes but can apply to contents of an element.

CDATA is a sequence of characters from the document character set and may include character entities. User agents should interpret attribute values as follows:[LIST]
[]Replace character entities with characters,
[
]Ignore line feeds,
[*]Replace each carriage return or tab with a single space.[/LIST]User agents may ignore leading and trailing white space in CDATA attribute values (e.g., " myval " may be interpreted as “myval”). Authors should not declare attribute values with leading or trailing white space.

User agents may ignore leading and trailing white space

Try rereading what I actually said in my posts. At no time have I made any comments directly about you OR your abilities, you have just chosen to consider that my comments apply to you specifically and then made personal attacks against me in response.

This “discussion” seems futile because to me it doesn’t seem that winterheat has a basic understanding of XHTML.

<br> won’t pass validation, if I’m not mistaken. Need closing tag, so would have to be <br/>

The <div> discussion is confusing too because you need to have an id on your div. I don’t know when you would ever code <div> something here </div>

Well…just my two cents. The whole conversation is a little weird :slight_smile:

Can we please keep the discussion civil, amicable and without casting aspersions on anybody!!

break doesn’t need a closing tag in html and is perfectly valid. Its xhtml that has self closing tags.

<br> needs to be <br/> ? <div> must have an id? boy… these are basic things in HTML 4.01 that you don’t understand. Like some people, they use <br/> and <img … /> all the time, when their document doesn’t even have a doctype.

you almost always say my discussion is “meaningless”, and in the previous post you said i am a “nobody”… well, if you don’t know those are rather harsh and negative words to use on somebody, then you really need some lesson that you missed in elementary school.

Here you are still making negative comments about me specifically where my comments were all general and not meant to apply specifically to anyone unless they actually fall into the situation that I described. If you choose to place yourself into the category where my comments apply then you are applying them yourself, I was very careful in my wording to ensure that I did not apply them to you.

thanks very much. this has the hint of skipping leading and ending white space… now it is stated in SGML… and it says browser “may ignore” them… does that mean the browser can choose to ignore or choose to honor them? a bit strange why it is hidden in the SGML part and in CDATA… a bit inconspicuous place. probably many people have used HTML a lot but never heard of SGML, CDATA, how they relate to HTML directly. the ISO site for SGML is down now for maintenance.

so if you post something, i reply saying it is meaningless, you will feel what i say doesn’t really apply to you? maybe you have a different way of thinking.

SGML (Standard Generalized Markup Language) is a standard for how to specify a document markup language or tag set. Such a specification is itself a document type definition (DTD). SGML is not in itself a document language, but a description of how to specify one. It is metadata

For a beginner who doesn’t know the answer to the question yet, no question is meaningless.

Anyone past the stage of beginner with web page design for the 21st century knows that HTML defines the content and CSS defines the appearance. As such asking an appearance question about HTML is meaningless since that isn’t what HTML is for and, apart from the beginner just starting out, 21st Century web designers know that.

As such my comment implied that in asking the question you are presumably a beginner where it comes to 21st century web design. This could mean that are just starting out or it could mean that have been using 20th century web design methods without realising that they are now obsolete. I made no assumptions as to which of these applied to you. The alternative that you actually do know 21st century web design and deliberately asked what you knew to be a meaningless question is the alternative that I did not believe applied.

In any case arguing over what you have interpreted my comments to mean does not get you any further in finding out how to do what you were asking about in the first place which was about how to insert vertical whitespace into your content - which is done by applying the appropriate padding and margins to block level content and by applying an appropriate line-height to inline content.

how many times do i need to tell you my purpose is NOT TO CREATE vertical spacing but to wonder why div and br work that way. It is for experimentation and not for a practical purpose.

I keep dropping an apple and wonder why the apple will fall to the ground, and you come up to me saying, NO THE RIGHT WAY is to catch it using a basket or just to catch it by hand and eat it. I flash some light beam to the mirror on a train to see if the speed of light changes, and you come up to me and say NO THE RIGHT WAY to use a flash light is to flash it at night to see clearly and the right way to use the train is to travel to a different place. It is a 16th century technology and every beginner should know that. BravO!!!

and i know HTML is for content and CSS is for visual display or other media. But whether a space is included in the content DOES AFFECT how the visual display is, doesn’t it? First what becomes the content must be well defined, and then you talk about the visual display of it. If you don’t know what the content is, talking about the rendering the content doesn’t make sense. So you can save your lecture about the 21st century for yourself.

What browsers do in that situation is irrelevant since the stylesheet will override it anyway. Presumably different browsers all handle it slightly differently. So in your experimenting have you tested to see how the following browsers handle it?

Advanced Navigator
Alligator
AlphaX
Amaya
AWeb II
AOL
Arachne
Atlantis
AJW Browser
Barque
Beonex
Blake
BrowseX
BumperCar
Camino
Cello
Cheetah
Chimera
Cineast
Coda
Compuserve
Conkeror
CuriosityAndVanity
Deer Park
Demeter
DeskBrowse
DesktopBrowser
DEVONthink
DictJuggler
Dillo
Echo
Elinks
Encompass
Epiphany
Flock
Galleon
Grail
Hana
Hazlce
HotJAVA
I-Comm
I-View
iBrowser
iCab
ICE browser
InterGo
InternetPal
Internet Safari
Internet Workhorse
iPhoney
iSurf
Jazilla
JEDict
Journler
K-Meleon
KidsBrowser
KioskBrowser
Konqueror
Kylie
LanderBrowse
Light
Lightbrowser
Light Mode Browser
Links
lolifox
Lynx
Lynxlet
Madfox
maileR
MiniBrowser
Minimo
MiniWeb
Money
Monocle
NagaraBrowser
Nemo
NeoPlanet
NetCruiser
NetFront
NetNewsWire
Netrick
Nova X
Odysseys
OmniWeb
OnTour
OSB-Browser
Paparazzi!
Peel
Pepper Keeper
Postino
Prevue
PT Browser
Pyleon
Radon
Recherche
retawq
Scamper
Scavenger
Scourge
Seamonkey
Seemore’s Safety Browser
Selenium
SchreibtischBrowser
Sesame Navigator
Shiira
Skipton
Slife
SlipKnot
SnapWeb
Softerm Plus
soho Notes
Songbird
Split Browser
Star Office
STiK/CAB
Sunrise
surfDude
SurfIt!
Tango
Tiber
TkWWW
Tominated Browser
Tool Kit Browser
TrailBlazer
TubeTV
TvTube
UdiWWW
Videobox
Vienna
viewML
Voyager
XBrowser
Xtorrent
Xyle scope
w3m
w3mmee
WaMCom
Wazilla
wDesk
WebExplorer
Web Stalker
Webstractor
Web TV
webXkiosk
WidgetBrowse
wKiosk
xsmiles
Yelp
Zen
Zeta

The above 150 browsers are of course only a small sample of the browsers that are available but is a big enough sized sample that you ought to have some meaningful results by the end of testing that many. Of course if you decide to test a different 150 or even 500 or more browsers so as to get an even better sample of what they do then you may find the answer to your question.

i think it needs to have the content defined first. if you have an extra space in the content, then stylesheet isn’t go to help too much… or maybe it can use some special trick to not render the space using CSS, but it is not elegant, and if the user define other styles, the space can still be exposed.

Listing 150 browers here isn’t going to help. You have got the basic concept mixed up.

And even in situations where rendering could be different in various browsers, we just test the top 4 or 5 browsers so that it works most of the time. If you don’t know that, go back to Junior College and take some class.

break doesn’t need a closing tag in html and is perfectly valid. Its xhtml that has self closing tags.

True. Realized that after I posted. I guess at this point I’m just used to writing XHTML that validates.

I don’t know why I keep punishing myself by reading this thread, but it seems to me that the answer to the question is that <br> is an inline element and <div> is a block element.

<br> inserts a blank line. It’s a line break.

<div> helps you add structure and logic to your page. If you have three<div></div>, which means that you have created three sections but don’t have anything in them, then they aren’t going to create blank space because that isn’t what <div> does. It’s a container.

But, if you then put in your   you have something in that container so you see a line break but you really aren’t creating a line break per se, it just displays that way because there is something in the div. But you wouldn’t use a div to create vertical space.

Even better, if you’re using an id on the div and a style sheet, you can control padding and margins, giving you the desired spacing between elements.

Oh well…

Well winterheat wants to experiment with what the HTML does if you don’t style it and therefore testing in obscure browsers that you wouldn’t bother with for a real web page seems an appropriate starting point since the behaviour of the most popular browsers is well documented and therefore no experimentation with those browsers would really be required, all you’d have to do is read up on what the browser does in already written reports.

Anyway, it seems that nothing anyone suggests here is ever going to be considered to be acceptable help since what was actually asked has been answered over and over and has not been considered a satisfactory answer to the question. Perhaps the question needs to be reworded in such a way that all of us who are not the super advanced experts in the field that winterheat is can at least understand what is the question actually is supposed to be about since it is obvious that we are all misunderstanding it.

Anyway, it seems that nothing anyone suggests here is ever going to be considered to be acceptable help since what was actually asked has been answered over and over and has not been considered a satisfactory answer to the question. Perhaps the question needs to be reworded in such a way that all of us who are not the super advanced experts in the field that winterheat is can at least understand what is the question actually is supposed to be about since it is obvious that we are all misunderstanding it.

I think you’re right, felgall :lol:

Can’t say I don’t feel a right bit insulted, going and reading what I’ve missed in this thread…

Anyway, it seems that nothing anyone suggests here is ever going to be considered to be acceptable help
Because we’re not even in his league, yet he’s asking us for help :stuck_out_tongue:

How to win friend and influence people.

Doing number 2 of part 2 would frighten people if I did it.