HTML, CSS, and Javascript quiz

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Where is the correct place to insert a JavaScript?

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

What does CSS stand for?

Cascading Style Sheets

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

Content aside from the page content

What is the correct HTML element for audio files?

<audio>

JavaScript is the same as Java.

False

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

alert("Hello World");

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

required

What is the correct way to write a JavaScript array?

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

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

<input type="text">

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

<meter>

Block elements are normally displayed without starting a new line.

False

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

Math.round(7.25)

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

color

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

h1 {background-color:#FFFFFF;}

How to write an IF statement in JavaScript?

if (i == 5)

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

p {font-weight:bold;}

What is the default value of the position property?

static

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

#demo

Which is the 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;

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

div p

What is the correct HTML for making a text area?

<textarea>

Which HTML element defines the title of a document?

<title>

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

<footer>

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

<header>

What is the correct HTMl for inserting an image?

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

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

/*This comment has more than one line*/

Which doctype is correct for HTML5?

<!DOCTYPE html>

What is the best HTML for creating hyperlinks?

<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">

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

<select>

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

<style>

How can you make a bulleted list?

<ul>

What is the correct HTML element for playing video files?

<video>

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

In the <head> section

How do you display hyperlinks without an underline?

a {text-decoration:none;}

The HTML <canvas> element is used to:

draw graphics

How do you make the text bold?

font-weight:bold;

How can you detect the client's browser name?

navigator.appName

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

text-transform:capitalize

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

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

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

font-family

How does a FOR loop start?

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

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 call a function named "myFunction"?

myFunction()

Which input type defines a slider control?

range

Which HTML attribute is used to define inline styles?

style

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

true


संबंधित स्टडी सेट्स

BUSML 3250 Midterm Textbook Questions

View Set

Salesforce Community Cloud Consultant Exam

View Set

WEEK 12. 1st, 2nd and 3rd Week of Development

View Set