HTML5 > Elements of HTML

Code in HTML5

How to display computer code in html page?


To display computer code on the web page, we can user <code> tag in html 5


This is normal text. This is normal text. This is normal text. This is normal text. This is normal text. This is normal text. This is normal text. This is normal text. This is normal text. This is normal text. 
<hr />
<code> This is code text. This is code text. This is code text. This is code text. This is code text. This is code text. This is code text. This is code text. This is code text. This is code text. This is code text. This is code text.
</code>

Output

Notice the 2nd paragraph is coming in different font style. its

 Views: 5899 | Post Order: 6



Write for us






Hosting Recommendations