Ads

Breaking

Sunday, July 19, 2020

HTML line break tag

HTML line break tag "</br>":- 

Line break is a part of writing a document or an article . When this tag is used , it allows you to start from the next line . This tag is called as an empty element , where there is no need of paired tag i.e. opening and closing tag , as there is nothing that go in between them . The tag which is used in order to break a line is </br> .

Step by step representation to use this tag is as follows :-

1. Open your text editor .

2. Write basic tags i.e. html , head , body . use title tag to write "line break 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 1 , this is a paragraph 2" .


4. Save this file with . html extension . I a, saving this file as "html_line_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 </br> tag to  check the result .


6. Use </br> tag between "this is a paragraph 1 and this is a paragraph 2" as "this is a paragraph 1 </br> this is a paragraph 2" .


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



8. Open the saved file in any browser to see the result of line break tag "</br>" .


Read this also :-

No comments:

Post a Comment