COMP_2511_flashcards

1
Q

What HTML element is used to define a border around an element?

A

CSS is used to define borders around HTML elements using the ‘border’ property.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you add an image to a webpage?

A

Use the ‘<img></img>’ tag and specify the source of the image with the ‘src’ attribute.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the purpose of the ‘‘<figure>” and ‘‘<figcaption>” elements in HTML?</figure>

A

’‘<figure>” is used to mark up a photo, diagram, or illustration, while ‘‘<figcaption>” provides a caption for the content of the ‘‘<figure>”.</figure></figure>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How does the “<picture>" element enhance responsive image delivery?</picture>

A

The ‘‘<picture>" element allows you to define multiple sources for an image, each suitable for different screen sizes or resolutions.</picture>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the best practice for sizing and placing images on a webpage?

A

Use CSS to control the size and placement of images, often with percentage values or media queries for responsiveness.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What semantic meaning do the “<header>” and “<footer>” elements provide?

A

“<header>” typically contains introductory content or navigational links, and “<footer>” contains information about the authorship and copyright of the document.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How can you change the text color and background color of an element?

A

Use the ‘color’ and ‘background-color’ properties in CSS to change the text and background colors, respectively.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is semantic HTML and why is it important?

A

Semantic HTML uses elements like “<article>”, “<section>” and “<nav” to convey the meaning and structure of the web content, improving accessibility and SEO.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly