Web technologies Flashcards

Exchanging data

1
Q

What is HTML and what is it used for

A

HyperText Markup Language
- Used to define web pages

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

How does HTML work

A

It works with tags that are used to denote what parts of the page represents

most tags have an opening tag (e.g.<html>) and a closing tag (e.g. </html>)

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

What attributes do images use (HTML)

A
  • ( arc ) to define where the image is stored
  • ( alt ) to define what text should be displayed if the image cannot be shown
  • ( height and width ) to state the dimensions of the image on the screen in pixels
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are cascading style sheets (CSS)

A

Take on the job of styling pages
- To specify a styling in CSS you need a property and a value (e.g. colour: red; )

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

define backround-color (CSS properties)

A

specifies the background colour of an element
- Usually used on <body> tags to change the background colour of the whole page
- Used with <div> tags to just change part of it

background-color: LightGreen;

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

define border-color

A

Specifies the colour of the border
- Tends to be used on div elements

border-color: DarkBlue;

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

Define border- style (CSS properties)

A

Specifies the style of the border
- Options include dotted, dashed and solid
(if not specified, the border style is none by default and no border is shown)

border-style: Dotted;

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

Define border width (CSS properties)

A

specifies the width of the border in pixels

border-width: 3px;

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

define color (CSS properties)

A

Specifies the colour of text within an element

color: #2566A1;
color: green;

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

define font-family (CSS properties)

A

Specifies the font of the text

font-family: monospace;

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

What are the two ways colours can be specified in CSS

A
  • 140 standard colour names can be used as they have been assigned a name in CSS
  • Hexadecimal colours
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Why do we need JavaScript

A

If we want to program things to happen within a page (e.g. checking whether data being entered is valid)

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

What is a search engine

A

A website used to find other websites. Users type in search terms and are given lists of web pages that match them

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

What is a spider/web crawler

A

A program that visits websites adding terms from them to a search engine’s index

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

How do search engines work

A
  • They create an index of words that appear on pages ( it will store the address of the page the word appears on and its location on the page)
  • They use web crawlers that visit a web page and index the words that are on the page
    They can follow the links on the page to go to the next page to be indexed
  • When a search term is entered the search engine will look for pages that contain all the words entered
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what is the PageRank algorithm

A

An algorithm that determines the importance of web pages, considering the number of incoming links a page has and the PageRank from which those pages come.

The algorithm is recursive; it uses the existing Pagerank of pages as part of the calculations for their new PageRank.

17
Q

What is the process when accessing a page

A

1) the browser requests a page from the server
2) The server runs its scripts to produce a web page back
3) The browser receives the page from the server, readers the HTML and CSS and runs any client-side scripts needed

18
Q

Advantages of client-side processing

A
  • Web traffic is reduced
  • There are fewer delays as the server does less processing
  • Data can be validated before being sent to the server
19
Q

What is server-side processing

A
  • Scripts can access databases located on the server
  • It must be guaranteed that a script will be run in the way intended and cannot be amended or circumvented by the client