Tsallaka zuwa abun ciki
Justice Tech School

Line Breaks, hr and pre

br breaks a line without starting a paragraph. hr draws a horizontal rule between sections. pre keeps spaces and line breaks exactly as typed.

Example
<p>First line<br>Second line</p>
<hr>
<pre>
  Preformatted
     text keeps   spaces
</pre>

Exercise

Break a line.

Line one<>Line two

Quiz Test

Which tag keeps spacing as typed?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.