<LEGEND> Tag & its Attribute

HTML Tag <LEGEND>

<LEGEND> Specifies a description for a fieldset. Use inside <FIELDSET> tags.

Attribute of <LEGEND> Tag

ALIGN

Indicates whether the legend appears at the top, bottom, left, or right of the fieldset.

<LEGEND ALIGN=TOP>
Seattle Staff Directory
</LEGEND>


Possible Values

TOP, BOTTOM, LEFT, RIGHT



CLASS

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

<LEGEND CLASS="dkm">Tutorial Links</LEGEND>


Possible Values

Any Class Name.



ID

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

<LEGEND ID="dkm">Tutorials</LEGEND>


Possible Values

Any ID Name.



STYLE

Specifies Style Sheet commands that apply to the contents of the <LEGEND> tags.

<LEGEND 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 legend.

<LEGEND TITLE="Tutorials">


Possible Values

Any Text Message.




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