HTML/CSS/JS Flashcards

1
Q

What tag is always used at the start?

A

html

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

What tag is used for external css files?

A

link (single tag)
(rel=”stylesheet”) and href=

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

What are the 2 tags used for the overall page structure?

A

head and body

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

What tag is used for the opening text?

A

title

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

What tags are used for headings?

A

h1 largest
h2
h3 etc.

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

What tag is used for pictures?

A

img (self closing)
src=
alt=
height=
width=

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

What tag is used for hyperlinks?

A

a
href=

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

What tag is used to link to js files?

A

script src=
or embedded js without src

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

What tag is used to create containers?

A

div

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

What tag for surveys?

A

form

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

What tag for search boxes and buttons?

A

input (self closing)
type = “text” or “submit”

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

What tag for paragraphs?

A

p

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

What tag for each point in a list?

A

li

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

What tag for bullet points?

A

ul

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

What tag for numbered list?

A

ol

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

How do you do css directly in html elements?

A

<element>

(style attribute used like any other attribute but with semicolon and css syntax inside "")
</element>

17
Q

How do you select a class in css?

A

.classname {}

18
Q

How do you select an ID in css?

A

idname {}

19
Q

How do you style in css? (general syntax)

A

element {
property: value;
}

20
Q

What property is used for background colours?

A

background-color

21
Q

What property is used for border colours?

A

border-color

22
Q

What property is used for dotted or lined etc borders?

A

border-style

23
Q

What property is used for border size?

A

border-width

24
Q

What property is used for text color?

A

color

25
Q

What property is used for font?

A

font-family

26
Q

What property is used for text size?

A

font-size

27
Q

What properties are used for dimensions?

A

height,width

28
Q

What values can border style take?

A

dotted
dashed
solid
double
none

29
Q

How do you write to a web page in JS?

A

document.write(“text”);

30
Q

How do you do an alert box in JS?

A

alert(“text”);

31
Q

How do you change the contents of an element in JS?

A

elementvar = document.getElementById(“example”);

elementvar.innerHTML = “newtext”;