Monday 9 July 2012

How To Add A Line Break And A Blank Space In HTML?

In this HTML tutorial, I am going to teach you how to insert a line break between paragraphs and  normal lines of HTML. Also you can use blank spaces in HTML documents by using entities. Go through the tutorials to learn more.


You can use the line break tag, <BR>, to control where your text breaks. Web browsers normally wrap text automatically; when a line of text reaches the right side of the browser window, it breaks and continues on the next line. You can insert a line break to instruct the browser to break the text and go to a new line.

You can also use the <BR> tag to add blank lines between paragraphs. This is useful if you want to add extra space above or below a block of text or a heading.

HTML Line Breaks

Here are some example of Line Break:
MyComputerTuts is a free Computer Tutorials blog.<BR> In this blog, you can learn HTML tutorials, CSS tutorials, Photoshop Tutorials, Dreamweaver tutorials and other web designing and web programming tutorials.
<p>
MyComputerTuts is a free Computer Tutorials blog.<BR>In this blog, you can learn HTML tutorials, CSS tutorials, Photoshop Tutorials, Dreamweaver tutorials and other web designing and web programming tutorials.
</p>
Insert a Blank Space
You can insert blank spaces within a line of text to indent or add emphasis to your text. You can also use blank spaces to help position an element on a Web page, such as a graphic or photo.

Type &nbsp; in the line where you want to add a blank space. To add multiple spaces, type the code multiple times. The code stands for non-breaking space. Web browsers will not create a line break where you insert these characters.

Here is an example of blank spaces between words:
Web&nbsp;&nbsp;&nbsp;Designing&nbsp;&nbsp;&nbsp;Tutorials

0 Responses to “How To Add A Line Break And A Blank Space In HTML?”

Post a Comment

Hi Readers!

Please give your valuable responses and suggestions.