Web Technologies (1.3.3) Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is HTML?

A

The language that web pages are written in and defines the structure and order of the webpage.

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

()

A

All code between these tags is interpreted as HTML

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

()

A

The body contains all the content in the browser content area

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

()

A

Use to link external files e.g. CSS stylesheets
Self-closing
Used in the head container

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

()

A

Contains the website metadata and is a container for all head elements.

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

()

A

Defines the title of the document, seen in the tab of the web browser.
Put inside “head” container.

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

<h1></h1>

, <h2></h2>, <h3></h3>

A

Header styles in decreasing importance (<h1> is most important)</h1>

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

<p></p>

A

Used to define a paragraph

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

<img></img>

A

Used to place an image in a webpage
Self-closing tag
Tag parameters are:
-src=”/img/myImage.png”- path to image, image name and file type
-alt =”” - text displayed if image cannot be displayed
-height=”” - height of image
-width= “” - width of image

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

<a></a>

A

Anchor tag used to add hyperlinks

Uses href=”” to define the location of the hyperlink

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

<div></div>

A

Defines a page division or section

Groups elements to format with CSS

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

()

A

Defines a form that allows a user to input data to be processed.
Uses:
- method=”post/get” -specifies HTTP method used when sending data
- action=”URL” -Where to send the data when the form is submitted
- id=”myForm” - unique form identifier

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

()

A
Defines a field where a user can enter data, used in a form element.
Types:
- Text (type="text")
- Submit button (type="submit")
- Checkbox
- Email
- Password
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

<ol></ol>

A

Defines an ordered list ie. 1., 2., 3.

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

()

A

Defines a client-side script e.g. javascript

May contains a link or the script itself

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

<a></a>

A

Anchor tag used to add hyperlinks

Uses href=”” to define the location of the hyperlink

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

<li>
</li>

A

Defines an element of a list, used inside unordered and ordered lists.

18
Q

<ul></ul>

A

Defines an unordered list (uses bullet points)

19
Q

What are classes and identifiers?

A

Class and identifier selectors are the names which you style, this means groups of items
can be styled, the selectors for html are usually the div tags.

20
Q

What is the difference between a class and identifier?

A

Classes use a full stop to prefix the name e.g. .classname
They can be used multiple times

An identifier is defined with a # e.g. #identifiername
They must be unique, can only be used once

21
Q

What is CSS?

A

A script/language used to describe the style of a web page by specifying how HTML elements look.

22
Q

What is internal/embedded CSS?

A

When the CSS is places in style tags and entered directly into the HTML document.

23
Q

What is external CSS?

A

When the CSS is placed into an external style sheet which can be accessed from the HTML using (

24
Q

CSS example

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

CSS: background-colour

A

Sets background colour of element

  • Takes Hex, RGB, or named colours
    e. g. body{background-colour: #cccccc;}
26
Q

CSS: border-color

A
  • Sets border colour of an element

- Takes Hex, RGB, or named colours

27
Q

CSS: border-style

A
  • Sets border style

- Types are solid, dotted, dashed etc.

28
Q

CSS: border-width

A
  • Sets border width

- Takes any value in pixels

29
Q

CSS border e.g.

A

.myDiv{
border: 2px solid #000
}

30
Q

CSS: color

A

Sets colour of text inside element

31
Q

CSS: font-family

A

Sets font family for selected element

32
Q

CSS: font-size

A

Sets font size for selected element

33
Q

CSS: height

A

-Sets height of element

34
Q

CSS: width

A

-Sets width of element

35
Q

What is javascript?

A

A programming language used to add interactivity to a webpage.

36
Q

What is lossy compression?

A

Reducing the size of a file while removing some data

37
Q

Lossy Compression DISADVS

A

Data is removed and can not be retrieved:

Could cause an image to become pixelated or a sound to lose quality

38
Q

Lossy Compression ADVS

A

Useful in scenarios where some data loss has little effect to end user e.g. voip, images etc.
Allows for faster transmission and upload times

39
Q

What is lossless compression

A

The file size is reduced but data isn’t lost so the original can be recovered.

40
Q

Lossless Compression ADVS

A

No data loss

More efficient, only removes redundant data

41
Q

Lossless Compression DISADVS

A

Compressed file bigger than a lossy compressed file