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 element

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

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

A

They go inside the html

element

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

What is the purpose of a declaration?

A

This is used to tell the 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

What is the purpose of HTML attributes?

A

hey provide additional information about the content of an element

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

Give five examples of HTML element types

A
– h1 - Heading 1
– img - Images
– p - Paragraphs
– head - meta data
– body - visible html content
– title - title of the page displayed by the browser
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the purpose of HTML attributes?

A

They provide additional information about the content of an element

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

Give an example of an HTML entity (escape character).

A

Less-than sign < or Ampersand &.

We use escape characters to type a symbol that has a special meaning in the programming language

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

How do block-level elements affect the document flow?

A

Block elements will always appear to start on

a new line. Some examples are: h1, p, ul, li

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

How do inline elements affect the document flow?

A

Inline elements will always appear on the same line

as their neighboring elements. Some examples are: a, b, em, img

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 a block-level element?

A

height: a new line above and below
the block element. It will be dictated by the content: width of the containing block of the containing
element

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

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

A

height and width: only occupy the space

bounded by the tags defining the element

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

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

A

ordered lists are where each item is numbered whereas unordered lists are bullet points rather than characters indicating order. As an example, <ol> will reate an ordered list and </ol><ul> will create an unordered list. <li> are used for list elements</li></ul>

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

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

A

HTML list is a block element

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

What HTML tag is used to link to another website?

A

<a> is the tag used for linking to another website</a>

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

What is an absolute URL?

A

An absolute URL is a web address that we would type into a browser if we want to visit a specific page. It will starts with a domain name for the site and followed by the path to a specific page

17
Q

What is a relative URL?

A

relative URL on the same website is a shorthand version of absolute URL because we can omit the domain name. We can use relative URLs to create links to pages without setting up domain name or hosting.

18
Q

What is the internet?

A

t is a global network of computers that are connected to each other. Every computer on the public internet has an IP address.

19
Q

How does the internet work?

A

Your browser needs to know what a domain name means. A DNS (domain name system) lookup is performed to translate the domain name to an IP address. Next, the browser opens a TCP connection to the computer at the IP address. Then, the browser sends an HTTP request to the computer at the IP address. Lastly, the browser receives a response from that computer at that IP address (originally this was an HTML document).

20
Q

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

A

We will use ../ followed by the path to the file to indicate a parent directory

21
Q

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

A

We will use the path of the file to the child directory

22
Q

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

A

We will use ../../ followed by the path to the file to indicate a grand parent directory

23
Q

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

A

We will use the file name

24
Q

What is the purpose of an HTML form element?

A

Forms are used to allow user to search (such as
Google), registering membership to a website (Google account), shopping online (Amazon), and signing
up for newsletter or mailing lists. In essence, to collect user information

25
Q

Give five examples of form control element

A

Input, button, submit, form, field set, label, legend, text

area, select, option

26
Q

Give three examples of type attribute values for HTML elements

A

Submit, Text, Checkbox,

email

27
Q

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

A

The input is an inline block

element

28
Q

What are the six primary HTML elements for creating tables

A

table, tr (table row), td (table data), th (table heading), thead (table header), tbody (table body), tfoot (table footnotes)

29
Q

What purpose do the thead and tbody elements serve?

A

thead gives us the heading of the table where tbody gives us the body of the table

30
Q

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

A

dates and time, sales, timelines, grades