HTML (HyperText Markup Language) Flashcards

1
Q

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

A

Head element - this is where metadata is stored

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

Where do you put visible content about the HTML document?

A

Body element

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

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

A
  • Head after the opening HTML tag

- Body after the closing head tag

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

What is the purpose of the DOCTYPE declaration?

A

Tells a browser which version of HTML the page is using. It can also help the browser to render a page correctly.

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

Give 5 example of HTML tags.

A

html, head, title, body, h1, a, p, br, div, ul, ol, li, dl, img

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

What is the purpose of HTML attributes?

A

Provides additional content for elements. (ie href will allow a link to appear in “a” tags and images to appear in img tags)

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

Give an example of HTML entity (escape characters)

A

Less than sign, Greater than sign, Ampersand, Quotations, Cent Sign, Pound Sign, Yen Sign, Euro Sign, Copyright, Registered trademark, Trademark, Left single quote, Right single quote, Left double quotes, Right double quotes, Multiplication sign, Division sign

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

How do block-level elements affect the document flow?

A

Start a new line and will take full width of the parent element

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

How do inline elements affect the document flow

A

Will continue on the same line and will only take as much space as it needs. Cannot be resized.

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

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

A

Width: 100%
Height: auto

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

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

A

Width: auto
Height: auto

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 will number each item while unordered lists will not

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

Block element

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 (a) tag

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

What is an absolute URL?

A

Full webpage url to another page.

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

What is a relative URL?

A

Links that help you navigate within the same application

17
Q

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

A

../

18
Q

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

A

directory/filename

19
Q

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

A

../../

20
Q

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

A

Name of file

21
Q

What is the purpose of an HTML form element?

A

To create an enclosure to hold form content. Boundaries for a form to be filled out.

22
Q

Give fixe examples of form control elements.

A

input, text area, option, button, select

23
Q

Give three examples of type attributes for HTML input elements.

A

text, checkbox, radio

24
Q

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

A

Inline element

25
Q

What are the six primary HTML elements for creating tables?

A

table, thead, th, tbody, tr, td

26
Q

What purpose do the thead and tbody elements serve?

A

To separate content of head and body in a table

27
Q

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

A

Any tabular data (banking information, sports standings, bootcamp job placement rates etc.)