HTML, CSS, JS (copy)

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

What is the result of the following operation? ( 7 || 0 ) ? "hello" : world

"hello"

The ID selector in CSS uses a

(#) symbol

Which of these is the proper representation of a document declaration for an HTML 5 document?

<!DOCTYPE html>

What is the correct HTML for creating a hyperlink?

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

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

<br>

In HTML 5 this tag represents the header of the element it is embedded in.

<header>

What is the root element of an html page?

<html>

What is the correct HTML for inserting an image?

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

How can you make an ordered list?

<ol>

What HTML element allows for internal CSS to be added to the HTML page?

<style>

How would you get the 1st element in an array in JavaScript?

Array[0]

What does CSS stand for?

Cascading Style Sheets

HTML5 was published by

W3C

Which property is used to change the background color?

background-color

HTML attribute values are case-sensitive

TRUE

Which CSS property controls the text size?

font-size

Select all h1 elements in CSS

h1{ }

Which code snippet will produce negative infinity?

-10 / 0

What is the document extension of an HTML document?

.html

How do you select elements with class name "test"? (CSS)

.test{ }

Which of these tags are all table oriented tags? 1.<table>,<tr>,<td> 2.<table>,<head>,<tfoot> 3.<thead>,<body>,<tr> 4.<table>,<tr>,<tt>

1

What is the output? (function() { console.log(1); setTimeout(function(){console.log(2)}, 1000); setTimeout(function(){console.log(3)}, 0); console.log(4); })();

1 4 3 2

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

<input type="text">

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

Yes, but it will set to zero (won't work)

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

section {font-weight:bold;}

Which JavaScript timer will execute repeatedly until the function is cancelled?

setInterval

Javascript expressions Select all expressions which evaluate to true. Assume these are being used in an if statement. NaN == NaN 5 === '5' 5 == '5' null == null 0 '' 'hello' 32767

5 == '5' null == null 'hello' 32767

What does DOM stand for?

Document Object Model

What elements do you need for a bare bones HTML page?

Document declaration, html, head and body elements

JavaScript has no types.

False

What is the output: var x = 'hello' / 3; console.log(x + ' - ' + typeof x);

NaN - number

Which of the follow are primitive data types in JavaScript? Choose Six. Number String Null Undefined Boolean Symbol Array Explanation Object Char

Number String Null Undefined Boolean Symbol

What does the hexadecimal number (#FA0AB1) represents in CSS?

hex color code

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

margin-left

which tag is used to define CSS inside of an HTML document?

style

What is the property to center all of the text contents in an element?

text-align

ES6 syntax What is the difference between var, let, and const?

var defines a normal (pre-ES6) variable, let defines a block-scoped variable, const defines a constant whose reference cannot change

Which is the correct CSS syntax? 1.{body:color=black(body} 2.{body;color:black} 3.body {color: black}

3

What is the correct HTML for making a checkbox?

<input type="checkbox">

Which element allows you to add a title to an html page?

<title>

How can you make an unordered list?

<ul>

What is === operator?

Compares value equality as well as data type

A stylesheet that is defined in a file outside of the html file is called

an external style sheet

ID and CLASS are examples of HTML

attributes.

What is the proper way to style a border with thickness of 10 px and solid line?

border: 10px solid;

Create elements dynamically How can you create new "div" elements dynamically?

document.createElement('div')

How can you add new DIV elements dynamically?

document.createElement('div')

What is the correct JavaScript syntax to change the content of the HTML element?

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

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

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

Select all the valid ways of DOM selection document.getElementById(id) document.getElementsByTagName(tagName) document.getElementsByClassName(className) document.querySelector(selector) document.getElementsByClass(class) document.getElementsByTag(tag) document.getElementBySelector(selector) document.getElementByKey(key)

document.getElementById(id) document.getElementsByTagName(tagName) document.getElementsByClassName(className)

What is not true about let, var, and const? 1.let and const were new additions in ES6 2.let can be defined in block scope 3.let can be redeclared in the same scope 4.const cannot be reassigned

let can be redeclared in the same scope

Which is not a JavaScript event?

onhover

What is the correct CSS syntax for making all the elements bold

p {font-weight:bold}

What color would an h1's text be? h1 { background-color: #00FF00; color: #FF0000; }

red


Kaugnay na mga set ng pag-aaral

BUSI 336 Intro to Entrepreneurship (Chapter 17, 3, 10, 11 terms)

View Set

, Lewis Chapter 34: Heart Failure

View Set

Chapter 19: Documenting and reporting

View Set

Chapter 33: Management of Patients With Nonmalignant Hematologic Disorders - ML4

View Set

Cisco Networking Academy Chapter 6B

View Set