An address and a formula

Some text needs exact lines, and some characters need entities.

What to build

An address on three lines, and a line of text with special characters.

Requirements

  • The first p has three lines, separated by two br elements: Mina Akter, 12 Lake Road, Dhaka.
  • The second p shows exactly this text: Salt & pepper: use 1 < 2.

Constraints

Use one p for each. Write the special characters as entities in your source.

Example

&amp; displays an ampersand.

Why it works

br keeps line breaks that belong to the content, and entities stop the browser from reading < and & as the start of code.

Hints

Hint 1

Inside the first paragraph, br breaks the lines.

Hint 2

Write the less-than sign as &lt; and the ampersand as &amp;.

Solution

Show one correct solution (try it yourself first)
<p>Mina Akter<br>12 Lake Road<br>Dhaka</p>
<p>Salt &amp; pepper: use 1 &lt; 2</p>

Lesson: Headings, paragraphs and text →