-
Do browsers display HTML tags?
No but broswers use HTML tags to determine how to display the document
-
Which element displays the visible page content?
<body>
-
What must all HTML documents start with?
<!DOCTYPE html> declaration
-
The HTML document itself begins and ends with which element?
<html> element
-
Which heading element is more important, an <h1> or an <h2>?
<h1>
-
Which heading element is the least important?
<h6>.
-
Which HTML element defines a paragraph?
<p>
-
Which element defines a hyperlink?
<a> tag
-
A hyperlink’s destination is defined by which attribute?
href attribute
-
Which element defines an HTML image?
<image>
-
An HTML element usually consists of a start tag and end tag, with the content inserted in between. Type an example of an h1 using your name as the content. Be sure to include the appropriate opening and closing HTML tags (see the tips section of the assignment post).
<h1>Vivian</h1>
-
The body element is always nested in which element?
<html>
-
Type an example of an empty element.
<br>
-
Should HTML tags be typed in uppercase letters?
Both upper and lowercase is allowed but lowercase is recommended.
-
What is an HTML attribute?
They provide additional information about HTML elements.
-
Width and height attributes provide size information for which HTML element?
for <img>
-
Width and height attributes are given in which unit of measure?
in pixels
-
Explain the importance of the alt attribute.
It specifies an alernate text for an image if the image cannot be displayed.
-
Which attribute provides additional tooltip information?
The title attribute
-
What should the lang attribute be for pages that we author in this class?
<html lang="en-US">
-
Browsers automatically add what before and after a heading?
some white space or a margin
-
What do search engines use HTML headings for?
to index the structure and content of your web pages
-
Which HTML tag defines a thematic break in an HTML page?
<hr>
-
Which HTML element is a container for metadata about the HTML document?
<head>
-
What could happen when you fail to use an end tag with an HTML element?
unexpected results and errors
-
Which HTML element do you use if you want a line break (a new line) without starting a new paragraph?
<br>
-
What does a <strong> element mean? How is it different from <b>?
<strong> indicates important text while <b> is bold text
-
Explain the difference between <i> and <em>.
<i> is italic text and <em> is emphasized text
-
What is the difference between <q> and <blockquote>?
<q> defines a short quotation and <blockquote> defines a section that is quoted from another source
-
Which HTML elements are not displayed by the browser, but they can help document your HTML source code?
HTML comments <!--Comments-->
-
Which attribute specifies the destination address in a hyperlink?
href
-
A local link (link to the same web site) is specified with a which type of URL?
a relative URL - without the "https://www" part
-
Which HTML element defines a link?
<a>
-
Which HTML tag defines an image?
<!img>
-
Which attribute specifies the URL (web address) of an image?
src attribute
-
Which attribute provides an alternate text for an image, if the user for some reason cannot view it?
alt attribute
-
What is the tag for an unordered list?
<ul>
-
What is the tag for an ordered list?
<ol>
-
A list item must be contained in which HTML element?
<li>
-
If you use the less than (<) or greater than (>) signs in your text, what might happen?
The browser may confuse the ext for action html so you use entities instead.