holmedwa04 Posted August 30, 2006 Share Posted August 30, 2006 If I wanted a list, with different types of bullets, would I just nest another unordered or ordered list in a parent list? Like this: <ul> <li>Bullet 1 <li>Bullet 2 <li>Bullet 3 <ul> <li>Bullet 3.1 <li>Bullet 3.2 </ul> <li>Bullet 4</ul> And then would the bullets 3.1 and 3.2 be a different bullet? Link to comment Share on other sites More sharing options...
Cronthenoob Posted August 30, 2006 Share Posted August 30, 2006 Well sort of, but, you need to end your <li> tags after each item.if you wanted to <ul> inside a <li> you do this <ul> <li>item 1</li> <li>item 2 <ul> <li>item 2.1</li> </ul> </li> Link to comment Share on other sites More sharing options...
aspnetguy Posted August 30, 2006 Share Posted August 30, 2006 I think that depends on the browser viewing it, to be sure you could use CSS and list-style-type Link to comment Share on other sites More sharing options...
holmedwa04 Posted August 30, 2006 Author Share Posted August 30, 2006 Im confused, the tutorial that I followed, told me that you didn't need to close any <li> tags? Link to comment Share on other sites More sharing options...
Cronthenoob Posted August 30, 2006 Share Posted August 30, 2006 Try running it throug the validator and see what it says :)I could be wrong. Link to comment Share on other sites More sharing options...
holmedwa04 Posted August 30, 2006 Author Share Posted August 30, 2006 Try running it throug the validator and see what it says :)I could be wrong.It says something about nodoctype? Link to comment Share on other sites More sharing options...
Cronthenoob Posted August 30, 2006 Share Posted August 30, 2006 Well thats one of the rules.You need a doctype and a character set specified.And according to the rules of xhtml you need to close every tag you open, so I'm assuming you would close list item tags as well. Link to comment Share on other sites More sharing options...
holmedwa04 Posted August 30, 2006 Author Share Posted August 30, 2006 Ok, so do I need to put a doctype and typeset or whatever on all of my pages?If so what will they look like and how will I make them? Link to comment Share on other sites More sharing options...
Cronthenoob Posted August 30, 2006 Share Posted August 30, 2006 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-Transitional.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /></head><body></body></html> There are other types of doctypes, you can do that research on your own Or maybe someone else can tell you.But you pretty much need that basic stuff in every html document. Link to comment Share on other sites More sharing options...
aspnetguy Posted August 30, 2006 Share Posted August 30, 2006 http://www.w3schools.com/xhtml/xhtml_dtd.asp Link to comment Share on other sites More sharing options...
reportingsjr Posted August 30, 2006 Share Posted August 30, 2006 Well, it all depends.. doctypes are just so validators know what type of HTML you want to validate.. they wont change the look of your page or anything. You dont really need this, but if you do validate you will need it!the closing of an <li> tag is pretty much the same, it should be closed if you are using strict html, and maybe later in time the browsers will make it so you must close it.. I would recommend closing them though... Link to comment Share on other sites More sharing options...
holmedwa04 Posted August 30, 2006 Author Share Posted August 30, 2006 How many different levels can you have? Link to comment Share on other sites More sharing options...
aspnetguy Posted August 30, 2006 Share Posted August 30, 2006 How many different levels can you have?as many as you like Link to comment Share on other sites More sharing options...
holmedwa04 Posted August 30, 2006 Author Share Posted August 30, 2006 as many as you likeWill all of the levels have different bullets? Link to comment Share on other sites More sharing options...
aspnetguy Posted August 30, 2006 Share Posted August 30, 2006 Will all of the levels have different bullets?Only if you set them to be different. You can use your own bullet images if you want Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now