show html code in html Edit

Murugan Andezuthu Dharmaratnam | 04 September 2020 | 1892

when I write an article about HTML and CSS, I need to display HTML code on an HTML page. The solution is displayed below.

Solution


Replace the & character with &
Replace the < character with &lt;
Replace the > character with &gt;