HTML
List in HTML
List can be specified in 2 ways –
a) Ordered List
b) Unordered List
In ordered list the elements are specified with the chronological order.
In unordered list the elements are specified with the bullets.
An Unordered List:
• Item1
• Item2
• Item3
• Item4
An Ordered List:
1. First item
2. Second item
3. Third item
4. Fourth item
Ordered List
• An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.
• The list items will be marked with numbers by default.
List the different attributes of the unordered list tag
The property used to define the style of the list item marker is:
a) Disc Sets the list item marker to a bullet (default)
b) Circle Sets the list item marker to a circle
c) Square Sets the list item marker to a square
1
d) None The list items will not be marked
List the different attributes of the ordered list tag.
The type attribute of the <ol> tag, defines the type of the list item marker:
a) type="1“ The list items will be numbered with numbers (default)
b) type="A“ The list items will be numbered with uppercase letters
c) type="a“ The list items will be numbered with lowercase letters
d) type="I“ The list items will be numbered with uppercase roman numbers
e) type="i“ The list items will be numbered with lowercase roman numbers
What are the differences between HTML and XHTML?
1) HTML stands for Hypertext Markup Language. XHTML stands for Extensible Hypertext
Markup Language.
2) It was developed by Tim Berners-Lee.
It was developed by W3C.
3) It is extended from SGML.
It is extended from XML and HTML.
4) All tags and attributes are not necessarily to be in lower or upper case.
In this, every tag and attribute should be in lower case.
5) Doctype is not necessary to write at the top.
Doctype is very necessary to write at the top of the file.
6) Filename extension used are .html, .htm.
2
Filename extension are .xhtml, .xht, .xml.
7) Application of Standard Generalized Markup Language (SGML).
Application of XML