MADT222 FINAL

¡Supera tus tareas y exámenes ahora con Quizwiz!

What does HTML stand for?

Hyper Text Markup Language

How do you group selectors?

Separate each selector with a comma

In HTML, you can embed SVG elements directly into an HTML page.

True

Is JavaScript case-sensitive?

Yes

What is the correct CSS syntax for making all the <p> elements bold?

p {font-weight:bold;}

What is the correct HTML element for playing audio files?

<audio>

What is the correct HTML for adding a background color?

<body style="background-color:yellow;">

How do you select elements with class name "test"?

.test

What is the correct HTML for making a checkbox?

<input type="checkbox">

What is the correct HTML element to define important text?

<strong>

Which HTML tag is used to define an internal style sheet?

<style>

What elements are all <table> elements?

<table><tr><td>

In HTML, onblur and onfocus are:

event attributes

Which property is used to change the font of an element?

font-family

Which event occurs when the user clicks on an HTML element?

onclick

In HTML, which attribute is used to specify that an input field must be filled out?

required

The HTML global attribute, "contenteditable" is used to:

see whether the content of an element is editable or not

How do you make each word in a text start with a capital letter?

text-transform:capitalize

What is the correct way to write a JavaScript array?

var colors = ["red", "green", "blue"]

Which character is used to indicate an end tag?

/

How do you insert a comment in a CSS file?

/* this is a comment */

Which doctype is correct for HTML5?

<!DOCTYPE HTML5>

What is the correct HTML element to define emphasized text?

<em>

What is the correct HTML element for the largest heading?

<h1>

Which HTML element is used to specify a header for a document or section?

<header>

What is the correct HTML for inserting an image?

<img src="image.gif" alt="MyImage">

Which input type defines a slider control?

<input type="range">

What is the correct HTML element for playing video files?

<video>

What does CSS stand for?

Cascading Style Sheets

Who is making the Web standards?

The World Wide Web Consortium

Graphics defined by SVG is in which format?

XML

Which property is used to change the background color?

background-color

What is a correct CSS syntax?

body {color: black;}

How do you display a border like this: The top border = 10 pixels The bottom border = 5 pixels The left border = 20 pixels The right border = 1pixel?

border-width:10px 1px 5px 20px;

What is the correct HTML for inserting a background image?

<body style="background-image:url(background.gif)">

What is the correct HTML element for inserting a line break?

<br>

How can you make a bulleted list?

<ul>

How can you make a numbered list?

<ol>

Which operator is used to assign a value to a variable?

=

HTML comments start with <!-- and end with -->

True (<--!)

An <iframe> is used to display a web page within a web page.

True (iframe)

How do you create a function in JavaScript?

function myFunction()

How to write an IF statement for executing some code if "i" is NOT equal to 5?

if (i != 5)

How do you make a list that lists its items with squares?

list-style-type: square;

Which property is used to change the left margin of an element?

margin-left

How do you call a function named "myFunction"?

myFunction()

How can you detect the client's browser name?

navigator.appName

Which HTML attribute is used to define inline styles?

style

How do you declare a JavaScript variable?

var carName;

How do you select an element with id "demo"?

#demo

How do you find the number with the highest value of x and y?

Math.max(x, y)

What is the correct JavaScript syntax to change the content of the HTML element below? <p id="demo">This is a demonstration.</p>

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

How do you add a background color for all <h1> elements?

h1 {background-color:#FFFFFF;}

What is the correct JavaScript syntax for opening a new window called "w2" ?

w2 = window.open("http://www.w3schools.com");

How does a WHILE loop start?

while (i <= 10)

How to insert a comment that has more than one line?

/*This comment has more than one line*/

Block elements are normally displayed without starting a new line.

False (b)

JavaScript is the same as Java.

False (js)

How do you make the text bold?

font-weight:bold;

How to write an IF statement in JavaScript?

if (i == 5)

What is the correct HTML for making a text input field?

<input type="text">

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

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

Which HTML element is used to display a scalar measurement within a range?

<meter>

Which HTML element defines navigation links?

<nav>

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

<script src="xxx.js">

The external JavaScript file must contain the <script> tag.

Flase

How do you round the number 7.25, to the nearest integer?

Math.round(7.25)

When using the padding property; are you allowed to use negative values?

No

Inline elements are normally displayed without starting a new line.

True (inline)

Which CSS property is used to change the text color of an element?

color

How do you select all p elements inside a div element?

div p

The HTML <canvas> element is used to:

draw graphics

How does a FOR loop start?

for (i = 0; i <= 5; i++)

How can you add a comment in a JavaScript?

//This is a comment

What is the correct HTML for creating a hyperlink?

<a href="http://www.w3schools.com">W3Schools</a>

How can you open a link in a new tab/browser window?

<a href="url" target="_blank">

Which HTML element is used to specify a footer for a document or section?

<footer>

What will the following code return: Boolean(10 > 9)

True

How do you display hyperlinks without an underline?

a {text-decoration:none;}

How do you write "Hello World" in an alert box?

alert("Hello World");

Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?

alt

What is the default value of the position property?

static

Where in an HTML document is the correct place to refer to an external style sheet?

In the <head> section

Which CSS property controls the text size?

font-size

In HTML, what does the <aside> element define?

Content aside from the page content

Where is the correct place to insert a JavaScript?

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

Which HTML element defines the title of a document?

<title>

Inside which HTML element do we put the JavaScript?

<script>

What is the correct HTML for making a drop-down list?

<select>

What is the correct HTML for making a text area?

<textarea>


Conjuntos de estudio relacionados

STANDARD APPROACH TO PATIENT CARE (HEAD TO TOE ASSESSMENT)

View Set

The Child with a Gastrointestinal Condition chapter 28

View Set

Chapter 11- Athletic Training:Sal Monty

View Set