HTML, CSS and Javascript Flashcards Preview

CS: Section 05 Networks and Web Technologies > HTML, CSS and Javascript > Flashcards

Flashcards in HTML, CSS and Javascript Deck (26):
1

What does HTML stand for?

HyperText Markup Language

2

What does CSS stand for?

Cascading Style Sheets.

3

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

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

4

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

[html] ([] = <>)

5

What tag contains the main page content?

[body] ([] = <>)

6

Which tag defines the tab or window heading area?

[head] ([] = <>)

7

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

[title] ([] = <>)

8

What tags are used to show headers?

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

9

What tag is used to make paragraphs?

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

10

Which tag is used to make images?

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

11

How would you link the text "Hello World" to google

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

12

How would you write an ordered / unordered list?

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

13

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

[div] content [/div] ([] = <>)
Used to divide page into separate containers, can be styled specifically in css.

14

Why is CSS used?

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

15

What is internal CSS and how do you use it?

When the CSS file is placed directly in the html file:
[style type="text/css"]
h1{
color:blue;
}
[/style] ([] = <>)

16

What is embedded CSS and how do you use it?

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

17

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

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

What is an identifier and how do you use one?

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

19

What is a class and how do you use one?

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

20

What is the difference between an identifier and a class?

An identifier can only be used once.

21

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

div{
background-color: blue;
}

22

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

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

23

How can JavaScript be used to create an alert box?

alert("Hello World");

24

How can JavaScript write directly to a document?

document.write("Hello World");

25

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

Either:
document.getElementById("test").innerHTML='Hello World';
Or:
chosenElement = document.getElementById("test");
chosenElement.innerHTML="Hello World");

26

How would you use a script tag?

[script type="text/javascript">
"Code here..."
[/script] ([] = <>)