Ads

Breaking

Sunday, July 19, 2020

Tag in HTML for make a one tab space ?

One tab space in HTML :-
Suppose in a paragraph you want to use a phrase "5 little mokey's" here you woud not want a browser to split them into two different line e.g. "5 little" in one line and "monkey's" in another one .

In a condition , where you want the client browser to break text not into break line , then in that place instead of using normal space you should use non breaking space entity i.e.   .

Follow the steps to use this coding in a paragraph to break text using non breaking space entity :-

1. Open your text editor .

2. Write basic tags i.e. html , head , body . use title tag to write "break text example" in head section in order to understand which type of document/ webpage 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" .

 


4. Save this file with . html extension . I am saving this file as "html_text_break_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 &nbsp; to check the result .


6. Use &nbsp; after each word "this is a paragraph" as "this &nbsp; is &nbsp; a &nbsp; paragraph" .



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


 8. Open the saved file in any browser to see the result of text break example by using &nbsp; .



Related Post :- 
 

No comments:

Post a Comment