The markers for an ordered list can be changed by setting the type attribute. There are five types: Numbers, Uppercase Letters, Lowercase Letters, Uppercase Roman Numberals, and Lowercase Roman Numerals. These are set, respectivey, by setting the type attribute as follows:
The default that is used when the no value is set is Numbers.
<!DOCTYPE html> <html> <head> <title>XoaX.net's HTML Ordered List Example</title> </head> <body> <ol type="I"><b>The Ten Commandments</b> <li>I am the LORD your God: you shall not have strange Gods before me.</li> <li>You shall not take the name of the LORD your God in vain.</li> <li>Remember to keep holy the LORD'S Day.</li> <li>Honor your father and your mother.</li> <li>You shall not kill.</li> <li>You shall not commit adultery.</li> <li>You shall not steal.</li> <li>You shall not bear false witness against your neighbor.</li> <li>You shall not covet your neighbor's wife.</li> <li>You shall not covet your neighbor's goods.</li> </ol> </body> </html>
© 20072024 XoaX.net LLC. All rights reserved.