In HTML you can create three different types of lists: unordered (UL), ordered (OL) and definition (DL) lists.
These HTML lists are block-level elements.
<html> <head> <title>Document Title</title> </head> <body> <ul> <li>HTML course</li> <li>CSS Course</li> <li>PHP - MySQL</li> </ul><br /> With "circle" type: <ul type="circle"> <li>HTML course</li> <li>CSS Course</li> <li>PHP - MySQL</li> </ul><br /> With "square" type: <ul type="square"> <li>HTML course</li> <li>CSS Course</li> <li>PHP - MySQL</li> </ul> </body> </html>This code will display:
<html> <head> <title>Document Title</title> </head> <body> <ol> <li>HTML lessons</li> <li>Ajax tutorials</li> <li>JavaScript course</li> </ol><br /> With "I" type: <ol type="I"> <li>HTML lessons</li> <li>Ajax tutorials</li> <li>JavaScript course</li> </ol><br /> With "a" type and start="3": <ol type="a" start="3"> <li>HTML lessons</li> <li>Ajax tutorials</li> <li>JavaScript course</li> </ol> </body> </html>This code will display:
<html> <head> <title>Document Title</title> </head> <body> <ol> <li><p>Here is a paragraph<br /> A new line in the paragraph.</p></li> <li>HTML lessons: <ul type="square"> <li>Adding images</li> <li>DIV and SPAN</li> </ul> </li> <li>Another list item</li> </ol> </body> </html>This code will display:
Here is a paragraph
A new line in the paragraph.
<html> <head> <title>Document Title</title> </head> <body> <dl> <dt>HTML</dt> <dd> - Hyper Text Markup Language</dd> <dd> - Language for web pages</dd> <dt>CSS</dt> <dd>Cascading Style Sheets</dd> <dd>style sheet language used with HTML</dd> </dl> </body> </html>This code will display:
<div style="width: 80%; border: 3px solid #888888;">Content</div>
#some_id { transform: skew(20deg, 25deg); -ms-transform: skew(20deg, 25deg); /* IE 9 */ -webkit-transform: skew(20deg, 25deg); /* Safari and Chrome */ }
var rightnow = new Date(); alert( rightnow.toString() );
$arr = arra("abc", "<p>xyz</p>", "<em>PHP</em>"); // apply the strip_tags() function to delete HTML tags from each array item $arr = array_map("strip_tags", $arr); }