Website Basics Flashcards

Create a minimal website

1
Q

What code must every website carry?

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

What is a web page?

A

A plain text file that contains HTML tags and has a filename extension .htm or .html

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

What is the HTML code for boldface?

A

<strong></strong>

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

What is the HTML code for italic?

A

<em></em>

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

How do I add a headline to a webpage?

A

<h1>text</h1>

(or h2 etc. for smaller headlines) inside the pair of body codes

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

How do I add a block of text to a webpage?

A

<p>text</p>

after the h1 pair, if they are there at all, and regardless of that, inside the pair of body codes.

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

How do I add a bulleted list of items to a webpage?

A

<ul></ul>

as the pair of codes to create the list, placed within the pair of body codes. Then each list item or line of list items is placed, surrounded by <li>list item</li> within the Unordered List pair.

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

How do I add a numbered list of items to a webpage?

A

<ol></ol>

as the pair of codes to create the list, placed within the pair of body codes. Then each list item or line of list items is placed, surrounded by <li>list item</li> within the Ordered List pair.

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

How do I place a special symbol on a page?

A

Each character is typed with an asterisk, plus a name or # and a hexadecimal code, followed by a semicolon. A copyright sign can be typed as © or ©

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

What two pieces of information are needed to place a link on a website page?

A

The target, or the page that should open when the user clicks the link, and the text of the link the user will click.

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

How do I type the link text on a website page?

A

<a>Text for the link</a> within the pair of body codes

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

How do I type the URL for the link text on a website page?

A

Within the <a> pair, and before the text of the link that will be highlighted, type href=</a>

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

What four things does the target of a website page link need?

A

The code href, an equal sign, quotation marks around the URL, and a less-than angle bracket after the closing quotation marks.

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

Does href need angle brackets?

A

No.

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

Where do I place an href to code the target of a link?

A

Inside the pair of <a> codes that signal you are creating a link, and ahead of the text the user will click on to reach that URL.</a>

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

What tag starts letting you put a picture or graphic on your web page?

A

<img></img> (or <img></img>

17
Q

What terminology tells the browser where to find the img to put on the page?

A

src=”image name with path”

18
Q

How do you specify a descriptive name for an image you are putting on a page to help search spiders and people who can’t see the image?.

A

alt=”descriptive words”

19
Q

Where will the browser put your img?

A

Wherever it appears in the HTML coding that puts the content on the page: after an h1 if that’s were the img tag appears; between <p> tags if the img tag appears there.</p>

20
Q

How do you specify the size of an image?

A

After the alt tag, specify width=”100” and height=”200”

measured in pixels

21
Q

What will the height of a picture be if you specify the width but not the height?

A

Whatever the computer decides will maintain the aspect ratio for the picture in the width size you did specify.

22
Q

What will the width of a picture be if you specify the height but not the width?

A

Whatever the computer decides will maintain the aspect ratio or shape for the picture in the height size you did specify.

23
Q

What’s a good file size for a picture on a web page?

A

1 megabyte or less

24
Q

Code to begin and end a table

A
25
Q

Code to begin and end a row in a table

A
26
Q

Code to begin and end a header cell in a table

A
27
Q

Code to begin and end a data cell in a table

A
28
Q

Code for a table with a 1 pixel border

A
29
Q

Code for space between data items in a table

A

cellspacing=”1”

30
Q

What is the default for cellspacing if you don’t specify a number of pixels?

A

2 pixels

31
Q

Code for a table with a 1 pixel border and 0 pixel spacing, with table items something and something else

A

something something else

32
Q

Code for a table with a 1 pixel border and 2 pixel spacing, with table items something and something else

A

somethingsomething else

33
Q

Where does the space from the cellspacing tag go?

A

Between the cells of a table

34
Q

Tag to put spacing inside the cells of a table

A

cellpadding=”1”

35
Q

Code for a table with a 1 pixel border, 2 pixel spacing, cellpadding 1 inside each cell and table items something and something else

A

something something else

36
Q

Code for a table with a 1 pixel border, 2 pixel spacing, cellpadding 1 inside each cell, table items something and something else, and data centred inside the cells

A

something something else

FIX THIS