ad

Tuesday, November 25, 2025

how to use the pre tag in html

how to use the pre tag in html

web designing theory

What is the <pre> Tag

✅HTML <pre> tag use to display performatted text.
✅Browser shows text exactly as it written in the HTML file.
✅Including space,indentation,line breaks.
✅<pre> tag define preformatted text and original formatting intact.

Key Features  of <pre> tag.

  ✔ Reserves whitespace (spaces & line breaks)
   Display text in monospace (fixed-width) font by default
  ✔ Useful for  showing code and formatted text.
  ✔ Keep text alignment exactly as written

  Syntax of HTML <Pre> tag

<pre>
.
.
</Pre>

  • <pre> tag  defines preformatted text. text in <pre> element display fixed-width font and text preserves.
  •  <pre> tag  use preserves  space, fixed-width 

how to use the pre tag in html
Example 

<!DOCTYPE html>
<html>
<body>
<h1>The pre Element</h1>
<pre>
    Text pre html tag
      pre tag displayed in a fixed-width,
        text font and it preserves
          both width and font spaces
             line breaks  automated create pre tag html
       
</pre>
</body>
</html>

how to use the pre tag in html

Explain Program

Step  1] 

<!DOCTYPE html>

This declare the document type.

browser that the document is written in html

Monday, November 24, 2025

What is the html BR tag with example

What is the html BR tag with example

web designing theory

This Blog You Will Learn 

What is the HTML <br> Tag 

Syntax of HTML <br> tag

Explain Program

 Output

Sunday, November 23, 2025

how to use body tag in html

how to use body tag in html

web designing theory

This Blog You Will Learn 

What is the  <body> tag ?
Why the <body> Tag 
Syntax of HTML <body> tag
Explain Program
Output

Saturday, November 22, 2025

what is the use of big tags in html

what is the use of big tags in html

web designing theory

This Blog You Will Learn 

What is the <big> Tag

Syntax of HTML <big> tag

Explain Program

Output

Friday, November 21, 2025

What is the HTML bdo Tag

What Is the HTML <bdo> Tag

web designing theory

What Is the HTML <bdo> Tag

syntax 

 Syntax of HTML <bdo> tag


<bdo>
.
.
</bdo>

What Is the HTML <bdo> Tag

Example 


<!DOCTYPE html>
<html>
    <body>

      <h1> bdo Tag html </h1>
       <bdo dir="ltr">webdesigningtheory.blogspot.com</bdo><br>
        <bdo dir="rtl">webdesigningtheory.blogspot.com </bdo>
    </body>
</html>

What Is the HTML <bdo> Tag

Explain Program

Step  1] 

<!DOCTYPE html>

This declare the document type.

browser that the document is written in html

Step 2 ]

<html>.... . </html>

html is the root element of the html page.

 Every thing inside it is part of the webpage.

Step 3]

<head>.....</head>

head section contain metadata  about the webpage information 

for the browser not display on the webpage.

Step 4]

      <h1> bdo Tag html </h1>

webpage displays a heading with  the text.

bdo tag html  overrides the natural direction of the text.

<h1> is largest heading size.

Step 5]

<bdo dir="ltr">webdesigningtheory.blogspot.com</bdo><br>

  <bdo> stands for Bi-Directional Override.

 allows you to force direction which text is displayed.

 <dir="ltr">......</bdo>     mean show content from  Left to Right  

Step 6]

<bdo dir="rtl">webdesigningtheory.blogspot.com </bdo>

<dir="rtl"> 

 show text Right to Left.(reversed starting from right side)

Step 7]

<br>

line break  move the next text to new line.

Step 8]

closing the Tag


</body>

 </html>

What Is the HTML <bdo> Tag
Output


What Is the HTML <bdo> Tag







Related Post :-

how to use pre tag

html heading tag

how to use the image tag html