HTML Flashcards

1
Q

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

A

In the Head element

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

In the body

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

Where do Head and Body tags go in a valid HTML document?

A

between the HTML tags

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

What is the purpose of a doctype declaration

A

Tell a browser which version of HTML the page is using

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

5 examples of HTML element types

A

html, body, head, h1, p1, span

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

provide additional information about elements

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

example of an html entity

A

ampersand

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

They will always appear on a new line, fill the entire space

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

How do inline-level elements affect the document flow?

A

They continue to appear on the same line as their neighboring elements

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 of the page

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

height and width are auto

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

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

A

block element, starts on new line, takes up width

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 ../ followed by the file name eg: ../index.html

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 the child folder, followed by a / then the file name eg: href= “music/listings.html”

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

repeat ../ to indicate going up 2 folders then follow it with the file name. eg: href=”../../index.html”

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 the file name is required. eg: href=”index.html:

17
Q

What HTML tag is used to link to another website?

A

anchor tag <a></a>

18
Q

What is an absolute URL?

A

Url that links to outside of the document eg: https//www.google.com

19
Q

What is a relative URL?

A

A url that links to somewhere within the document that is currently being accessed

eg: href=”../index.html”

20
Q

What are the six primary HTML elements for creating tables?

A

table, tr, td, th, thead, tbody, tfoot

21
Q

What purpose do the thead and tbody elements serve?

A

separate elements of a body to be used later. can be styled differently, screen readers

22
Q

purpose of an html form element?

A

encompass all form elements

23
Q

5 examples of form elements

A

input, option, select, button, textarea, legend datalist

24
Q

Give three examples of type attribute values for HTML elements.

A

password, text, checkbox

25
Q

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

A

inline element (need to wrap in a div to go to the next line)