html tutorial - Code <code> tag in HTML - html5 - html code - html form
Learn html - html tutorial - code tag in html - html examples - html programs
- <code> tag is used defined a piece of computer code.
- <code> tag is one of the Phrase tag.
- <code> tag is displayed in the browsers with default monospace font.
- <code> tag supports the Event and Global attributes.
- <code> tag belongs to Flow content, Palpable content and Phrasing content Category.
Syntax for <code> tag in HTML:
Sample Coding for <code> tag in HTML:
Code Explanation for <code> tag in HTML:
- The Sentence “Hi, Welcome to Wikitechy Site…..” defined inside the <code> element will be displayed in monospace font.
Output of <code> tag in HTML:
- Here the output shows the sentence ”Hi, Welcome to Wikitechy site….” in monospace font.
Browser Support for <code> tag:
Yes | Yes | Yes | Yes | Yes |