Why </br> are not showing in </ul>?
I have the following html code: <td height="218" colspan="4" valign="top"> <ul class="MainText"> <li >Type of Properties: Vineyard, farmhouse, castle, villa, chalet, apartments...</li> </br> <li > Wide range of price</li> </br> <li> Paris</li> </br> <li > Provence</li> </br> <li >Alpine ski resorts</li> </br> <li >Cote d'Azur</li> </ul> </td> why am not getting line breakes (a line space bettwen the listed tiems)? I need to make the listed items bit further than each others of what they are. this is why am using a </br>, but it does not seem to be working. Why? is there any way to change the space between one item and another in an unordered list </ul>
Public Comments
- why don't you put the </BR> before the </LI>
- </br> does not exist. <br/>, however, does. Or simply <br>
- <br> means like break page <br> is what I use all the time for html code and it works great i've never heard of <li> or <ul> before
- The correct tag is <br /> and you should put it before the </li> tag. Another way is to add space using CSS. An example could be to add the following to your CSS-definitions: ul.MainText li {line-height: 1.5 em;}
- In HTML everything has a closing tag and an opening tag. <li>Some Text</li> <a>Some Text</a> and so on. Some tags, are replaced by elements, and have no logical reason for closing tags, so they'd always be <img></img> <iframe></iframe> <br></br> The closing tag wastes space and isn't helpful in any way, so browsers give you the option of ending these tags with a foward slash to indicate that they are both the opening AND closing tag here. <img /> <br /> Now </br> doesn't actually do anything, <br> (the opening tag) does everything, so using it will work, but it's still wrong. <br /> is proper. (that's <br ?/> without the question mark, yahoo is rendering it as blank space...(way to sanatize user input there yahoo!). Another element of webdesign is that we want to be STRUCTURAL which means getting away from tags like [br /] (which is presentational, it doesn't affect what the website SAYS just how it looks). CSS is to format how the site looks, ideally you should add an id or class attribute to the list item and write a class to give it space, but a [newbie] way to do it is to put the CSS in the style attribute. <li style="margin-bottom:1em;">Blue Coast</li>
- There is no tag called </br> The correct tag is <br/> (with a space between br and /).
Powered by Yahoo! Answers