Click to See Complete Forum and Search --> : this unordered list just isnt workin


beccasaur
12-03-2003, 08:48 PM
this list should have a disc bullet, then a circle bullet and then a square bullet but they're all coming up as discs even though i used the script right outta my text book. what's wrong with this..?

Favorite Vacation Spots
<UL TYPE = "DISC">
<LI>New York
<LI TYPE = "CIRCLE">Colorado
<LI TYPE = "SQUARE">Hawaii

</UL>

pyro
12-03-2003, 09:06 PM
Originally posted by beccasaur
what's wrong with this..?The book. :rolleyes:

You should be using styles:

<ul style="list-style-type: disc;">
<li>New York</li>
<li style="list-style-type: circle;">Colorado</li>
<li style="list-style-type: square;">Hawaii</li>
</ul>

and see: http://www.w3.org/TR/REC-CSS2/generate.html#propdef-list-style-type

beccasaur
12-03-2003, 09:08 PM
yeah but im supposed to use TYPE, it's for homework...is there any way to get it to work with TYPE?

pyro
12-03-2003, 09:14 PM
Ah, if it is for homework, forget everything I told you above (except the link) and see:

http://www.w3.org/TR/REC-html40/struct/lists.html#h-10.2 (points out that the type attribute has been depreciated (read: one should not use)
http://www.w3.org/TR/REC-html40/struct/lists.html#type-values (shows what values could be used, back when it was valid to do so...)

Also, I do not believe that the type attribute was valid for the <li> element even before it had been depreciated...

Paul Jr
12-03-2003, 09:15 PM
I'm not sure I understand...
Why would they insist you do something that won't work?
And why is it a problem if you use the correct method, which works? I think you should have a talk with whoever assigned you this homework...

beccasaur
12-03-2003, 09:27 PM
...i'm gonna go ahead and use style and if he says something i'll just tell him the book is wrong. thanks alot for the help though :)

pyro
12-03-2003, 09:30 PM
Sure thing, and good luck. :)

If he disagrees with you, go ahead and point him to this thread, or to the links I gave you.

spufi
12-03-2003, 10:11 PM
I'm willing to say that most books and teachers wouldn't know valid code if it smacked them up side the forehead. :D For kicks, just go to a bookstore and look through web design books and count how many that actually use a Doctype in their examples. If you find 25% of them that do, then you found a good bookstore. :p Another example is I took a web design class and on the exam I was supposed to weed through the test code and find something like 25 errors. I quit at 50+. Sometimes having the internal W3C validator running in your head can be a bad thing.

beccasaur
12-04-2003, 12:26 PM
are there any books that you could recommend?

spufi
12-09-2003, 11:19 AM
The only HTML book that I really use, but not that I use it much anymore, is "HTML 4.01 Programmer's Reference" published by Wrox. It looks to be out of print on Amazon so you will have to find a used copy, but at least it will be cheap. ;) Now, it isn't exactly a HTML for beginners book because it is a reference book. However, they do show plenty of examples and since HTML isn't rocket science, you won't be scratching your head. I did run across an error in the book, so a second edition would be nice, but that looks unlikely.

If you just want to look at book reviews and then check out books based on that, make sure you watch what year the book was made. A five star book written in 1999 is going to hold a much lower ranking with me than a 5 star book written last year.

For just a general state of the web book, I can't recommend "Designing with Web Standards" by Jeffery Zeldman enough.