Attribute of <SAMP> Tag

Attribute of <SAMP> Tag

CLASS

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

Example:

Quiz Result: <SAMP CLASS="casual">You pass with 94%. </SAMP>

Possible Values

Any Text Message..



ID

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

Example:

cs-tutorial <SAMP ID="dkm">a new way of study.</SAMP>.

Possible Values

Any ID Name.



STYLE

Specifies Style Sheet commands that apply to the contents within the <SAMP> tags.

Example:

<SAMP 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.

Example:

<SAMP TITLE="Sample">

Possible Values

Any text Message.




Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 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 Best Website and Software Company in Allahabad