.html + databases Flashcards

(20 cards)

1
Q

Checkbox Code

A

<Input type=”checkbox” Id=”vehicle1” name=”vehicle1” value=”Bike”>
Bike
(remove asterisks)

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

Radio Button Code

A

<input type=”radio” name=”accept” value=”y” >
Yes
<I
nput type=”radio” name=”accept” value=”n” >
No
(remove asterisks)

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

Form Code

A

<form>
<p>
<label>first name:</label>
<input></input>
</p>
<input></input>
</form>

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

How to Style a Link

A

a:link {background-color: #107210; color: #800000;
border-width: thick;
border-style: outset;}
a:visited {background-color: #107210;
color: #800000;
border-width: thick; border-style: outset;}
a:hover {color:#FF6633;}
a:active {color: #FF6633;
border-width: thick;
border-style: inset;}

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

Using Hyperlink Targets

A

_self - Opens the document in the same window/tab as it was clicked
_blank - Opens the document in a new window or tab
_parent - Opens the document in the parent frame
_top - Opens the document in the full body of the window

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

What are two forms of validation on webpages, and give an example?

A

Manual - Proofreading
Electronic - Form validation

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

What is Validation?

A

Checking that user data input is appropriate
* Timely
* Within Range
* Existence
* Type
*Checking that original information is appropriate

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

Name at least 6 things that make a website successful

A

Accessibility
Site load-time is reasonable
Adequate text-to-background contrast
Font size/spacing is easy to read
Flash & add-ons are used sparingly
Images have appropriate ALT tags
Site has custom not-found/404 page
Identity
Company logo is prominently placed
Tagline makes company’s purpose clear
Home-page is digestible in 5 seconds
Clear path to company information
Clear path to contact information

Navigation
Main navigation is easily identifiable
Navigation labels are clear & concise
Number of buttons/links is reasonable
Company logo is linked to home-page
Links are consistent & easy to identify
Site search is easy to access

Content
Major headings are clear & descriptive
Critical content is above the “fold”
Styles & colors are consistent
Emphasis (bold, etc.) is used sparingly

VS
Ads & pop-ups are unobtrusive
Main copy is concise & explanatory
URLS are meaningful & user-friendly
HTML page titles are explanatory

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

How to write a select query

A

use schema;
select fldnames (or * for all) from tblname where fldname = ‘textvalue’ and/or fldname=numvalue

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

How to update a query

A

update database.tablename set fieldname1=’textvalue’, fieldname2=number where fieldname3=number

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

How to insert a query

A

insert into database.tablename (fieldname1, fieldname2) values (‘textvalue1’, numbervalue2)

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

Give 2 formats which can be used on a webpage

A

.html and .php

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

What is the purpose of creating a site in Dreamweaver?

A

It provides a way to organize and manage all of your web documents, upload your site to a web server, track and maintain your links, and manage and share files.

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

What is normalizing?

A

Storing of data in the smallest data pieces (within reason) in order to search more efficiently, effectively. Eg. consistent units, avoiding duplication, consistent lettering/spelling

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

How to store data values from a form?

A

<?php
$tempstore=$_POST[‘formfieldname’]
?>

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

What is PHP code?

A

It is a programming language that allows webpages to be dynamic and interactive, rather than static. It is processed on the webserver rather than the computer itself. They must be saved within the WAMP server.

17
Q

Dropdown Box Format

A

<select>
<option>Monday</option>
<option>Tuesday</option>
<option>Wednesday</option>
</select>

18
Q

3 Design Tools

A

Sitemap, Storyboard, Layout Design, Data Dictionary

19
Q

Foreach Syntax

A

<?php
$array1 = array(1,2,3,4,5);
foreach($array1 as $value)
echo “$value<br></br>”;
}
?>

20
Q

IF Syntax

A

Used for an ‘existence’ check

<?php
if(condition){
code to execute if conditions. met;
}
?>