Explore a little.C ProgrammingC++HTMLVisual BasicSystem AnalysisE-CommerceBCA Notes
LEARN SOMETHING NEW

Pre tag in Html

Read4BCA learning libraryFree access

Pre tag in Html

Uses of <pre> tag

Used to separate the text from the rest of the content.
Browsers traditionally bold the text found within this tag.


Example:

<!DOCTYPE html>
<html>
<head>
<title>Pre tag</title>
</head>

<body>
<!------Pre tag-------->
<pre>

R E A D 4 B C A

</pre>

<!------Without Pre tag-------->

R E A D 4 B C A


</body>
</html>

Output of this code will look like this:

Pre tag in Html example

This lesson preserves the original Read4BCA material. Some programming examples use older tools and syntax. View original page.