Skip to main content
2 of 3
deleted 3 characters in body
Lie Ryan
  • 652
  • 3
  • 3

Yes, the `code` styling is rendered using <code> tag, and according to HTML 5 specification:

The code element represents a fragment of computer code. This could be an XML element name, a file name, a computer program, or any other string that a computer would recognize.

The <code> tag does not necessarily have to be program code, it can be any computer code. File names, package names, and URLs are clearly computer code.

Keyboard keys can be argued to be computer code, however the <kbd> tag is more suitable for that, and therefore should be preferred for keyboard keys.

A path to find a settings can (e.g. System Settings > Keyboard > Repeat Keys) is analogous to a file path.

Date-time though, unless it's in a format that is computer-friendly, is most likely not an appropriate use of `code` markup.

Lie Ryan
  • 652
  • 3
  • 3