Re: [PHP] <br> was [PHP] Re: render html



At 8:37 PM +0100 9/21/08, Stut wrote:
That's what the DocType is. It tells the browser what version of (X)HTML you're using and therefore which tags are allowed and which are not. It has a major effect on some browsers, and if you use the right one it can help a lot when trying to make pages look the same in all browsers. Worth reading up on.

-Stut

-Stut:

I've done a lot of reading about DOCTYPE's and I realize that the DOCTYPE statement tells the browser what version of (X)HTML the web page is, but I never made the connection that would limit how one could use the <br> tag.

You know, you can read about the "br" tag everywhere without any mention of DOCTYPE.

So in the end, we have <br>, <br/>, <br />, and <br></br> -- depending on what DOCTYPE you're using -- that sure makes things simpler, huh?

Thanks for enlightening me on this.

Cheers,

tedd

--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
.



Relevant Pages

  • Re: RFD: How To Recognize Bad Javascript Code
    ... Elements consist of tags ... Your example `script' elements are empty where they should have ... | it cannot provide a fallback to browsers not running Javascript. ... Some web developers use this to work ...
    (comp.lang.javascript)
  • Re: question xhtml transitional or strict !?
    ... they know what is the content of the tag, ... The syntax specified by the doctype is relevant. ... Browsers and bots make an effort to compensate for possible errors ...
    (alt.html)
  • Re: Background sound for IE and FF
    ... >> I placed following code in a page to play background sound on IE and FF ... > The bgsound tag is an IEthing only, ... > but at some point Microsoft added embed support for their browsers, ...
    (alt.html)
  • Re: Frames, Javascript and IE 5.2 for Mac
    ... The script with the array opens a comment tag ... <!-- Hide me from non-javascript aware browsers ... But is missing a closing comment tag before ... |>> The site would simply not display. ...
    (microsoft.public.frontpage.client)
  • Re: Basics... addressing html elements in js
    ... it is difficult to understand your are speaking of objects and because 'object' is also a tag ... ... most commonly supported by wide spread of different browsers? ... divs: for some others browsers than NN ...
    (comp.lang.javascript)