Beginning HTML and CSS Flashcards

0
Q

What is CSS used for

A

To control how a web page looks

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

What is HTML used for

A

To explain the structure of a web page

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

What is JavaScript used for

A

To add interactivity to a web page

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

What does HTML stand for

A

Hypertext markup language

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

What does W3C stand for

A

World Wide Web Consortium

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

What does CSS stand for

A

Cascading style sheet

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

What file extension does a html file have

A

.htm or .html

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

What is a parent

A

An element that contains another element

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

What is a child

A

An element that is between the parents opening and closing tags

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

what are siblings

A

Two elements contained in the same parent

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

What two main parts are there to a web page

A

Head section

Body section

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

What is a hyperlink

A

Links that take you from one web page to another

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

What does the href attribute do in the < a > element

A

Tells you where the link should take you

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

What are attributes

A

They are the qualities that describe something

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

What do attributes do

A

Say something about the element that caries them

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

Where do attributes appear

A

On the opening tag of the element that carries them

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

What is the name part of an attribute

A

The property of the element that you want to set

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

What does an attributes consist of

A

A name and a value

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

What is the value part of an attribute

A

What you want the value of the property to be

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

How should the value of an attribute alway appear

A

In double quotation marks and separated from the name with equal sign

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

What does the title attribute do in the < a > element

A

Gives a plain language description of the target of the link

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

what does the lang attribute do

A

describes the language used within that element

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

what is a boolean attribute

A

attributes that consist of only a name

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

what are the four core attributes

A

id
title
class
style

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

what does the id attribute do

A

uniquely identifies any element within a page

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

why might you want to uniquely identify an element

A

so that you can link to that specific part in the document or to specify that a CSS style or piece of JavaScript should apply to the content of just that one element

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

what does the class attribute do

A

specifies that an element belongs to a class of elements

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

what does the title attribute do

A

gives a suggested title for the element

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

what does the style attribute do

A

enables you to specify CSS rules within the element

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

what two internationalization attributes are there

A

dir

lang

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

what does the dir attribute do

A

enables you to indicate to the browser the direction in which the text should flow: left to right or right to left.

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

what two values can the dir attribute take

A

ltr: Left to right
rtl: Right to left

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

what does the lang attribute do

A

enables you to indicate the main language used in a document

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

what are the values of the lang attribute

A

standard two-character language codes

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

what attributes can the < html > carry

A

id
dir
lang

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

what attributes can the < head > element carry

A

id
dir
lang

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

what does the < link > element do

A

link to an external file

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

what does the < script > element do

A

includes script in the document

38
Q

what does the < meta > element do

A

includes information about the document

39
Q

what is a character set

A

collections of characters used to render written language

40
Q

What does the rel attribute do in the < link > element

A

Indicates the type of the linked document and to handle it accordingly

41
Q

what attributes can the element carry

A

id
dir
lang

42
Q

What does the src attribute do in the < script > element

A

Points to the location of a JavaScript file

43
Q

what attributes can the < hn > element carry

A
class
id
style
title
dir
lang
44
Q

what elements can the < p > element carry

A
class
id
style
title
dir
lang
45
Q

what attributes can the < br > element carry

A

class
id
style
title

46
Q

what does the cite attribute do in the < blockquote > element

A

indicates the source of the quote

47
Q

what is the value of the cite attribute in the < blockquote > element

A

a URL pointing to an online document; if possible, the exact place in that document

48
Q

what three types of lists can you create in html

A

unordered
ordered
defintion

49
Q

what does the start attribute do in the < ol > element

A

specifies a value that the numbered list should start with

50
Q

what does the reversed attribute do in the < ol > element

A

allows you to reverse the order of ordered lists, counting down from the highest number

51
Q

what does the type attribute do in the < ol > element

A

allows you to specify the class of markers to use with ordered lists

52
Q

< ol type=”1”>

A

uses the decimal class of markers in ordered lists

53
Q

< ol type=”a”>

A

uses the lower-alpha class of markers in ordered lists

54
Q

< ol type=”A”>

A

uses the upper-alpha class of markers in ordered lists

55
Q

< ol type=”i”>

A

uses the lower-roman class of markers in ordered lists

56
Q

< ol type=”I”>

A

uses the upper-roman class of markers in ordered lists

57
Q

what is the content of the element intended to be

A

a point of emphasis in your document

58
Q

how does the content of the element display

A

in italicized text

59
Q

when should you use the element

A

only when you want to add emphasis to a word

60
Q

what is the element intended to do

A

show strong emphasis for its content—stronger emphasis than the element

61
Q

when should you use the element

A

only when you want to add strong emphasis to part of a document

62
Q

what does the content in the element display in

A

bold

63
Q

what does the content in the element display in

A

italicized text

64
Q

why should you use the and elements instead of the and elements

A

they can be more sensibly used in a screen reader or other implementation not dependent on a certain type style

65
Q

what is the element used for

A

fine print

66
Q

what are typical uses of the element

A

disclaimers, caveats, and copyrights

67
Q

what does the element do

A

indicate the source when you quote a text

68
Q

when should you place the element in the element

A

when you reference an online resource

69
Q

what happens when you place the element in the element

A

creates a link to the relevant document

70
Q

when do you use the element

A

when you want to add a quote within a sentence, rather than as an indented block on its own

71
Q

when using the element to carry the element, what should the value be

A

a URL pointing to the source of the quote

72
Q

what does the element allow you to do

A

specify that you are introducing a special term

73
Q

how do most browsers render the content in the element

A

in italic font

74
Q

when should you typically use the element

A

the first time you introduce a key term and only in that instance

75
Q

what can you use the element for

A

to indicate when you use an abbreviated form or acronym

76
Q

what should you consider using when using the element

A

the title attribute

77
Q

what is the title attributes value when using it in the element

A

the full version of the abbreviations

78
Q

what can you use the element alongside the associated datetime attribute for

A

to mark up text representing time in various forms

79
Q

what is the datatime attribute of the element designed to be

A

a computer-readable representation of the same informa-

tion

80
Q

what does using a datatime attribute allow you to do

A

present a friendly date for your users and still leverage

one of the more computer-useful representations

81
Q

what does the element contain

A

code that you want to appear on a web page inside

82
Q

what is the content of the element displayed in

A

monospaced font

83
Q

what is the element often used with

A

the element so that the formatting of the code is retained

84
Q

what can you use the element and the associated element to do

A

mark up and annotate figures or illustrations that might be referenced in text but aren’t part of the main flow of the
document

85
Q

what is the element usually used with

A

the and elementsto indicate that the content of that element is a variable that can be
supplied by a user

86
Q

what does the element indicate

A

sample output from a program, script, or the like

87
Q

what does the element contents tend to display in

A

a monospaced font

88
Q

what can you use the element for

A

to indicate what should be typed in by the user

89
Q

what is the contents of the element usually displayed in

A

a monospaced font

90
Q

how does the content of the element display

A

one-half a character’s height above the other characters and is also often slightly smaller than the text surrounding it

91
Q

what is the content of the element written in

A

superscript

92
Q

what is the content of the element written in

A

subscript

93
Q

how does the content of the element display

A

one-half a character’s height beneath the other characters and is also often slightly smaller than the text surrounding it