Sunday, March 18, 2018

Code for beak a line in HTML



As like my previous blog post regarding HTML coding, this is another post. In this post I will explain how to break a sentence or a line. It is very easy to break the line by inserting element <br/>
For the basics of HTML and other stuffs please go to my previous post and read out there.


Structure


The basic previous structure will be same before inserting the breaking code element to break the line.

Now after the <body> opening tag, the structure for the line breaking will be;

<p> ˍˍˍˍˍˍˍˍˍˍˍˍˍ </p>             (let it be the first paragraph)
<p> ˍˍˍˍˍˍˍˍˍˍˍˍˍ </P>             (let it be the second paragraph)
<p> ˍˍˍˍˍˍ <br/> ˍˍˍˍˍˍ </P>   (for the next paragraph with line breaking code element)



Note:


Some HTML elements like the <br/> tag do not have end tags.

Input/output






So I hope that the above discussion will be useful to learn HTML and get back your interest into it.

No comments:

Post a Comment

Code for beak a line in HTML

As like my previous blog post regarding HTML coding, this is another post. In this post I will explain how to break a sentence or a lin...