Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Image Details | Basic Elements
Introduction to HTML

bookImage Details

We have already practiced with images. It is written as <img> and is an empty tag, meaning it does not have a closing tag like regular HTML elements.

  • src attribute is used to specify the source or location of the image.
index.html

index.html

copy
  • alt attribute specify alternative text for the image in case the image cannot be displayed.
index.html

index.html

copy
  • width and height attributes are also crucial for the tag, as they specify the image's dimensions in pixels.
index.html

index.html

copy
  • title is used to specify additional information about the image.
index.html

index.html

copy

Task

  1. Set the lang attribute to "en".
  2. Create a <title> tag with the content Challenge.
  3. Create a top-level heading with the content Welcome to my webpage.
  4. Add an src attribute with a path to an image you want to add. Also, add an alt attribute.
  5. Add the b and em tags to the paragraph.

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 2. Kapittel 4

Spør AI

expand

Spør AI

ChatGPT

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

Awesome!

Completion rate improved to 3.45

bookImage Details

Sveip for å vise menyen

We have already practiced with images. It is written as <img> and is an empty tag, meaning it does not have a closing tag like regular HTML elements.

  • src attribute is used to specify the source or location of the image.
index.html

index.html

copy
  • alt attribute specify alternative text for the image in case the image cannot be displayed.
index.html

index.html

copy
  • width and height attributes are also crucial for the tag, as they specify the image's dimensions in pixels.
index.html

index.html

copy
  • title is used to specify additional information about the image.
index.html

index.html

copy

Task

  1. Set the lang attribute to "en".
  2. Create a <title> tag with the content Challenge.
  3. Create a top-level heading with the content Welcome to my webpage.
  4. Add an src attribute with a path to an image you want to add. Also, add an alt attribute.
  5. Add the b and em tags to the paragraph.

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 2. Kapittel 4
some-alt