W3Schools HTML, CSS, and XML Quiz (Web Development Foundations - D276)

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

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

#demo

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

.test

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

For the XML parser to ignore a certain section of your XML document, which syntax is correct?

<![CDATA[ Text to be ignored ]]>

Which is not a correct name for an XML element?

<1dollar>

What is the correct syntax of the declaration which defines the XML version?

<?xml version="1.0"?>

What is a correct way of referring to a stylesheet called "mystyle.xsl" ?

<?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?>

Which is a correct name for an XML element?

<Name>

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

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

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>

Which of the following XML fragments is well-formed?

<customer id="3456"><address/><zip code="3456"/></customer>

Choose the correct HTML element to define emphasized text

<em>

Which is not a correct name for an XML element?

<first name>

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

<footer>

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

What is the correct HTML for making a checkbox?

<input type="checkbox">

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>

How can you make a numbered list?

<ol>

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

<select>

Choose the correct HTML element to define important text

<strong>

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

<style>

Inline elements are normally displayed without starting a new line.

<table><tr><td>

What is the correct HTML for making a text area?

<textarea>

Which HTML element defines the title of a document?

<title>

How can you make a bulleted list?

<ul>

What is the correct HTML element for playing video files?

<video>

Which statement is true?

All XML elements must be properly closed

What is an XML instance?

An XML document

How does XML provide a software- and hardware-independent way of storing, transporting, and sharing data?

By storing data in plain text format

A style sheet language that provides the formatting and "look" of a Webpage or document written in a markup language.

CSS

What does CSS stand for?

Cascading Style Sheets

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

Content aside from the page content

XML simplifies the coding process regarding which of the following? Select all that apply.

Data Availability Data Sharing Data Transport Platform Changes

What does DTD stand for?

Document Type Definition

What are XML entities used for?

Entities define shortcuts to standard text or special characters

In HTML, onblur and onfocus are:

Event attributes

What does XML stand for?

Extensible Markup Language

Block elements are normally displayed without starting a new line.

False

True or false? UTF-8 is not the default character encoding for XML documents.

False

XML elements cannot be empty

False

XML's goal is to replace HTML

False

A language that requires few plug-ins and standardizes how video and audio are presented on a webpage.

HTML5

What does HTML stand for?

Hypertext Markup Language

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

In the <head> section

Is this a "well formed" XML document? <?xml version="1.0"?> <note><to age=29>Tove</to> <from>Jani</from> </note>

No

Is this a "well formed" XML document? <?xml version="1.0"?> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body>

No

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

No

Which statement is true?

None of the other two statements are true

How do you group selectors?

Separate each selector with a comma

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

Specify whether the content of an element should be editable or not

What is the XML equivalent to the HTML Doctype declaration?

The XML prolog

Which XML DOM object represents a node in the node tree?

The document object

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

True

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

True

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

True

True or false? All XML elements must have a closing tag.

True

True or false? XML documents must contain one root element that is the parent of all other elements.

True

True or false? XML does not use predefined tags

True

True or false? XML tags are case sensitive.

True

Which of these elements are all <table> elements?

True

XML attribute values must always be enclosed in quotes

True

XML preserves white spaces

True

What does proper nesting mean in the XML context?

When a nested XML element is opened inside the parent element, it must be closed inside the parent element.

Who is making the Web standards?

World Wide Web Consortium (W3C)

Graphics defined by SVG is in which format?

XML

There is a way of describing XML data, how?

XML uses a DTD to describe the data

Can XML tags be invented?

Yes

Is this a "well formed" XML document? <?xml version="1.0"?> <note> <to age="29">Tove</to> <from>Jani</from> </note>

Yes

Is this a "well formed" XML document? <?xml version="1.0"?> <note><to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note>

Yes

How do you display hyperlinks without an underline?

a {text-decoration:none;}

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

alt

Which property is used to change the background color?

background-color

Which is the correct CSS syntax?

body {color: black;}

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

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

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

What does XSL stand for?

eXtensible Stylesheet Language

Which CSS property controls the text size?

font-size

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

font-weight:bold

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

h1 {background-color:#FFFFFF;}

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

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

p {font-weight:bold;}

Which input type defines a slider control?

range

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

required

What is the default value of the position property?

static

Which HTML attribute is used to define inline styles?

style

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

text-transform:capitalize


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

Soci 100 - Homework - Chapter 6. Social Control and Deviance

View Set

Foundation of Professional Nursing Practice

View Set

Lesson 18: Personality Disorders Multiple Choice

View Set

Unit 4: Medical Language; Urology, Male Reproductive System, & Gynecology and Obstetrics

View Set

personality psych exam 1 (ch 1-4, 6, 7)

View Set

Global Perspectives Checkpoint #1

View Set