1.3.4 Web Technologies Flashcards

1
Q

What are cascading style sheets (CSS)?

A

A style language used to define the layout, design, and presentation of a webpage written in a markup language

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

What is client-side processing?

A

The data processing and operations performed by the client. The clients browser runs the processing using the user local computer resources. Typically used to run less critical code

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

What is HyperText markup language (HTML)?

A

A markup language used to write the contents of webpages on the world wide web

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

What is Javascript?

A

An interpreted, object-oriented programming language used to create interactive elements within web browsers for adding functionality to dynamic web pages

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

What is server-side processing?

A

The data processing and operations performed by the web server. Data is sent from the clients browser to the web server for secure processing, and the output is sent back to the client

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

What is the difference between the head and the body of HTML?

A

The head contains the title of the webpage and the body contains the content of the webpage.

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

What does the <html> mean?

A

All code written within these tags is interpreted as HTML

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

What does the <body> tag do ?

A

Defines the content in the main content area of the webpage

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

What does the <link></link> tag do?

A

Used to link to additional files, including CSS stylesheets

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

What does the <head> tag do?

A

Defines the browser tab or window heading area

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

What does the <title> tag do?</title>

A

Defines the text that appears with the tab or window heading area

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

What do the.. <h1>, <h2>, <h3> do ?

A

Heading styles in decreasing sizes

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

What does the <p> tag do?

A

Is used to define a paragraph separated with a line space above and below

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

What is the <img></img> tag used for?

A

It is used for images. This is a self-closing tag, which means that there is no need to include a closing tag (</img>​ ) when using it. The following tag parameters must also be included when using this tag: src ​ (source), height=x,​ width=y)

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

What is the <a> tag used for?</a>

A

<a> is an anchor tag that defines a hyperlink with the location parameter, and is laid out in the following form:
<a>​ link text ​</a></a>

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

What is the <ol> tag used for?

A

<ol> is used to define an ordered list. Each element within the list is defined using the <li> tag.
</li></ol>

17
Q

What is the <ul> tag used for?

A

<ul> defines an unordered list. Each element within the list is defined using the <li> tag.
</li></ul>

18
Q

What does the <div> tag do?

A

<div> divides a page into separate areas, each which can be referred to uniquely by name.
The following syntax is used when creating a division with the name page: <div id= “page”>
</div>

19
Q

What are classes and indentifiers?

A

Classes and identifiers are attributes given to elements on a webpage which you wish to style in a particular way.

20
Q

What is the advantage of classes?

A

Multiple elements across web pages can be assigned to a certain class. This means elements can follow a consistent style, and the styling/ formatting only has to be defined once.

21
Q

How are classes defined?

A

Classes are defined using a full stop

.name { background-color: green; border: 1px solid black;
}

22
Q

What is the difference between classes and identifiers?

A

Identifiers are a unique name given to an element on a web page. Whereas a class name can be used by multiple elements, only one element can be associated with a particular identifier.

23
Q

How are identifiers defined?

A

Using a hashtag
#name { background-color: green; border: 1px solid black;
}

24
Q

How can CSS be used? (2)

A

CSS can be used in two different forms: internal/embedded CSS or external CSS

25
Q

What is the difference between internal and external CSS?

A

Internal/embedded CSS is placed inside the style tags and is entered directly into the HTML document.
Meanwhile external CSS is written in a separate document and a link to this style sheet is added to the HTML document.

26
Q

What is an example of CSS syntax?

A

body{
margin: 0px;
padding: 0px;
background-color: white;
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
Text-align: center;
}

27
Q

How do you add an external style sheet to a header?

A

<link href= “nameofstylesheet.css” rel= “stylesheet” type=“text/css”>

28
Q

What are 3 advantages of Javascript?

A

Local computer can deal with invalid data before it is sent off to the servers
Eases the load on busy servers
Reduces web traffic

29
Q

How do you change the attributes of a HTML element using Javascript?

A

chosenElement = document.getElementById(“example”);
chosenElement.innerHTML = “Hello World”;

30
Q

How do you write directly to the document using Javascript?

A

document.write(“Hello World”);

31
Q

How do you display an alert box using Javascript?

A

alert(“Hello World”);