DEV Community

Cover image for HTML tags | code
Carlos Espada
Carlos Espada

Posted on • Updated on

HTML tags | code

It is used to indicate small pieces of code. In case you want to show a larger fragment, enter <code> inside a <pre> tag.

The browser will display the text using the default monospaced font, unless it is overwritten with CSS.

  • Type: inline
  • Self-closing: No
  • Semantic value: No

Definition and example | Support

Top comments (0)