
We can use the preformatted Text tags, <Pre> and </pre> to display all the line breaks and spaces you enter in your HTML code for a passage of text. Web browser ignores hard returns, Line breaks, and extra spaces between words unless you surround the content with preformatted tags.
If you type a paragraph with space just the way you want it. If you want it you can assign the preformatted tags to keep the spacing in place. Preformatted text is also useful for displaying compute code on a web page because the exact spacing of such code can be important.
Preformatted text tag
Step 1: Type <pre> tag above the text you want to intact.
Step 2: Type </pre> tag below the text as you see in the result below.
Result Output
<!DOCTYPE html> <html> <Head> <Title>Coding thai</Title> </Head> <body> CV <hr> <pre> Name Narendra Chand Dateof Birth YYYY-MM-DDD Email [email protected] Phone 977+xxxxxxxxxx Address xxxx xxxx xxx </pre> </body> </html>
Follow us on Social Media For More
Facebook, Instagram, Pinterest