Test 1 Flashcards

1
Q

In order, what are the core elements of HTML code?

A

<html>
<head>
<title> <title></title>
<head></head>
<body>
<p>
<body></body>
<html></html>
</p></body></title></head></html>

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

What tag is used for paragraphs?

A

<p>
</p>

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

What tag is used to go to the next line?

A

<br></br>

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

What tag is used to create a horizontal line across the screen?

A

<hr></hr>

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

What tags are used to change the size of text?

A

<h1> <h2> etc
</h2></h1>

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

What tag is used for italics? Which tag is used to bold text?

A

italics: <em>
bold: <strong></strong></em>

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

What is ARPA?

A

Advanced Research Project Agency (ARPA) was created in response with the launching of the Sputnik in 1957. only few universities had access to supercomputers.

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

What is ARPANET?

A

Advanced Research Project Agency Network (ARPANET) : A network of computers was created to give researchers remote access to resources

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

When was commercial ban of internet lifted?

A

1991

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

How quickly can information be transferred?

A

-measured in bits. 1mbit = 1 million bits
-bandwidth (speed) measured in mbps (megabits per second)
-typical home internet speed is 8mbps

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

What is the World Wide Web?

A

The graphical user interface to information stored on some of the computers connected to the Internet.

-navigated through hyperlinks
-hosted on web servers

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

Why was the Web created?

A

Physicists wanted to link different pieces of information together in a way that is convenient to the reader and to share that information.

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

What is difference between world wide web and internet?

A

Internet: connection between computers
WWW: user interface or what you see on the screen

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

How to make lists? Show example of ordered and unordered.

A

ordered:

<li> <ol> </ol> </li>

unordered:

<li> <ul> </ul> </li>

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

How to make definition list?

A

<dl>
<dt> <dd> </dd> </dt>
</dl>

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

Give some examples of special characters in HTML?

A

© = Copyright
> = <
& = >
= non breaking space
&#233 = é

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

What is the anchor element?

A

specifies a hyperlink reference to a file

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

What is a hyperlink reference? (HREF)

A

An element that specifies the file name or url

19
Q

What are the three types of links?

A

Absolute: links to other web sites
Relative: links to pages on your own site
Email links: <a>Yahoo</a>

20
Q

Do you need something between the anchor elements in a link?

A

Yes, usually the name of the website or what you want displayed.

21
Q

What is a GIF?

A

-graphics interchange format
-best used for line art and logos
-maximum of 256 colors
-can be animated
-one color can be configures as transparent

22
Q

What is a JPEG?

A

-joint photographic experts group
-best used for photographs
-up to 16.7 million colors
-cannot be animated, cannot be made transparent

23
Q

What is a PNG?

A

-portable network graphic
-support millions of colors
-support multiple levels of transparency
-combines best of GIF and JPEG

24
Q

What is a SVG?

A

-scalable
-consists of vectors
-files well optimized - small file
-only supported on older browsers
-can only display 147 colors

25
Q

What attributes does the HTML <img></img> image element have?

A

-Scr: file name of the graphic
-Alt: text description of image
-height /width : optional

26
Q

Give an example of an HTML image element.

A

<img src=“assets/cake.gif” alt=“birthday cake” />

27
Q

How do you center an image?

A

Put it in the paragraph style beforehand.

ex:

<p style =“text-align:center”>
<img src = “pic.jpg” alt=“a picture”/>
</p>

28
Q

How do you create an image link?

A

In between anchor elements, put the image element.

<a><img></img></a>

29
Q

What is the table element in HTML?

A

<table>
</table>

30
Q

How do you make rows in html?

A

A row is horizontal. In the table element, put <tr> and then put <th> (bolded text) or <td> (normal text)

31
Q

How to change border line of a table?

A

<table>
</table>

32
Q

How to add caption above table?

A

In table element, put <caption> EXAMPLE CAPTION </caption>

33
Q

How to make several cells span rows or columns?

A

rowspan (horizontal) or colspan (vertical) in a <td> or <th> tag

ex: <td rowspan ="1">

34
Q

What is an URL?

A

uniform resource locator, it’s a complete web address

35
Q

How to use internal links?

A

Step 1: identify destination by giving it an id
-you can use either paragraphs or anchor tags
-ex: <p id="specificspot">

Step 2: link to destination

from same file: <a>Go to this location.</a>

from different file: <a href=“index.html#specificspot”>Go to specific location in home page.</a>

36
Q

What is CSS?

A

Cascading style sheets allow you to customize the look of your pages by creating styles that you associate with HTML
Style sheets work by allowing you to define properties for how HTML elements (tags) appear when viewed in a Web browser

37
Q

What three ways can you use CSS?

A

1- Inline styles : using the style attribute of an HTML tag

2- Embedded styles: configured in the head section using <style></style>

3- External styles: using .css file extension. must be linked at the beginning of an HTML file in the head section

38
Q

What are styles composed of?

A

Rules, each one containing a selector with a property and a value

39
Q

Give an example of CSS code

A

body {color: blue}

selector = body
property = color
value = blue

40
Q

What does the background-color attribute do?

A

changes the color of the background of a place in the website

41
Q

How to link HTML file to external CSS stylesheet?

A

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

42
Q

What four styles are used in CSS?

A

1- text-align
2- color
3- background-color
4- line-height

43
Q

What is a search form?

A

Form that allows a user to request a word or phrase to search a database. *it is NOT searching the internet in real time

44
Q
A