Interactive online courses HTML Academy
2026-03-09 10:59 Diff

The tags in the entry text resemble real tags. But for now, it’s just text, or ordinary words. Let’s highlight these words like a code segment.

We have a special tag that is used indicate code fragments. It is called <code>.

This tag can be used to mark up any text fragment that is recognized by a computer, including software code, markup, the file name, and so on. The <code> tag does not have any special way of indicating in which language a code segment is written. Usually, browsers display text in the <code> tag using a monospaced font.

Markup example with <code>:

The <code>&lt;ul&gt;</code> tag is used to present an unordered list.

We added several styles (font and text color parameters) so that the contents of the <code> tag would look prettier. You can explore the styles in the style.css tab.