HTML Flashcards

1
Q

What are the HTML “head” elements?

A
head
title
base
link
meta
script
style
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What element should be used for a Navbar?

A

“nav” with inner “ul” and individual “li” elements

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

What is an inline element?

A

An element that does not start on a new line

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

What is a block element?

A

An element that starts on a new line and uses the full width of the container or page

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

What is the title attribute?

A

A tool-tip style window that appears on mouseover

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

What does the “strong” HTML element do?

A

It makes text bold and adds importance (i.e. deeper tone from text reader-software for blind consumers)

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

What does the “em” HTML element do?

A

Italicizes and adds stress emphasis (i.e. stress tone from text-reader software for blind consumers) to text

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

In HTML, why should you use “strong” over “b” and “em” over “i”?

A

They add importance to the text as well

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

What element highlights text?

A

“mark”

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

In HTML, how would you cite a title?

A

Using the “cite” element, which italicizes text by default

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

In HTML, what is the difference between an “absolute path” and a “relative path”

A

Relative paths are for local resources (files), which can be abbreviated, and absolute paths include “http://” or “https://” and the full path to the site

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

In HTML, what is the syntax for an external link?

A

The absolute path must be used (i.e. https://www.sample.com/samples)

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

When a user interacts with another website from within yours (i.e. in an iframe), do the requests come from the user or your server?

A

The user. The code is run by the browser, which acts of behalf of the user.

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

In HTML, what is the title element?

A

It determines what the title of a page is in search engine results and displays in the tab within the browser

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

Img elements aren’t valid without which attribute?

A

“alt”, which describes the image in the event that it cannot be rendered or for accessibility reasons

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

In HTML, why should the “alt” attribute be as descriptive as possible?

A

It helps consumers that have visual impairments to understand what’s being displayed as best as possible

17
Q

When should you use a blank “alt” attribute in HTML?

A

When using a logo with a descriptive name (i.e. logo.jpg) or simple decorative images (i.e. replacing bullets with a small decorative red ball)

18
Q

In HTML, what does the link element do?

A

Links two pages together (i.e. a webpage to a main CSS file)

19
Q

What are the required attributes for a link element in HTML?

A

“href” and “rel”

20
Q

What is the default for height and width in a HTML block element?

A

Height: 0px
Width: 100% of parent element

21
Q

Define “markup” as it pertains to HTML

A

A set of tags assigned to elements of a text to indicate their relation to the rest of the text or dictate how they should be displayed

22
Q

What is the “section” element used for in HTML?

A

It separates major sections of the layout (generic form of header/main/footer)