Ads

Breaking

Wednesday, July 22, 2020

What is Monospaced text in HTML | How to use monospaced text in HTML

1. Open your text editor .

2. Write basic tags i.e. html , head , body . use title tag to write "monospaced text example" in head section in order to understand which type of document you have made .


3.Write the paired paragraph tag inside body tag i.e. <p> and </p> and write paragraph you want to show the user in the main browsing area , to show I am writing "this is a paragraph to show monospaced Text" .


4. Save this file with . html extension . I am saving this file as "monospaced_text_example.html" .


5. To see the result how this looks like open the saved file in any browser to see the result . In point number 6 we will use <tt> tag to see the change in the result .


6. Use monospaced open and close tag<tt> , </tt> tag between "this is a paragraph to show monospaced text" as "this is a paragraph to show <tt>monospaced</tt> text".


7. Save the file as "monospaced_text_example1.html" .


8. Open the saved file in any browser to see the change in the result of monospaced text tag "<tt>" .


No comments:

Post a Comment