HTML Flashcards

(27 cards)

1
Q

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

A

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

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

in a 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 <!DOCTYPE> declaration

A

To declare specific type of document, which is usually HTML

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

Give 5 examples of HTML elements types

A

html
head
title
body
div

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

To add features of its content such as color, size, height, width, and etc

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

Give an example of an HTML entity

A

registered symbol = & reg;
trade mark = & trade;
ampersand = & amp;

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

It starts an element in a new line

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

it is continuous in the same row

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 are numbered unless it’s modified with CSS
Unordered list would be 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

Block element because it starts a new item on the next 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

a
anchor element

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

What is an absolute URL?

A

absolute URL is an URL that links to a completely different website

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

What is a relative URL?

A

relative URL is a link that links to a specific spot within the same document or website

17
Q

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

A

using “../”

18
Q

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

A

You use the directory of the folder to the folder
example: abcd/javascript.jpg

19
Q

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

A

using ../../
need to use it twice

20
Q

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

A

using a period

21
Q

What is the purpose of an HTML form element?

A

to display interactive controls for submitting information
Allows you to group together the form of the data

22
Q

Give five examples of form control elements.

A

text input
text area
select
options
buttons

23
Q

Give three examples of type attribute values for HTML <input></input> elements.

A

button
checkbox
color

24
Q

Is an HTML <input></input> element a block element or an inline element?

25
What are the six primary HTML elements for creating tables?
table tr td thead tbody
26
What purpose do the thead and tbody elements serve?
thead defines a set of rows defining the head of the columns of the table tbody encapsulates a set of table rows - content of the table
27
Give two examples of data that would lend itself well to being displayed in a table.
groups of data with the same data that represents something sports stats, financial numbers, stock information