Pages

Ads 468x60px

Monday, March 26, 2012

Line Breaks in HTML

Have you noticed how your Web browser treats the white spaces on your HTML file? Your Web browser ignores white spaces and pressing Enter of the Return key does not actually create a new line on the chunk of text on your Web page as seen on the code. It will create a new line for the text that you want to appear on the next line.


The <br> tag creates a line break or new line.


<html>
   
<body>

                       <br>This is the first line<br>
                       <br>This is the second line<br>
                        <br>This is the third line<br>
         
</body>
</html>


Output:



No comments:

Post a Comment