http://xoax.net/
Lesson Page:
https://www.xoax.net/html/crs/core/lessons/Lesson24/
HTML Reference Page:
https://xoax.net/html/ref/core/
In this HTML lesson, we demonstrate how the pre element is used to maintain formatting within text. We begin with a simple example and a comparison between the paragraph and pre elements. Since preformatted text is ideal for programming, we give an example of a C++ program in a pre element and explain the potential pitfalls. Finally, we demonstrate how the other elements can be used within a pre element and show that text in a pre element does not wrap by default.
Copyright 2020 XoaX.net LLC
Comments