Quiz 1
- Describe the purposes of the
<!doctype>
element.- Refers the browser to another page upon loading.
- Informs the browser of the documents HTML version.
- Signals a comment in the code.
- None of the above, this is not a valid HTML element.
- Describe the purposes of the
<html>
element.- Tells the browser to ask the server for another HTML page.
- Comments out the HTML code in between.
- Defines the starting point and ending points of the HTML document.
- None of the above.
- Describe the purposes of the
<head>
element.- Defines the section of the HTML document that contains the title, meta data, and other browser related script, css, and shortcut icon links.
- Tells the browser that the start of the document is coming.
- Used to define the heading bar that appears at the top of page layouts usually containing main page navigation.
- None of the above.
- Describe the purposes of the
<body>
element.- Defines the invisible parts of the page for search engines.
- Tells the browser to remove spacing around the elements within.
- Tells the browser to add scrollbars to the content below.
- Defines the section of the HTML document that contains all of the visible page content such as images, text, links, and page layout.
- Describe the purposes of the
<title>
element.- Defines the part of the page with the largest heading over 18px.
- Defines the part of the page where the main navigation will sit.
- Gives a title to the website that will be used to style all pages under that style.
- Defines the pages main title. This appears at the top of the browser tab. It is important to search engines.
- Describe the purposes of the
<h1>
element.- Contains useful key terms for search engines.
- Defines a level 1 heading.
- Suggests that the content is hot.
- Both A and B.
- Describe the purposes of the
<p>
element.- Contains readable text content.
- Defines a paragraph of text.
- Allows spatial relationships between the paragraph and other elements above and below.
- All of the above.
- Describe the purposes of the
<ul>
element.- Defines an unordered list of items.
- Defines to underline the content.
- Asks the browser to highlight the code below.
- None of the above.
- Describe the purposes of the
<ol>
element.- Tells the browser to over-line the text inside.
- Adds an outline around the element.
- Defines an ordered list of items.
- None of the above.
- Describe the purposes of the
<li>
element.- Defines a listen element that plays a sound.
- Creates list items to exist inside either
<ol>
or<ul>
parent elements. - Tells the browser to italicize the text.
- None of the above.
- Describe the purpose of the
<img>
element.- Defines an image to be loaded inside the document.
- Defines an imaginary line inside the document used for planning.
- When containing the alt attribute describes to search engines the content of the image.
- Both A and C.
- Describe the purpose of the
<a>
element.- Sets the browser to alarm an alert sound.
- Defines an anchor link for the purpose of navigating between pages.
- Defines an automatic closing of the page.
- None of the above.
- It is the best practice to group website files (and subfolders) into a single folder.
- TRUE
- FALSE
- It is impossible to validate HTML to check if it is written correctly.
- TRUE
- FALSE
- The
<th>
element defines a heading cell within a table.- TRUE
- FALSE
- Fill in the blank: The file name of the home page (first page you want to load) in HTML must be called _________.
- index.html
- homepage.htm
- anything.html
- None of the above.
- Which of the following code demonstrates an HTML comment?
// This is a comment in HTML
/* This is a comment in HTML */
<!-- This is a comment in HTML -->
# this is a comment in HTML
Identify the line of code (by line number) that has an error from the following example:
<h2>Grocery List</h2> <ul> <li>Apples</li> <li>Oranges</li> <li>Pears</li> </ol>
- Line 1
- Line 3
- Line 5
- Line 6
Identify the line of code (by line number) that has an error from the following example:
<h2 Directions</h2> <ol> <li>Go to north on Route 42.</li> <li>Make at left at Dawsons Hwy.</li> <li>Turn left at Smith Rd.</li> </ol>
- Line 1
- Line 2
- Line 4
- Line 6