<LI> Tag & its Attribute

HTML Tag <LI>

<LI> Places items into ordered (see the <OL> tag), menu (see the <MENU> tag), directory (see the <dir> tag), and unordered (see the <UL> tag) lists.

Attribute of <LI> Tag

CLASS

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

<LI CLASS="dkm">Tutorial


Possible Values

Any Class Name.



ID

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

<LI ID="dkm">List Item 1</LI>


Possible Values

Any ID name.



STYLE

Specifies Style Sheet commands that apply to the list item.

<LI STYLE="background: red">


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 list item.

<LI TITLE="List Item">Item 1


Possible Values

Any text Message.



TYPE

Specifies the bullets for each unordered list item (see the <UL> tag) or the numbering for each ordered list item (see the <OL> tag).

<UL>
<LI TYPE=SQUARE>Food
<OL>
<LI TYPE=1>Spaghetti
<LI TYPE=1>Tossed Salad
</OL>
</UL>


Possible Values

SQUARE,Circle



VALUE

Sets a number in an ordered list. Use this attribute to continue a list after interrupting it with something else in your document. You can also set a number in an ordered list with the START= attribute of the <OL> tag.

<OL TYPE=1>
<LI VALUE=5>Watch
<LI>Compass
</OL>


Possible Values

Integer Number.




CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz