<PRE> Tag & its Attribute
HTML Tag <PRE>
<PRE> Contains preformatted plain text. This is useful for including computer program output or source code within your document.
Attribute of <PRE> Tag
CLASS
Indicates which style class applies to the <PRE> element.
<PRE CLASS="dkm">Tutorials:</PRE>
Possible Values
Any Class Name
ID
Assigns a unique ID selector to an instance of the <PRE> tag. When you then assign a style to that ID selector, it affects only that one instance of the <PRE> tag.
<PRE ID="dkm">
We are happy to Give Solution. :)
</PRE>
Possible Values
Any Class Name
STYLE
Specifies Style Sheet commands that apply to the contents within the <PRE> tags.
<PRE 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 preformatted text.
<PRE TITLE="Tag Names">
Possible Values
Any text message.
WIDTH
Specifies the horizontal dimension of the preformatted text (in pixels).
<PRE WIDTH=80>
Welcome to cs-tutorial.com .:)
Possible Values
Value in Pixel.