Most sites are using pre instead.
|Attrs||Other Attributes||Common, Event, I18n||STF|
DTD. Defines which document type the attribute is allowed. S=Strict, T=Transitional, F=Frameset.
The below shows how to markup code samples in HTML pages, using samp tags.
<samp> <!DOCTYPE html> <html lang="en"> <head> <title>My first Website</title> </head> <body> <p>My first Website.</p> </body> </html> </samp>