HTML lAB MANUAL
HTML lAB MANUAL
Attributes:
src: path to audio file.
controls: Adds play/pause UI
HTML (HYPERTEXT MARKUP LANGUAGE)
LISTS
HTML lists allow web developers to group a set of related items in lists.
An unordered HTML list:
• Item
• Item
• Item
• Item
An ordered HTML list:
1.First item
2.Second item
3.Third item
4.Fourth item
HTML (HYPERTEXT MARKUP LANGUAGE)
Unordered HTML List
<ul> - unordered tag
<li>- List of items
NOTE: The list items will be marked with bullets (small black circles) by default:
Eg:
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
Output:
HTML (HYPERTEXT MARKUP LANGUAGE)
Unordered HTML List - Choose List Item Marker
list-style-type property is used to define the style of the list item marker. It can have one
of the following values:
Value Description
disc Sets the list item marker to a bullet
(default)
circle Sets the list item marker to a circle
square Sets the list item marker to a square
none The list items will not be marked
Example:
<ul style="list-style-type:disc;">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
HTML Ordered Lists
<ol> - ordered list
<li> - List Item
Example:
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
Output
HTML (HYPERTEXT MARKUP LANGUAGE)
Ordered HTML List - The Type Attribute
Type Description
type="1" The list items will be numbered with numbers (default)
type="A" The list items will be numbered with uppercase letters
type="a" The list items will be numbered with lowercase letters
type="I" The list items will be numbered with uppercase roman numbers
type="i" The list items will be numbered with lowercase roman numbers
Example:
<ol type="1">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
HTML (HYPERTEXT MARKUP LANGUAGE)
HTML Description Lists
<input type="radio"> Displays a radio button (for selecting one of many choices)