Html

¡Supera tus tareas y exámenes ahora con Quizwiz!

What is the syntax for a href that links to a specific part of the same page?

#id (id = idname)

What does the following CSS code add? td, tr { border: 1px solid black; } th { border: 1px solid blue; } 1 pixel black border to the table body. 1 pixel blue border to rows and cells. 1 pixel black border to headers. 1 pixel blue border to the table footer. 1 pixel black border to rows and cells 1 pixel blue border to headers.

1 pixel black border to rows and cells 1 pixel blue border to headers.

How do you comment in HTML?

<!-- comment -->

What declaration defines that a document is an HTML5 document?

<!DOCTYPE html>

Which of the following tags instructs the browser to expect a well-formed HTML document? <body> <div> <head> <!DOCTYPE html>

<!DOCTYPE html>

Which of the following would create a link to a local HTML file called aboutme.html? <a href="./aboutme.html" /> <a href="https://www.aboutme.com/">About Me</a> <a href="https://www.aboutme.com/" /> <a href="./aboutme.html">About Me</a>

<a href="./aboutme.html">About Me</a>

What tags are used to link to internal pages, external pages or content on the same page?

<a>

What element is used for an abbreviation or an acronym? A title attribute on the opening tag is used to specify the full term.

<abbr>

What element has quite a specific use: to contain contact details for the author of the page? Browsers often display the content of this element in italics.

<address>

What element is used for longer quotes that take up an entire paragraph? Browsers tend to indent the contents of this element.

<blockquote>

What element contains the content of a HTML file?

<body>

Which of the following tags would contain the HTML for a web page's visible content? <cont> <body> <html> <about>

<body>

What is the parent element and child element? <body> <p>This paragraph is a child of the body</p> </body>

<body>, <p>

What element results in a line break in the text?

<br>

Which of the following elements will directly affect the vertical spacing in an HTML layout? <break> <br> <break /> <br>

<br>

What element is used when you are referencing a piece of work such as a book, film or research paper? This element can be used to indicate where the citation is from.

<cite>

What element can show text that has been deleted from the document? The content o this element usually has a line going through it.

<del>

What element is used to indicate the defining instance of a new term? Some browsers show the content of this element in italics. Safari and Chrome do not change its appearence.

<dfn>

What element is a container that divides the page into sections? Allows us to group HTML elements to apply the same styles for all HTML elements inside.

<div>

Which element is the parent of <p>My Paragraph</p>? <body> <p>Paragraph 1</p> <div> <a href="http://www.codecademy.com">Codecademy</a> <p>My Paragraph</p> </div> </body> <div> <a> <p> <body>

<div>

What element consists of a series of terms and definitions?

<dl>, definition list

What styling text will generally render as italic emphasis?

<em>, <i>

What HTML code will we browsers display as italics? <p>Hello</p> <strong>Hello</strong> <em>Hello</em> <div>Hello</div>

<em>Hello</em>

What element allows web page authors to add a caption to an image inside the <figure> element?

<figcaption>

What element nests one or more <img> element? Browsers may indent images nested in this element.

<figure>

What element creates a form in HTML?

<form>

Which of the following is valid HTML for the heading tag with the smallest size and lowest rank in the hierarchy? <h9> <h6> <h1> <h3>

<h6>

The following HTML code should only exist within which of the following tags? <title>Codecademy</title> <body> <head> <h1> <!DOCTYPE html>

<head>

What element contains meta information about the HTML page?

<head>

Which of the following elements contains a web page's metadata? <body> <html> <head> <about>

<head>

What element creates a break between themes - such as a change of topic in a book or a new scene in a play? You can add a horizontal rule between sections using this tag.

<hr>

All HTML code must be nested within which of the following tags? <title> <head> <html> <body>

<html>

What is the root element of an HTML page?

<html>

What is the proper HTML syntax for <img> tag?

<img src="image-location.jpg" />

What element allows you to add an image to a web page?

<img>

What element can be used to show content that has been inserted into a document? The content of this element is usually underlined.

<ins>

What child element is needed to add items to lists?

<li>

What element is used to create a list of items that are numbered?

<ol>, ordered list

What element contains a block of plain text?

<p>

Match the blanks with the proper syntax to create an HTML paragraph element from this text. ____ I'm ready to rock and roll! ____ <p/> <\p> </p> <#p> <p>

<p>, </p>

Which of the following is the correct syntax for the paragraph HTML element? <p/>I am a paragraph<p> <p>I am a paragraph</p> <p>I am a paragraph<\p> <p>I am a paragraph</p>

<p>I am a paragraph</p>

What element is used for shorter quotes that sit within a paragraph? Browsers are supposed to put quotes around this element, however Internet Explorer does not - therefore many people avoid using this element.

<q>

What element indicates something that is no longer accurate or relevant (but that should not be deleted). Visually the content of this element will usually be displayed with a line through the center.

<s>

What element contains short pieces of text of other HTML. They are used to separate small pieces of content that are on the same line as other content.

<span>

What styling tag will generally render as bold emphasis?

<strong>, <b>

What element is used to contain characters that should be subscript? It is commonly used with foot notes or chemical formulas such as H_2_0.

<sub>

What element is used to contain characters that should be superscript such as the suffixes of dates or mathematical concepts like raising a number to a power such as 2^5?

<sup>

What element is used to create a table? Contents are written out row by row.

<table>

Which tag should surround an entire table of data? <thead></thead> <tr></tr> <td></td> <table></table>

<table></table>

What element nests the content of a <table> element?

<tbody>

Which of the following tags is used to separate the body of the table from its headers and footers? <tr></tr> <tbody></tbody> <thead></thead> <th></th>

<tbody></tbody>

What element stores the data in the <table> element?

<td>

Which tag creates new data to an HTML table? <tr></tr> <table></table> <thead></thead> <td></td>

<td></td>

What element stores the footer of a <table> element?

<tfoot>

Which of the following tags is used to separate the footer of the table from its body? <footer></footer> <th></th> <tfoot></tfoot> <tbody></tbody>

<tfoot></tfoot>

Which tag adds a new row header to an HTML table? <tr></tr> <th scope="col"></th> <th scope="row"></th> <th></th>

<th scope="row"></th>

What element is used to represent the heading for either a column or a row?

<th>

What element stores the headings of a <table> element?

<thead>

Which of the following tags is used to enclose the row of a table containing its headers? <tbody></tbody> <tr></tr> <th></th> <thead></thead>

<thead></thead>

What element specifies a title for the HTML page (which is shown in the browser's title bar or in t the page's tab)?

<title>

What element indicates the start of each row?

<tr>

Which tag creates new rows in an HTML table? <tr></tr> <table></table> <thead></thead> <td></td>

<tr></tr>

What element is used to create a list of items in no particular order? It lists individual items with a bullet point.

<ul>, unordered list

What tag is used for videos in HTML?

<video>

The following code creates a link to another page. Which of the following will cause the page to open in a new browser window? <a href="https://www.codecademy.com/">Codecademy</a> Single quotation marks should be used instead of double quotation marks. The URL should include "new_window" at the end of it. Wrap the <a> tag with a <window> tag. Add the target attribute, with its value set to _blank.

Add the target attribute, with its value set to _blank.

What is the correct definition of an HTML element? An HTML tag and the content that it contains or marks up. HTML code that does not require opening or closing tags. The second, or closing, HTML tag. Closing tags have a forward slash (/) inside of them. The first, or opening, HTML tag.

An HTML tag and the content that it contains or marks up.

How would the output of the code below change if <ul> and </ul> were changed to <ol> and </ol>, respectively? <ul> <li>Lorem</li> <li>Ipsum</li> <li>Horribilis</li> </ul> No changes to the output would occur. The code would no longer output any visible content in the browser. Numbers in the output would change to bullet points. Bullet points in the output would change to numbers.

Bullet points in the output would change to numbers.

Which of the following is the current HTML standard? HTML5 CSS HTML1 XHTML

HTML5

What does the following code do? <tr> <td colspan="2">Out of Town</td> <td>Back in Town</td> </tr> It creates a cell that will span two rows. It creates a cell that will span two columns and a cell that will span a single column. Adds a 1 pixel black border around the cells of the table. It will make all cells in that row span two columns.

It creates a cell that will span two columns and a cell that will span a single column.

The following code results in no visible output to the browser. Why? <ol> </ol> The <ol> tag must be replaced with a <ul> tag. List items must be added to the list. <ol> is not a valid HTML element. The <ol> tag signifies "old" information, meaning the contents will never display.

List items must be added to the list.

The following code is supposed to create a link to another web page, but fails to do so. Why? <a>Codecademy</a> The </a> closing tag should be removed. The word "Codecademy" should be replaced with the URL to the Codecademy website. The <a> element is missing the href attribute set to the URL of the Codecaddemy website. The <a> element should be replaced with a <link> element.

The <a> element is missing the href attribute set to the URL of the Codecaddemy website.

The contents of the <title> tag will appear where in a modern browser? The first line of the web page It does not appear anywhere. Its purpose is to inform search engines. The browser's tab The last line of the webpage

The browser's tab

The following code is supposed to display an image, but fails to do so. Why? <img https://www.example.com/laptop.jpg /> The <img> tag can only display .png or .svg image formats. The image URL should be all uppercase. The <img> tag should be replaced with an <image> tag. The src atribute is missing and must be set equal to the image URL, enclosed in double quotation marks.

The src atribute is missing and must be set equal to the image URL, enclosed in double quotation marks.

Why is the code below incorrect? <video src="myVid.mp4" controls > The width and height of the video must be specified. A valid self-closing tag ends with /> The video element is not a self-closing tag. It should have an opening and a closing tag. The myVid.mp4 video source (src=) is not valid.

The video element is not a self-closing tag. It should have an opening and a closing tag.

What is the purpose of indentation and whitespace? To change the display of eements in the browser. To make sure the browser correctly interprets nested elements in an HTML file. To comment out code you don't need. To make code in an HTML file more readable.

To make code in an HTML file more readable.

Why should the document type declaration be included in all HTML documents? To specify the HTML standard being used in the content Without it, any HTML code is invalid. Without it, the web page will not be allowed on the Internet To specify what content will display in the browser

To specify the HTML standard being used in the content

What attribute is required in the <form> element? Its value is the URL for the page on the server that will receive the information on the form when it is submitted.

action

What attribute was commonly used to indicate how the other parts of a page should flow around an image?

align

What attribute adds text to the <img> tag?

alt

If we want to expand an element's tag, what do we use? Hint: They are content added to the opening tag of an element and can be used in several different ways.

attribute/s

What is the term for an element contained inside another element?

child element

What attribute allows <table> entries to span columns?

colspan

Is <video> a self closing tag? true or false

false

What are the 'hint': 6 headings in HTML? List them from largest to smallest.

h1, h2, h3, h4, h5, h6

What does HTML stand for?

hyper text markup language

What is one commonly used attribute that is used to specify different content and is really helpful when you use an element more than once?

id

When will the text "Video not supported" be displayed? <video src="myVideo.mp4" width="320" height="240" controls> Video not supported</video>

if browser is unable to load the video

What does the controls attribute do in <video>?

instructs the browser to include basic video controls: pause, play and skip

What href value creates a link to the user's email program and addresses an email to a specified email address in side the <a> element?

mailto:

What attribute allows forms to get or post?

method

What are the two parts of attributes?

name, value

What is the child element nested inside of?

parent element

What attribute allows <table> entries to span rows?

rowspan

What attribute is necessary for the <img> element?

src

What are the four common attributes of the <video> tag?

src, width, height, controls

What attribute provides additional information about the image? Most browsers will display the content of this attribute in a tooltip when the user hovers over the image.

title

Is <img> a self-closing tag? true or false

true

What goes in the src attribute?

url, uniform resource locator

What is the sytnax for a href that links to a specific part of another page?

url/#id

What are 5 common attributes of the <table> element?

width, cellpadding, cellspacing, border, bgcolor


Conjuntos de estudio relacionados

Research Methods Spring - Midterm Practice Questions

View Set

Lesson 2 Introduction to Programming for Games

View Set

Insurance Planning and Risk Management - Viatical Settlements

View Set