Articles → HTML → Pre Tag In HTML
Pre Tag In HTML
Purpose
Syntax
<pre>formatted_text</pre>
Example
<html>
<head>
<title>pre demo</title>
</head>
<body>
<pre>This is
the test
</pre>
<label>this is
the test
</label>
</body>
</html>
Try It
Click to Enlarge
Browser Support
Internet Explorer | Firefox | Chrome | Safari | Opera | Edge |
---|
Yes | Yes | Yes | Yes | Yes | Yes |