Jump to content

Lists


holmedwa04

Recommended Posts

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

 <!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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...