HTML Flashcards

1
Q

What is the purpose of a declaration?

A

To tell the browser what version of HTML we are using

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

What is the purpose of HTML attributes

A

To give information about the html element such as links and what language the element is in

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

Give an example of an HTML entity (escape character)

A

&reg for registration trademark; &copy for copyright

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

How do block-level elements affect the document flow?

A

They take up the entire width of the document

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

How do inline elements affect the document flow?

A

They can fit within block elements and do not take up the entire width of a document

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

What are the default width and height of a block-level element?

A

The width is entire width of document. Height is how much space the content takes up.

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

What are the default width and height of an inline element?

A

The width and height are just how much space the content takes up

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

What is the difference between an ordered list and an unordered list in HTML?

A

An ordered list is numbered, and an unordered list isn’t

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

Is an HTML list a block element or an inline element?

A

It is a block element

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

What HTML tag is used to link to another website?

A

The <a> tag</a>

a

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

What is an absolute URL?

A

An absolute URL is a ‘full’ URL that contains the entire address of the page or file

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

What is a relative URL?

A

A link that shows where a file is relevant to the current file

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

How do you indicate the relative link to a parent directory?

A

use ../ to indicate folder above it, then the file name

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

How do you indicate the relative link to a child directory?

A

name of child folder followed by a forward slash

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

How do you indicate the relative link to a grand parent directory?

A

use ../ twice to indicate two folders above it, then the file name

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

How do you indicate the relative link to the same directory?

A

Just put the file name

17
Q

What is the purpose of an HTML form element?

A

To submit information to the website

18
Q

Give five examples of form control elements.

A

label, textarea, button, select, input, fieldset

19
Q

Give three examples of type attributes for HTML form elements.

A

file, radio, password, checkbox, date, email, image, search, submit, url

20
Q

Is an HTML form element a block element or an inline element?

A

inline element

21
Q

What are the six primary HTML elements for creating tables?

A

table, tr, td, th, thead, and tbody

22
Q

What purpose do the thead and tbody elements serve?

A

thead is for the header of the table, and tbody is for the body of the table