Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Code Markup in HTML | Advanced Text Formatting Elements
Introduction to HTML
course content

Conteúdo do Curso

Introduction to HTML

Introduction to HTML

1. Basics Introduction
2. Basic Elements
3. Metadata and the Head Element
4. Advanced Text Formatting Elements
5. Advanced Concepts

Code Markup in HTML

You can use the <code> element to mark up code in HTML.

html

index

css

index

js

index

Notice that the <code> element is nested inside the <pre> element. The <pre> element represents preformatted text and is typically displayed in a fixed-width font to preserve both spaces and line breaks.

You can also use the <code> element to mark up inline code like this:

html

index

css

index

js

index

You can also use the <kbd> element to mark up keyboard input. The <kbd> element represents user input and is typically displayed in a monospace font to distinguish it from regular text.

html

index

css

index

js

index

Tudo estava claro?

Seção 4. Capítulo 3
We're sorry to hear that something went wrong. What happened?
some-alt