Test 1 Study Guide Flashcards

1
Q

What HTML tag is used for adding a css stylesheet?

A

The HTML tag to add a CSS stylesheet is:

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

What are the main HTML tags that make up a website?

A

The main HTML tags that make up a website are:

HTML, HEAD, BODY

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

How can CSS be added to HTML?

A

CSS can be added to HTML through three main ways:

  1. Use of the tag.
  2. Use of the style property within an HTML tag.
  3. Embedding a stylesheet in the header using a LINK tag.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a CSS selector?

A

A CSS selector is a statement within a CSS stylesheet that modifies the behavior of selected elements of HTML. They begin with the element name, followed by a pair of curly braces. Properties are set by using a property name, followed by a colon, followed by the property value, ending with a semicolon.

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

What HTML tag would you use to create a first-level headline?

A

A first-level header would be created by using an H1 tag.

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

What would a CSS selector changing a first-level headline’s font-color to green look like?

A

Such a selector would look like:
h1 {
color: green;
}

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

Special characters in computer languages are called tokens. Which language tokens in HTML will open and close tags?

A

The HTML tokens used to open and close tags are the carrots.

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

What is the very first thing that must go into an HTML document’s code?

A

The first thing that must go into an HTML document’s code is the !DOCTYPE tag.

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

How do you set the character type in HTML?

A

The character type is set in HTML with . It goes into the HEAD tag.

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

How do you add a link in HTML?

A

Links in HTML are created using the anchor tag, a:

<a></a>

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

What HTML tag is used to add javascript to a web doc?

A

To add a javascript document to an HTML document, you use the SCRIPT tag, with the src property directed to the location of the javascript.

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

What is the location object?

A

The location object contains information about the current URL, and can be accessed as part of the “window” object, as window.location.

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

What HTML tag is used to create a form?

A

The FORM tag is used to create the base of a form.

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

What are the main HTML form input elements?

A
The main HTML form elements are:
Text
Textarea
Button
Radio 
Submit 
Select
Select Multiple
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

In HTML forms, what is the action attribute?

A

In HTML forms, the action attribute serves to define the action that should be performed when the form is submitted. It is an attribute of the FORM element.

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

In HTML forms, what is the method attribute?

A

In HTML forms, the method attribute specifies which HTTP method should be used when submitting the form, either GET or POST.

17
Q

What is the GET method? What are the benefits and downsides?

A

The GET method is one of the two main request-response methods between a client and a server. The GET method sends name/value pairs as part of the URL of the GET request.
The benefits to GET are that there are no downsides to hitting the back button or reloading, and it can be bookmarked. The downside is that it’s extremely insecure, and can’t be used for large amounts of information.

18
Q

What is the POST method? What are the benefits and downsides?

A

The POST method is one of the two main request-response methods between a client and a server. In POST, the name/value pairs are sent in the HTTP message body of the POST request. This is very secure, but means that any attempts to go BACK or reload the page will attempt to resubmit the request.

19
Q

What HTML tag could be used to group multiple input fields in an HTML form together?

A

The best tag to use to group multiple HTML form input elements together would be the FIELDSET element.

20
Q

How is the OPTION HTML tag used?

A

The OPTION HTML tag is used in conjunction with SELECT and MULTIPLE SELECT tags to create individual value selections to be used by those lists.

21
Q

How are radio buttons grouped with HTML?

A

Radio buttons are grouped together by forcing them to all share the same name attribute.

22
Q

What are some of the methods by which JavaScript can set a variable with an element of HTML?

A

HTML elements can be set to variables in JavaScript in several ways. The most common relies on the use of the document.getElementByID(“ID”). Another option is document.forms[“myForm”][“myInput”].

23
Q

What are some of the most common DOM event handlers?

A

Some of the most common DOM event handlers are:

  • onclick
  • onload
  • onchange
  • onmouseover/onmouseout
  • onmousedown/onmouseup
  • onfocus