Section 3 - Intermediate HTML Flashcards

1
Q

How do you code an unordered list?

A

<ul>
<li></li>
<li></li>
</ul>

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

What is an unordered list? What does it create?

A

It creates bullet points (order doesn’t matter)

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

What’s an ordered list?

A

creates a numbered list of items in order

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

How do you code an ordered list?

A

<ol>
<li></li>
</ol>

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

What does an anchor element allow you to do?

A

create hyperlinks

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

What is an attribute in terms of anchor elements?

A

the attribute is the link that we add to the opening tag

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

What does it look like when we add a link to google to an anchor element?

A

<a href=”http://www.google.com”>This is a link</a>

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

Make sure attribute are added where?

A

in the opening tag

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

What is href used for?

A

to add the URL that the hyperlink should go to inside an opening anchor tag

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

What are global attributes?

A

Attributes that every single HTML element has access to (can be applied to every element)

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

href is a special attribute reserved for what element?

A

anchor tag

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

What’s the full code to start an ordered list from 5 instead of 1? Brainscape messed it up

A

<ol>
</ol>

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

Why is the URL for href in double quotations?

A

to distinguish it from reserved words like “href” “li” “a” etc, it’s just normal text

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

Where do you add a start element to an ordered list? Brainscape messed up the code

A

Inside the opening tag

<ol>
</ol>

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

Attributes go where?

A

In the opening tag

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

What kind of tag does the image element have? Brain messed up code

A

self-closing tags (no closing tags unlike anchor tags)

anchor:
<a>link it leads to text</></a>

image element:
<img></img>

17
Q

How do you code an image element? Brain messed it up

A

<img></img>

18
Q

What type of element is an image element?

A

a void element

19
Q

What are void elements?

A

elements with self-closing tags

ex:

<hr></hr>

<br></br>
<img></img>

20
Q

How do you size an image (image element)? What would that look like? (2)

A

you add /(whatever pixel number you want) to the end of the URL

<img></img>

21
Q

What is an important attribute for image elements that you should always include?

A

Alt attributes

22
Q

What does the Alt attribute stand for?

A

Alternative Text Description

23
Q

What is the purpose of adding an alt attribute to an image element?

A

So screen readers can read out what the image is for the blind or visually impaired

24
Q

How do you add alt attributes?

A

<img></img>