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
what does the id attribute do
uniquely identifies any element within a page
25
why might you want to uniquely identify an element
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
26
what does the class attribute do
specifies that an element belongs to a class of elements
27
what does the title attribute do
gives a suggested title for the element
28
what does the style attribute do
enables you to specify CSS rules within the element
29
what two internationalization attributes are there
dir | lang
30
what does the dir attribute do
enables you to indicate to the browser the direction in which the text should flow: left to right or right to left.
31
what two values can the dir attribute take
ltr: Left to right rtl: Right to left
32
what does the lang attribute do
enables you to indicate the main language used in a document
33
what are the values of the lang attribute
standard two-character language codes
34
what attributes can the < html > carry
id dir lang
35
what attributes can the < head > element carry
id dir lang
36
what does the < link > element do
link to an external file
37
what does the < script > element do
includes script in the document
38
what does the < meta > element do
includes information about the document
39
what is a character set
collections of characters used to render written language
40
What does the rel attribute do in the < link > element
Indicates the type of the linked document and to handle it accordingly
41
what attributes can the element carry
id dir lang
42
What does the src attribute do in the < script > element
Points to the location of a JavaScript file
43
what attributes can the < hn > element carry
``` class id style title dir lang ```
44
what elements can the < p > element carry
``` class id style title dir lang ```
45
what attributes can the < br > element carry
class id style title
46
what does the cite attribute do in the < blockquote > element
indicates the source of the quote
47
what is the value of the cite attribute in the < blockquote > element
a URL pointing to an online document; if possible, the exact place in that document
48
what three types of lists can you create in html
unordered ordered defintion
49
what does the start attribute do in the < ol > element
specifies a value that the numbered list should start with
50
what does the reversed attribute do in the < ol > element
allows you to reverse the order of ordered lists, counting down from the highest number
51
what does the type attribute do in the < ol > element
allows you to specify the class of markers to use with ordered lists
52
< ol type="1">
uses the decimal class of markers in ordered lists
53
< ol type="a">
uses the lower-alpha class of markers in ordered lists
54
< ol type="A">
uses the upper-alpha class of markers in ordered lists
55
< ol type="i">
uses the lower-roman class of markers in ordered lists
56
< ol type="I">
uses the upper-roman class of markers in ordered lists
57
what is the content of the element intended to be
a point of emphasis in your document
58
how does the content of the element display
in italicized text
59
when should you use the element
only when you want to add emphasis to a word
60
what is the element intended to do
show strong emphasis for its content—stronger emphasis than the element
61
when should you use the element
only when you want to add strong emphasis to part of a document
62
what does the content in the element display in
bold
63
what does the content in the element display in
italicized text
64
why should you use the and elements instead of the and elements
they can be more sensibly used in a screen reader or other implementation not dependent on a certain type style
65
what is the element used for
fine print
66
what are typical uses of the element
disclaimers, caveats, and copyrights
67
what does the element do
indicate the source when you quote a text
68
when should you place the element in the element
when you reference an online resource
69
what happens when you place the element in the element
creates a link to the relevant document
70
when do you use the element
when you want to add a quote within a sentence, rather than as an indented block on its own
71
when using the element to carry the element, what should the value be
a URL pointing to the source of the quote
72
what does the element allow you to do
specify that you are introducing a special term
73
how do most browsers render the content in the element
in italic font
74
when should you typically use the element
the first time you introduce a key term and only in that instance
75
what can you use the element for
to indicate when you use an abbreviated form or acronym
76
what should you consider using when using the element
the title attribute
77
what is the title attributes value when using it in the element
the full version of the abbreviations
78
what can you use the element alongside the associated datetime attribute for
to mark up text representing time in various forms
79
what is the datatime attribute of the element designed to be
a computer-readable representation of the same informa- | tion
80
what does using a datatime attribute allow you to do
present a friendly date for your users and still leverage | one of the more computer-useful representations
81
what does the element contain
code that you want to appear on a web page inside
82
what is the content of the element displayed in
monospaced font
83
what is the element often used with
the element so that the formatting of the code is retained
84
what can you use the element and the associated element to do
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
what is the element usually used with
the and elementsto indicate that the content of that element is a variable that can be supplied by a user
86
what does the element indicate
sample output from a program, script, or the like
87
what does the element contents tend to display in
a monospaced font
88
what can you use the element for
to indicate what should be typed in by the user
89
what is the contents of the element usually displayed in
a monospaced font
90
how does the content of the element display
one-half a character’s height above the other characters and is also often slightly smaller than the text surrounding it
91
what is the content of the element written in
superscript
92
what is the content of the element written in
subscript
93
how does the content of the element display
one-half a character’s height beneath the other characters and is also often slightly smaller than the text surrounding it