HTML, CSS and Javascript Flashcards

1
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
2
Q

What does CSS stand for?

A

Cascading Style Sheets.

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

How would a paragraph with the text “Hello World” be shown in HTML?

A

[p] Hello World [/p] ([] = <>)

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

What is the tag that shows code should be interpreted as HTML?

A

[html] ([] = <>)

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

What tag contains the main page content?

A

[body] ([] = <>)

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

Which tag defines the tab or window heading area?

A

[head] ([] = <>)

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

What tag defines the text in the tab or window heading area?

A

[title] ([] = <>)

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

What tags are used to show headers?

A

[h1],[h2],[h3] ([] = <>)

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

What tag is used to make paragraphs?

A

[p][/p] ([] = <>)

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

Which tag is used to make images?

A

[img src = FileLocation, height = x, width = y] (self closing) ([] = <>)

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

How would you link the text “Hello World” to google

A

[a href=”https://www.google.co.uk”] Hello World[/a] ([] = <>)

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

How would you write an ordered / unordered list?

A

[ol] (or [ul] for unordered)
[li] bullet one [/li]
[/ol] ([] = <>)

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

How do you use and what if the function of a div tag?

A

[div] content [/div] ([] = <>)

Used to divide page into separate containers, can be styled specifically in css.

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

Why is CSS used?

A

Used to describe layout, colours, sizes etc of web pages, means styles can be used throughout whole sites.

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

What is internal CSS and how do you use it?

A
When the CSS file is placed directly in the html file:
[style type="text/css"]
 h1{
color:blue;
}
[/style] ([] = <>)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is embedded CSS and how do you use it?

A

When a link is made to a CSS document:
[link rel=”stylesheet” type=”text/css” href=”mystyle.css”]
([] = <>)

17
Q

What is inline CSS and why and how would you use it?

A

When CSS is used directly in the item it affects:
[h1 style=”color:blue;”]This is a heading[/h1]
([] = <>)
This is often used for one off style adjustments that don’t need storing in the main CSS file.

18
Q

What is an identifier and how do you use one?

A
A method to give an object a predefined style, can only be used once per page:
#header
{
    padding: 5px;
}
19
Q

What is a class and how do you use one?

A
A method to give an object a predefined style:
.list
{
    color: #ffffff;
}
20
Q

What is the difference between an identifier and a class?

A

An identifier can only be used once.

21
Q

How would you change the background colour of all div’s to blue?

A

div{
background-color: blue;
}

22
Q

How do you create a web-form with an input box called name and submit button with HTML?

A

[form]
[input type=”text”, name=”name”/]
[input type=”submit”, value=”submit”/]
[/form] ([] = <>)

23
Q

How can JavaScript be used to create an alert box?

A

alert(“Hello World”);

24
Q

How can JavaScript write directly to a document?

A

document.write(“Hello World”);

25
Q

How can a text box with the ID “test” have its text changed to “Hello World”?

A

Either:
document.getElementById(“test”).innerHTML=’Hello World’;
Or:
chosenElement = document.getElementById(“test”);
chosenElement.innerHTML=”Hello World”);

26
Q

How would you use a script tag?

A

[script type=”text/javascript”>
“Code here…”
[/script] ([] = <>)