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
phas three lines, separated by twobrelements:Mina Akter,12 Lake Road,Dhaka. - The second
pshows exactly this text:Salt & pepper: use 1 < 2.
Constraints
Use one p for each. Write the special characters as entities in your source.
Example
& 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 < and the ampersand as &.
Solution
Show one correct solution (try it yourself first)
<p>Mina Akter<br>12 Lake Road<br>Dhaka</p> <p>Salt & pepper: use 1 < 2</p>