2. HTML 1 Flashcards

1
Q

What does HTML stand for?

A

Hyper Text Markup Language

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

What is HTML used for?

A

Creating Web pages

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

In what does HTML consist?

A

Of a series of elements

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

What do elements do?

A

Tell the browser how to display the content

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

In what pieces do elements consist? (2)

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

What do attributes do?

A

They give ADDITIONAL information about a tag to a browser

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

E.g., For example: <a>To Another Century of expanding minds</a> : Tags?

A

<a> </a> are tags

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

E.g., For example: <a>To Another Century of expanding minds</a> : Content?

A

To Another Century of expanding minds

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

E.g., For example: <a>To Another Century of expanding minds</a> : Attributes?

A

href

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

What does inner HTML refer to?

A

To the content itself

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

E.g., For example: <a>To Another Century of expanding minds</a> : inner HTML?

A

To Another Century of expanding minds

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

Tags used in this course? (12)

A
  1. <html></html>
  2. <head></head>
  3. <title></title>
  4. <body></body>
  5. <h1></h1>, <h2></h2>, etc.
  6. <p></p>
  7. <a></a>
  8. <img></img>
  9. <div></div>
  10. <br></br>
  11. <link></link>
  12. <style></style>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What tag to put on top of page?

A

<!DOCTYPE html>

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

What is typical tag order (not a hard rule)? (9)

A
  1. <!DOCTYPE html>
  2. <html>
    </html>
  3. <head>
    </head>
  4. <title> </title>
  5. </head>
  6. <body>
    </body>
  7. CONTENT
  8. </body>
  9. </html>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What do tags do?

A

Identify the way that content needs to be shown

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

What is a nested element?

A

An element that is part of the content of another element

17
Q

Are attributes mandatory or optional?

A

Some are necessary (anchor tag), some are optional (width for an image)

18
Q

<img></img> : What attributes mandatory?

A
  1. src
19
Q

<img></img> : What attributes optional?

A
  1. width
  2. height
20
Q

What is heading tag (not def, show me)?

A

<h1>Heading 1</h1>

<h2>heading 2</h2>

<h3>Heading 3</h3>

<h4>Heading 4</h4>

<h5>Heading 5</h5>

<h6>Heading 6</h6>

21
Q

What is paragraph tag?

A

<p>This is a paragraph.</p>

22
Q

How would you link a “Click me” text to the McGill website?

A

<a href=“https://mcgill.ca”>Click me!</a>

23
Q

How would you link insert an image with text instead if issue with image?

A

<img></img>