HTML/CSS Quiz

Ace your homework & exams now with Quizwiz!

What is the correct DOCTYPE for HTML 5?

!DOCTYPE html

How do you insert a comment in a CSS file?

/* this is a comment */

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>

What is the correct HTML element for the largest heading?

<h1>

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

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 element allows you to add a title to an html page?

<title>

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

Document declaration, html, head and body elements

TRUE OR FALSE: HTML is a programming language.

False

What does HTML stand for?

Hyper Text Markup Language

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

In the <head> section

TRUE OR FALSE: HTML attribute values must be inside quotation marks.

True

TRUE OR FALSE: HTML comments start with <!-- and end with -->

True

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

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

What is the syntax for selecting all h1 elements in CSS?

h1 { }

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

hex color code

The head element contains...

information for scripts, meta data, and references to style sheets.

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

style

What HTML element allows for scripts to be added to the HTML page?

xml script


Related study sets

Ch. 7-9 History of Sports and Fitness exam

View Set

Assignment 9 - Underwriting Personal and Commercial Auto Insurance

View Set

NU373 EAQ Evolve Elsevier: HESI Prep Renal, Urinary, Reproductive

View Set

Cardiac Dysfunctions (practice questions)

View Set