HTML Flashcards

1
Q

How do you make text bold and simultaneously signal to the browser that it’s important?

A

<strong></strong>

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

How do you make the text italic and simultaneously signal to the browser that it’s important?

A

<em></em>

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

How do you create an ordered list?

A

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

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

How do you create 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
5
Q

How do you insert an image?

A

<img></img>

<img></img>

src is an attribute

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

How do you add an alternative text for an image?

A

alt=”description of image”

img src=”image.jpg” alt=”description of image”>

src and alt are attributes

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

What are the most common html section elements?

A

headings - h1, h2….h6

<main> the most central content of the page
<aside> other content on the page
<article> stand-alone piece of content.
<header> header of the page, often containing navigation
<footer> footer information like contact info
<nav> navigation like links and menus
<section> general purpose container for sectioning pages where a more specific container does not make sense.
</section></nav></footer></header></article></aside></main>

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

What are the most common child elements in <head>?

A

<title>, <meta></meta> and <link></link>
</title>

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

What is the second child of the <html> element after <head>?

A

<body>
</body>

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

How do you link to an external resource?

A

<link></link>

<link></link>

where href and rel are attributes

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

What tag is used to add metadata? (Data not covered by other elements)

A

<meta></meta>

e.g. to set the viewport to the size of the rendering device in <head>

<meta></meta>

Also, best practice to specify the encoding of the character format in <head>.

<meta></meta>

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

How do you specify a quote?

A

<blogquote></blogquote>

is a block element (breaks up the flow of the text on the page)

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

What element is used to contain a chart or a figure?

A

<figure> (typically contains an <img></img> or other media element)
<figcaption> provides a caption for a figure
</figcaption></figure>

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

What element is used to provide a wrapper around text that is normally used to attach styles?

A

<div>
</div>

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

What element is used to link to another document on the web?

A

<a> - “anchoring”</a>

<a>Link</a>

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