HTML5 pre Tag is useful to display preformatted text on the webpage.
HTML5 pre Tag Example:
<!DOCTYPE html> <html> <head> <title>HTML5 Tutorial</title> </head> <body> <pre>
HTML5 Tutorial. This is example of pre tag in HTML5
It preserves space and line breaks.
As you can see above, pre tag is used to display preformatted text on the webpage. It is useful to display text with unusual formatting as it can preserve the space and line breaks.