HTML Flashcards

1
Q

Give five examples of HTML element tags

A

html, head, title, body, h1

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

They give unique indications to tags provides functionality

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

&-copy, &-reg, (no spaces between ampersand and words)

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 start a new line in a 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 are added within the body and do not need new lines

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

width is 100% of the line where as height is auto (as much as necessary)

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

Both are auto (as much as is needed)

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

Where do you put non-visible content about the HTML document?

A

It is put within the head element

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

Where do you put visible content about the HTML document?

A

It is put within the body element

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

Where do the head and body tags go in a valid HTML document?

A

The head goes in between html element, the body tags are sibling element to the head and goes in between the html element as well

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

What is the purpose of a declaration?

A

It tells the browser what kind of document it is

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

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

A

ordered list are numbered and unordered lists are bullet points

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

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

A

It is a block element because it takes up one line.

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

What HTML tag is used to link to another website?

A

anchor element with a href attribute with the link of the URL

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

What is an absolute URL?

A

points to an external application source, has full domain in links

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

What is a relative URL?

A

File is within the same machine and does not need whole domain

17
Q

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

A

the ref begins with a ../ to indicate folder above current one then (file name)

18
Q

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

A

(foldername)/ (filename)

19
Q

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

A

../../(filename)

20
Q

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

A

use the file name in the link

21
Q

What is the purpose of an HTML form element?

A

Forms help with searching, and other functions

22
Q

Give five examples of form control elements

A

textarea, input Text area, option, select

23
Q

Give three examples of [type] attributes for HTML [input] elements.

A

Text, Password, and radio buttons

24
Q

Is an HTML [input] element a block element or an inline element

A

It is an inline element, does not need a new line for each

25
Q

What are the six primary HTML elements for creating tables?

A

tr, td, th, thead, tbody, table

26
Q

What purpose do the thead and tbody elements serve?

A

they serve to separate between the main content of the table from the first row. it also helps screen readers

27
Q

Give two examples of data that would lend itself well to being displayed in a table

A

dates and money

28
Q

What is the purpose of a declaration?

A

it is to tell the browser what version of HTML it is using