Modern HTML and CSS from the Beginning (Including Sass) - Links, Images & Attributes

Modern HTML and CSS from the Beginning (Including Sass) - Links, Images & Attributes

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Wayground Content

FREE Resource

This video tutorial covers how to create and manage links and images in HTML using VS Code. It begins with setting up the environment and creating external links, including using the target attribute to open links in new tabs. The tutorial then explains how to create internal links within the same website. Finally, it demonstrates how to add both local and remote images to a webpage, including using the Unsplash service for random images.

Read more

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of setting up a boilerplate in an HTML file?

To add CSS styles

To create a basic structure for the HTML document

To link JavaScript files

To optimize images

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which attribute is essential for creating a hyperlink in HTML?

href

alt

title

src

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why might you want to open a link in a new tab?

To keep the current website open while visiting another

To save the link for later

To improve website loading speed

To prevent the link from being clicked

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between inline and block elements?

Inline elements take up the full width, block elements do not

Block elements take up the full width, inline elements do not

Inline elements are always visible, block elements are not

Block elements are always visible, inline elements are not

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create an internal link to another page in the same folder?

Use the full URL of the page

Use a relative path with a slash

Use a JavaScript function

Use an absolute path

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'alt' attribute in an image tag?

To provide alternative text if the image cannot be displayed

To link the image to another page

To provide a caption for the image

To specify the image's dimensions

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which attribute is used to specify the source of an image in HTML?

alt

src

title

href

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?