SI 339 Exam 2

Ace your homework & exams now with Quizwiz!

header

A _________ element is used to identify the top of a page, article, section, or other segment of a page.

Post

Data submitted via a ____ request is appended to the URL.

DOM

Every valid web page can be represented as a tree. This tree is referred to as the

True

T/F: A missing alt attribute will generate a w3 validation error.

False

T/F: By default, two block elements will be displayed side-by-side if there is room.

True

T/F: By default, two inline elements will be displayed side-by-side if there is room.

True

T/F: Semantics within HTML is the practice of giving content on the page meaning and structure by using the proper element.

False

T/F: Syntax within HTML is the practice of giving content on the page meaning and structure by using the proper element.

True

T/F: Tags most commonly occur in pairs of opening and closing tags.

False

T/F: The <head> element contains all of the content that you want to display at the top of your web page.

False

T/F: The style tag and the style attribute are interchangeable.

True

T/f: You can access the css code used to style a page by using Inspect Element.

False

T/f: You can access the server-side code used to generate a page by using Inspect Element.

class

The "." symbol specifies that the selector is a/an

id

The # symbol specifies that the selector is a/an

identifies the closing or end of a page, article, section, or other segment of a page

The <footer> element does what?

action

The ___ attribute on a form tag dictates which file should be used to handle the data in the form.

a

The _____ element creates a hyperlink from one page to another.

Perceivable, Operable, Understandable, Robust

There are four principles to accessibility. What is the acronym for those principles?

it scans for syntactic mistakes so we can fix them

Validating our code though the w3 validator is important because:

the order that is relevant to the content of a page

We should choose the heading (<h1>, <h2>, <h3>, etc.) element based on ___________.

The text will appear centered vertically.

What does the following code achieve? h1{ font-size: 16px; line-height: 32px; }

<link rel="stylesheet" href="styles/mystyle.css">

What is the correct HTML for referring to an external style sheet named mystyle.css stored in a subfolder called styles?

<link rel="stylesheet" href="css/mystyle.css">

What is the correct HTML for referring to an external style sheet stored in a subfolder called css?

<link rel="stylesheet" href="mystyle.css">

What is the correct HTML for referring to an external style sheet?

var carName;

How do you declare a JavaScript variable?

a { text-decoration:none; }

How do you display hyperlinks without an underline?

onchange

If you are writing JavaScript to validate that two emails are the same, which of the following events would be the best choice/most common to trigger the validation?

145 / "145"

In JavaScript, what is the value of each of the following expression? "1" + 45

True

In JavaScript, what is the value of each of the following expression? "12" == 12

77

In JavaScript, what is the value of each of the following expression? 12 + 65

True

It is possible to have an id and a class as attributes for an element?

True

It is possible to have more than one class for an element?

API

JavaScript uses what kind of interface to access the DOM structure?

nav

Navigation sections, such as global navigations, should be wrapped in the _________ tag.

document.getElementById("demo").innerHTML = "Hello World!";

What is the correct JavaScript syntax to change the content of the HTML element below? <p id="demo">This is a demonstration.</p> document.getElement("p").innerHTML = "Hello World!"; document.getElementByName("p").innerHTML = "Hello World!"; #demo.innerHTML = "Hello World!"; document.getElementById("demo").innerHTML = "Hello World!";

<script src="jsCode.js">

What is the correct syntax for referring to an external script called "jsCode.js"?

label

What is the important HTML element that improves the accessibility of your forms by allowing the user to click on the text to activate an input field.

onchange()

When checking if two inputs match, you should use oninput() or onchange()?

name

When form data is sent to a server, it is possible to access form element values via their ____

relative

When linking to your own images on your website, you should use _________ paths.

console

Where do you find details about JavaScript errors? (One word answer.)

Both the <head> section and the <body> section are correct

Where is the correct place to insert JavaScript?

font-size / font

Which CSS property/properties control(s) the text size?

false

Which JavaScript keyword will halt execution of the current instruction when returned?

document.getElementById('two').innerHTML ="New content!!";

Which is the correct syntax to change the contents of the HTML element below? <p id = "two">This is a quiz. </p> ______ -document.getElementsByTagName('p').innerHTML ="New content!!"; -#two.innerHTML="New content!!"; -two.innerHTML="New content!"; -document.getElementById('two').innerHTML ="New content!!";

document.getElementById('quiz').innerHTML ="New content!!";

Which is the correct syntax to change the contents of the paragraph below? <p id = "quiz">This is a quiz. </p> -quiz.innerHTML="New content!"; -document.getElementById('quiz').innerHTML ="New content!!"; -#quiz.innerHTML="New content!!"; -document.getElementsByTagName('p').innerHTML ="New content!!";

You can define a function without calling it.

Which of the following best defines the relationship between defining a function and calling a function?

print

Which of the following is NOT a valid method for generating output to the screen?

document.getElementsByClassName(className)[0].innerHTML ="hi";

Which of these JavaScript statements will NOT generate an error? -document.getElementsById(idName)[0].innerHTML ="hi"; -document.getElementsByClassName(className)[0].innerHTML ="hi"; -document.getElementsByTagName(tagName).innerHTML ="hi";

document.getElementsById(idName);

Which of these is NOT valid? (Hint, pay attention to if the method should return one thing, or many things...) -document.getElementsByClassName(className) -document.getElementsById(idName); -document.getElementsByTagName(tagName)

margin: 0 auto;

Which snippet of CSS is commonly used to center a div element horizontally?

style

Which tag is used to define an internal style?

<script>

Which tag is used to identify JavaScript code

.button { height: 500px; width: 30px; color: black; }

create a class called button which has a width of 30px, a height of 500px and the color of the text is black

absolute reference

http://www.cnn.com

attributes

id, class, src, href are referred to as ____ and provide additional information for elements.

relative reference

imgs/jpg.css


Related study sets

STR581: Ch 2: Charting a company's direction

View Set

Environmental Science- Chapter 1 Test

View Set

OB-Ch. 23 Quiz NB W/ Special Needs Quiz ?s

View Set

Math Review 1: Literal equations

View Set