Sep 24, 2020

HTML for Beginners, Testers | HTML Paragraphs

 <p> element declares a paragraph in HTML.
For Example:
<p>This is a paragraph.</p>

HTML Horizontal rules:
The <hr> tag represents a thematic jump break.

The poem problem:

<p>
Jack and Jill
Went up the Hill
</p>
The above code displayes entire poem in one line.

Solution: <pre> tag
<pre>
Jack and Jill
Went up the Hill
</pre>

The above code provides pre-formatted text usually in Font Courier as is with line breaks. 

Sample Code:


HTML for Beginners, Testers | HTML Paragraphs


No comments:

Post a Comment

Thanks a lot for your valuable Comment!

Featured this week

Latest Employment BUZZ: 4 working days in a week?

COVID-19 has hit mostly all sectors including IT  too bad. If we think otherwise, on the other hand,  there have been many new technical inn...