HTML Tag <OL>

HTML Tag <OL>

<OL> Contains a numbered (ordered) list.

Attribute of <OL> Tag

CLASS

Indicates which style class applies to the <OL> element.

<OL CLASS="Tutorial"> <LI>PHP <LI>ASP.net <LI>JSP <OL>

Possible Values

Any Class Name.



COMPACT

Indicates that the ordered list appears in a compact format. This attribute may not affect the appearance of the list as most browsers do not present lists in more than one format.

<OL COMPACT>

Possible Values

COMPACT



ID

Assigns a unique ID selector to an instance of the <OL> tag. When you then assign a style to that ID selector, it affects only that one instance of the <OL> tag.

Recommended bicycle accessories: <OL ID="tutorial"> <LI>PHP <LI>ASP.net <LI>JSP </OL>

Possible Values

Any ID Name.



START

Specifies the value at which the ordered list should start.

<OL TYPE=A START=F>

Possible Values

Starting Index Value.



STYLE

Specifies Style Sheet commands that apply to the ordered list.

<OL STYLE="background: black; color: white">

Possible Values

CSS Property with Value.



TITLE

Specifies text assigned to the tag. You might use this attribute for context-sensitive help within the document. Browsers may use this to show tool tips over the ordered list.

<OL TITLE="Ordered list">

Possible Values

Any Text Message.



TYPE

Specifies the numbering style of the ordered list.

<OL TYPE=a> <LI>PHP <LI>JSP <LI>ASP <LI>JAVA </OL>

Possible Values

a,A,i,I,1...




CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad