Results 1 to 6 of 6

Thread: <br /> Tags are being ignored by IE7

  1. #1
    Join Date
    Dec 2009
    Posts
    42

    <br /> Tags are being ignored by IE7

    I have an html program in which i have used a br tag which is being ignored. If i attempt to put more than one br tag Internet explorer ignores all of the br tags except the first one. For instance consider the following programs.

    Wish you Merry Christmas and<br /><br />
    a prosperous New year

    gives me the following output

    Wish you Merry Christmas and
    a prosperous New year

    instead of

    Wish you Merry Christmas and

    a prosperous New year
    please suggest some solutions regarding this matter.

  2. #2
    Join Date
    Nov 2005
    Posts
    1,203

    Re: <br /> Tags are being ignored by IE7

    I am very much surprised to see that this has not been a problem while i test it on the websites that we build . Because we are using double br in many places. Please make it sure that this also won't work with the Internet Explorer 7 and then reply again.

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    Re: <br /> Tags are being ignored by IE7

    I would like to tell you one thing that if you are using this in html it is good if you use the HTML then use <br> tag which does not have any end tag but the tag which you are showing in your program is a type of br tag itself but is widely used in the XHTML and nowhere in the HTML and it also has the starting and the ending tag

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    Re: <br /> Tags are being ignored by IE7

    Coming to the HTML . Please make a not of it that the HTML supports the <br> tag which do no have any end tag like <br /> hence do not use this tag. If you are programming using the html language then you must use only <br> if you want to make a gap of two line then you can use it twice. And i am definitely sure that it would work with all the Internet Explorer version.

  5. #5
    Join Date
    Jan 2008
    Posts
    1,521

    Re: <br /> Tags are being ignored by IE7

    The br tag is used only in the html if you are trying to use the <br /> tag then you must give a try to <br/> without any space in between the br and the "/". If nothing is working for you then give it a try. Also specify that whether you are using html or xhtml in your later replies.

  6. #6
    Join Date
    Feb 2008
    Posts
    1,852

    Re: <br /> Tags are being ignored by IE7

    As far as html is concerned it provides only the br tag . The <br /> tag is used only with the XHTML. So if you want the desired output than you will have to use the br tag instead of the <br /> your code would look like the one below

    Wish you Merry Christmas and<br><br>
    a prosperous New year

    I hope that you have got the desired output

Similar Threads

  1. How to edit and fix MP3 tags
    By SoftWore in forum Tips & Tweaks
    Replies: 1
    Last Post: 10-09-2010, 10:04 PM
  2. What are an ID3 tags in PHP?
    By Jacques25 in forum Software Development
    Replies: 4
    Last Post: 28-02-2010, 03:36 AM
  3. What are Meta Tags
    By Mumtaz86 in forum Technology & Internet
    Replies: 5
    Last Post: 27-02-2010, 12:47 PM
  4. Remove sub-tags in PHP / XML
    By kanchu in forum Software Development
    Replies: 2
    Last Post: 29-04-2009, 02:59 PM
  5. Tags (or tags) PHP
    By Gyan Guru in forum Guides & Tutorials
    Replies: 2
    Last Post: 22-12-2008, 01:04 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,586,817.00455 seconds with 17 queries