I want to show HTML code as plain text.
for example
<div style="width:250px;">
<xmp>
<a href="#"> new element dummy text new element dummy text new element dummy text new element dummy text new element dummy text</a>
</xmp>
<div>
The problem is while using <xmp>
tag its ignore the div width that contain text. How can I fix it out. Any other solution instead of <xmp>
tag?
<xmp>
tag is deprecated since a long time. Use its replacement<pre>
tag. – Whitelaw