Version//IETF//DTD HTML 2.0 Strict//EN
ElementPRE
Purposepreformatted text
DescriptionThis element brackets text which should be rendered exactly as it appears, that is without "eating up" the white space. This is used, for example, to enclose program code or tables where the indentation is important.
Start tagRequired <PRE>
Attributes
NameTypeDefaultComment
SDAFORM CDATA #FIXED "Lit"one to one mapping; in support of transformation to the International Committee for Accessible Document Design DTD for usable access to structured information by print-impaired individuals
WIDTH NUMBER #impliedmaximum characters per line
Content( #PCDATA | A | HR | BR | TT | B | I | EM | STRONG | CODE | SAMP | KBD | VAR | CITE #PCDATA | A | HR | BR )*
End tagRequired </PRE>
Referenced in BLOCKQUOTE BODY DD DIR FORM LI MENU
Example
SourceAppearance
<PRE> 

import java.awt.Graphics;
public class HelloWorld
extends java.applet.Applet {
public void init() {
resize(
200, 200
);
}
public void
paint(Graphics context) {
context.drawString(
"Hello, world!", 10, 50
);
}
}
</PRE>
 
import java.awt.Graphics;
public class HelloWorld 
 extends java.applet.Applet {
 public void init() {
  resize(
   200, 200
  );
 }
 public void 
  paint(Graphics context) {
  context.drawString(
   "Hello, world!", 10, 50
  );
 }
}
Save this page to any social bookmarking site! Share · Search · Market · Directory
2015-11-01 · John December · Contact · Terms of Use © December Communications, Inc.