What does <br /> do?

Discussion in 'HTML' started by Mike Schumann, Apr 19, 2006.

  1. I know that <br> specifies a new line in HTML. What does <br /> do?

    --
    Mike Schumann
    Mike Schumann, Apr 19, 2006
    #1
    1. Advertising

  2. Mike Schumann

    Guest

    Mike Schumann wrote:
    > I know that <br> specifies a new line in HTML. What does <br /> do?


    It's the XHTML equivalent.


    --
    AGw.
    , Apr 19, 2006
    #2
    1. Advertising

  3. Mike Schumann

    Neredbojias Guest

    To further the education of mankind, "Mike Schumann" <mike-
    > vouchsafed:

    > I know that <br> specifies a new line in HTML. What does <br /> do?


    The same thing in xhtml. The slash is just to close the open-ended element
    in the markup's semantics.

    --
    Neredbojias
    Infinity can have limits.
    Neredbojias, Apr 19, 2006
    #3
  4. Mike Schumann

    Dennis Marks Guest

    All elements in XHTML must be closed. <BR /> would be the same as <BR></BR>
    (which is probably not valid).

    --
    Dennis

    Disclaimer: The above is my opinion. I do not guarantee it. Be sure to back
    up any files involved and use at your own risk. Batteries not included. Not
    for internal use. Don't run with knives.

    "Mike Schumann" <> wrote in message
    news:Nnu1g.9005$...
    >I know that <br> specifies a new line in HTML. What does <br /> do?
    >
    > --
    > Mike Schumann
    >




    ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
    http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
    ----= East and West-Coast Server Farms - Total Privacy via Encryption =----
    Dennis Marks, Apr 19, 2006
    #4
  5. Dennis Marks wrote:
    > All elements in XHTML must be closed. <BR /> would be the same as <BR></BR>

    Actually --------------------------------^^^
    is not valid xhtml, HTML elements can be either uppercase or lowercase
    but I believe XHTML elements must be lowercase.



    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
    Jonathan N. Little, Apr 19, 2006
    #5
  6. Mike Schumann

    News Guest

    "Jonathan N. Little" <> wrote in message
    news:44468bdf$0$3697$...
    > Dennis Marks wrote:
    >> All elements in XHTML must be closed. <BR /> would be the same as
    >> <BR></BR>

    > Actually --------------------------------^^^
    > is not valid xhtml, HTML elements can be either uppercase or lowercase but
    > I believe XHTML elements must be lowercase.
    >
    >
    >
    > --
    > Take care,
    >
    > Jonathan
    > -------------------
    > LITTLE WORKS STUDIO
    > http://www.LittleWorksStudio.com


    I think you are correct they must be lower case but still in XHTML they must
    be closed and when there is no real need for a close tag I think they do <br
    /> rather than have a close tag.

    --

    Totus possum, totum Deum.
    Totus ero, totum meum.
    WSW
    News, Apr 19, 2006
    #6
  7. News wrote:
    > "Jonathan N. Little" <> wrote in message
    > news:44468bdf$0$3697$...
    >> Dennis Marks wrote:
    >>> All elements in XHTML must be closed. <BR /> would be the same as
    >>> <BR></BR>

    >> Actually --------------------------------^^^
    >> is not valid xhtml, HTML elements can be either uppercase or lowercase but
    >> I believe XHTML elements must be lowercase.
    >>


    >
    > I think you are correct they must be lower case but still in XHTML they must
    > be closed and when there is no real need for a close tag I think they do <br
    > /> rather than have a close tag.


    I was not arguing about the closing of single tag elements in XTHML, yes
    they must be close like <img src="some.jpg" alt="my image" /> my point
    was the example was in UPPERcase.

    <single_tag_elements attributes="value" />
    ^lowercase quoted values^ ^ ^
    closing for tag-+ +-closing tag


    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
    Jonathan N. Little, Apr 19, 2006
    #7
  8. Mike Schumann

    News Guest

    "Jonathan N. Little" <> wrote in message
    news:444693c6$0$3696$...
    > News wrote:
    >> "Jonathan N. Little" <> wrote in message
    >> news:44468bdf$0$3697$...
    >>> Dennis Marks wrote:
    >>>> All elements in XHTML must be closed. <BR /> would be the same as
    >>>> <BR></BR>
    >>> Actually --------------------------------^^^
    >>> is not valid xhtml, HTML elements can be either uppercase or lowercase
    >>> but I believe XHTML elements must be lowercase.
    >>>

    >
    >>
    >> I think you are correct they must be lower case but still in XHTML they
    >> must be closed and when there is no real need for a close tag I think
    >> they do <br /> rather than have a close tag.

    >
    > I was not arguing about the closing of single tag elements in XTHML, yes
    > they must be close like <img src="some.jpg" alt="my image" /> my point was
    > the example was in UPPERcase.
    >
    > <single_tag_elements attributes="value" />
    > ^lowercase quoted values^ ^ ^
    > closing for tag-+ +-closing tag
    >
    >
    > --
    > Take care,
    >
    > Jonathan
    > -------------------
    > LITTLE WORKS STUDIO
    > http://www.LittleWorksStudio.com


    Don't mind me, I worded this wrong. I am learning not exponding; learning
    how to do this and I just happened to read the answer to this question and
    posted it.

    Sorry for the confussion
    --

    Totus possum, totum Deum.
    Totus ero, totum meum.
    WSW
    News, Apr 19, 2006
    #8
  9. Mike Schumann wrote:

    > I know that <br> specifies a new line in HTML. What does <br /> do?


    In XHTML, it means "A line break" (i.e. the same as <br> means in HTML).

    In HTML, it means "A line break followed by a greater than sign", although
    most browsers get this wrong and treat it as "A line beak".

    --
    David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is
    David Dorward, Apr 19, 2006
    #9
  10. On 19/04/2006 20:15, Jonathan N. Little wrote:

    [snip]

    > [...] I believe XHTML elements must be lowercase.


    More specifically, element names in XML (and therefore XHTML) are
    case-sensitive.

    The elements of the XHTML namespace (http://www.w3.org/1999/xhtml) are
    defined in lowercase, therefore they must appear in lowercase in a document.

    Mike

    --
    Michael Winter
    Prefix subject with [News] before replying by e-mail.
    Michael Winter, Apr 19, 2006
    #10
  11. News wrote:
    > Don't mind me, I worded this wrong. I am learning not exponding; learning
    > how to do this and I just happened to read the answer to this question and
    > posted it.
    >
    > Sorry for the confussion


    That's okay. Well I'll teach you something else. You are using OE for
    your newsreader, I am not familiar with it, but as with most things
    Microsoft it does not follow protocol. Some OE user may be able to
    advise better where the setting is, but in your quoting (Which is good,
    many newbies don't quote at all) you are including the signature



    > "Jonathan N. Little" <> wrote in message

    <snip>
    >> <single_tag_elements attributes="value" />
    >> ^lowercase quoted values^ ^ ^
    >> closing for tag-+ +-closing tag
    >>


    It's the bit here below the '--' with my name and all. Your newsreader
    *should* automatically remove that, but if not you should do so
    manually. It is proper 'netiquet' for newsgroups...

    >>
    >> --
    >> Take care,
    >>
    >> Jonathan
    >> -------------------
    >> LITTLE WORKS STUDIO
    >> http://www.LittleWorksStudio.com

    >



    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
    Jonathan N. Little, Apr 20, 2006
    #11
  12. Mike Schumann

    Mark Parnell Guest

    Deciding to do something for the good of humanity, "Jonathan N. Little"
    <> declared in alt.html:

    > Some OE user may be able to
    > advise better where the setting is, but in your quoting (Which is good,
    > many newbies don't quote at all) you are including the signature


    Not an OE user, but:
    http://home.in.tum.de/~jain/software/oe-quotefix/

    --
    Mark Parnell
    My Usenet is improved; yours could be too:
    http://blinkynet.net/comp/uip5.html
    Mark Parnell, Apr 20, 2006
    #12
  13. Mike Schumann

    Guest

    David Dorward wrote:
    > Mike Schumann wrote:
    >
    > > I know that <br> specifies a new line in HTML. What does <br /> do?

    >
    > In XHTML, it means "A line break" (i.e. the same as <br> means in HTML).
    >
    > In HTML, it means "A line break followed by a greater than sign", although
    > most browsers get this wrong and treat it as "A line beak".


    I've never understood that, so perhaps today I'll try to get my head
    around it: can you point me to the relevant reference?


    --
    AGw.
    , Apr 20, 2006
    #13
  14. Mike Schumann

    News Guest

    "Jonathan N. Little" <> wrote in message
    news:4446c812$0$3681$...
    > News wrote:
    >> Don't mind me, I worded this wrong. I am learning not exponding; learning
    >> how to do this and I just happened to read the answer to this question
    >> and posted it.
    >>
    >> Sorry for the confussion

    >
    > That's okay. Well I'll teach you something else. You are using OE for your
    > newsreader, I am not familiar with it, but as with most things Microsoft
    > it does not follow protocol. Some OE user may be able to advise better
    > where the setting is, but in your quoting (Which is good, many newbies
    > don't quote at all) you are including the signature


    Like this then correct?

    Thanks


    --

    Totus possum, totum Deum.
    Totus ero, totum meum.
    WSW
    News, Apr 20, 2006
    #14
  15. Mike Schumann

    News Guest

    Mark Parnell wrote:
    > Deciding to do something for the good of humanity, "Jonathan N.
    > Little" <> declared in alt.html:
    >
    >> Some OE user may be able to
    >> advise better where the setting is, but in your quoting (Which is
    >> good, many newbies don't quote at all) you are including the
    >> signature

    >
    > Not an OE user, but:
    > http://home.in.tum.de/~jain/software/oe-quotefix/


    wow this is great thanks
    --

    Totus possum, totum Deum.
    Totus ero, totum meum.
    WSW
    News, Apr 20, 2006
    #15
  16. Mike Schumann

    Bob Guest

    wrote:
    > David Dorward wrote:
    >> Mike Schumann wrote:
    >>
    >>> I know that <br> specifies a new line in HTML. What does <br /> do?

    >> In XHTML, it means "A line break" (i.e. the same as <br> means in HTML).
    >>
    >> In HTML, it means "A line break followed by a greater than sign", although
    >> most browsers get this wrong and treat it as "A line beak".

    >
    > I've never understood that, so perhaps today I'll try to get my head
    > around it: can you point me to the relevant reference?


    An isolated > sign, if you want it to appear in an HTML document, is
    written as

    &gt;

    < sign if you want to show up on web, is written as

    &lt;

    So if you want to write an HTML tutorial on a web page you write the <i>
    italic tag like this

    &lt;i&gt;

    K?
    Bob, Apr 20, 2006
    #16
  17. wrote:
    >> > I know that <br> specifies a new line in HTML. What does <br /> do?


    >> In HTML, it means "A line break followed by a greater than sign",
    >> although most browsers get this wrong and treat it as "A line beak".


    > I've never understood that, so perhaps today I'll try to get my head
    > around it: can you point me to the relevant reference?


    Well... http://www.cs.tut.fi/~jkorpela/html/empty.html is a fairly detailed
    explanation, but the actual reference would be the SGML spec - and I don't
    think that is freely available.

    --
    David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is
    David Dorward, Apr 20, 2006
    #17
  18. Mike Schumann

    frederick Guest

    Bob wrote:
    > wrote:
    > > David Dorward wrote:
    > >> Mike Schumann wrote:
    > >>
    > >>> I know that <br> specifies a new line in HTML. What does <br /> do?
    > >> In XHTML, it means "A line break" (i.e. the same as <br> means in HTML).
    > >>
    > >> In HTML, it means "A line break followed by a greater than sign", although
    > >> most browsers get this wrong and treat it as "A line beak".

    > >
    > > I've never understood that, so perhaps today I'll try to get my head
    > > around it: can you point me to the relevant reference?

    >
    > An isolated > sign, if you want it to appear in an HTML document, is
    > written as
    >
    > &gt;
    >
    > < sign if you want to show up on web, is written as
    >
    > &lt;
    >
    > So if you want to write an HTML tutorial on a web page you write the <i>
    > italic tag like this
    >
    > &lt;i&gt;


    I'm not at all sure why you've troubled to respond to a question that I
    didn't ask and already knew the answer to. I know how to code for
    angle brackets as content, thanks.

    My question was why, using the original example, a fully HTML-compliant
    UA should interpret "<br />" as in fact being "<br> &gt;". In other
    words, why shouldn't it interpret it as if it were a malformed tag,
    viz. "<br/>"?

    I've been assuming that the answer is in the SGML specification rather
    than that for HTML?


    --
    AGw.
    frederick, Apr 20, 2006
    #18
  19. Mike Schumann

    frederick Guest

    David Dorward wrote:
    > wrote:
    > >> > I know that <br> specifies a new line in HTML. What does <br /> do?

    >
    > >> In HTML, it means "A line break followed by a greater than sign",
    > >> although most browsers get this wrong and treat it as "A line beak".

    >
    > > I've never understood that, so perhaps today I'll try to get my head
    > > around it: can you point me to the relevant reference?

    >
    > Well... http://www.cs.tut.fi/~jkorpela/html/empty.html is a fairly detailed
    > explanation,


    Ah, I'll have a read of that!

    > but the actual reference would be the SGML spec - and I don't
    > think that is freely available.


    I had a feeling that that was where the answer lay...

    Thanks,


    AGw.
    frederick, Apr 20, 2006
    #19
  20. Mike Schumann

    Marc Guest

    David Dorward wrote:
    > Well... http://www.cs.tut.fi/~jkorpela/html/empty.html is a fairly detailed
    > explanation, but the actual reference would be the SGML spec - and I don't
    > think that is freely available.


    Does Jukka still frequent this newsgroup?

    Marc
    Marc, Apr 20, 2006
    #20
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bill Johnson
    Replies:
    0
    Views:
    1,217
    Bill Johnson
    Jul 8, 2005
  2. Replies:
    3
    Views:
    460
    Ken Cox [Microsoft MVP]
    Oct 7, 2005
  3. Janet Collins
    Replies:
    0
    Views:
    1,121
    Janet Collins
    Jan 13, 2006
  4. Replies:
    1
    Views:
    823
    Juan T. Llibre
    Feb 8, 2006
  5. Alek Nazarian
    Replies:
    7
    Views:
    3,199
    Alek Nazarian
    Oct 22, 2003
Loading...

Share This Page