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

book
Code Markup in HTML

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

html

index.html

copy

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.html

copy

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.html

copy

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 4. Kapittel 3

Spør AI

expand
ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

some-alt