SCRIPT QUESTIONS AND ANSWERS GRADED A+
✔✔How to make the text bold - ✔✔font-weight:bold;
✔✔How to display a border. - ✔✔boder-width:top border, right, bottom, left (px)
✔✔How to change the left margin of an element. - ✔✔margin-left
✔✔Can you use negative values when using the padding property? - ✔✔No
✔✔How do you make a list that lists its' items with squares? - ✔✔list-style-type: square;
✔✔How do you select an element with id 'demo'? - ✔✔#demo
✔✔How do you select elements with class name 'test'? - ✔✔.test
✔✔How do you select all p elements inside a div element? - ✔✔div p
✔✔How do you group selectors? - ✔✔Separate each selector with a comma
✔✔What is the default value of the position property? - ✔✔static
✔✔Correct HTML for adding a yellow background color? - ✔✔<body
style="background-color:yellow;">
✔✔HTML element to define important text - ✔✔<strong>
✔✔HTML element used to define emphasized text? - ✔✔<em>
✔✔Correct HTML for creating a hyperlink - ✔✔<a
href="http://www.w3schools.com">W3Schools</a>
✔✔HTML used to open a link in a new tab/browser window. - ✔✔<a href="url"
target"_blank">
✔✔HTML <table> elements - ✔✔<table>, <tr>, <td>
✔✔True or false? Inline elements are normally displayed without starting a new line. -
✔✔True
✔✔How to make a numbered list in HTML? - ✔✔<ol>
,✔✔How to make a bulleted list in HTML? - ✔✔<ul>
✔✔What is the correct HTML for making a checkbox? - ✔✔<input type="checkbox">
✔✔HTML for making a text input field? - ✔✔<input type="text">
✔✔HTML for making a drop-down list? - ✔✔<select>
✔✔HTML for creating a text area? - ✔✔<input type="textbox">
✔✔HTML for inserting an image? - ✔✔<img src="image.gif" alt="MyImage">
✔✔HTML for inserting a background image? - ✔✔<body style="background-
image:url(background.gif)">
✔✔True of false? An <iframe> is used to display a web page within a web page. -
✔✔True
✔✔True of false? Block elements are normally displayed without starting a new line -
✔✔False
✔✔HTML attribute that specifies an alternate text for an image if the image cannot be
displayed? - ✔✔alt
✔✔Which doctype is correct for HTML5? - ✔✔<!DOCTYPE html>
✔✔HTML element used to specify a footer - ✔✔<footer>
✔✔True of false? In HTML, you can embed SVG elements directly into an HTML page.
- ✔✔True
✔✔HTML element for playing video files? - ✔✔<video>
✔✔HTML element for playing audio files? - ✔✔<audio>
✔✔HTML global attribute, "contenteditable" is used to: - ✔✔Specify whether the content
of an element should be editable or not
✔✔In HTML, onblur and onfocus are: - ✔✔Event attributes
✔✔Graphics defined by SVG is in which format? - ✔✔XML
✔✔The HTML <canvas> element is used to: - ✔✔draw graphics
, ✔✔In HTML, which attribute is used to specify that an input field must be filled out? -
✔✔required
✔✔Which input type defines a slider control? - ✔✔range
✔✔Which HTML element is used to display a scalar measurement within a range? -
✔✔<measure>
✔✔HTML element that defines navigation links? - ✔✔<nav>
✔✔In HTML, what does the <aside> element define? - ✔✔Content aside from the page
content
✔✔The ___ element is used to contain meta tags, links to style sheets, and the title
element - ✔✔<head><</head>
✔✔The ___ declaration identifies the version of HTML used to create the webpage. -
✔✔doctype
✔✔The ___ element is used to specify information about the document, such as a
character set, author, and viewport. - ✔✔<meta>
✔✔The ___ element contains the entire document code. - ✔✔<html></html>
✔✔The ___ element identifies the document title - ✔✔<title></title>
✔✔The ___ element contains all visible webpage content - ✔✔<body></body>
✔✔True or False? HTML comments should be used to inform others about important
elements used with in the webpage code. - ✔✔True
✔✔True or False? HTML comments should be used to ensure that the addition of
random white space will not affect rendering in browsers - ✔✔False
✔✔True or False? HTML comments can be used to remind yourself why you inserted a
particular piece of code. - ✔✔True
✔✔True or False? HTML comments can be used to disable code to see how a page will
appear without a particular markup element.
True - ✔✔True