Module 2: HTML

Ace your homework & exams now with Quizwiz!

B. <a href="https://example.com">text to click</a>

How do we make a basic link in HTML? A. <link url="https://example.com">text to click</link> B. <a href="https://example.com">text to click</a> C. <a url="https://example.com">text to click</a> D. <link href="https://example.com">text to click</link>

<td>

If a row contains common (non-header) elements, this tag is used to identify the contents of each cell.

<th>

If a row contains the table header, each cell (one per column) within the header row uses this tag.

Hypertext REFerence (HREF)

The HTML code used to create a link to another page. It's an attribute of the anchor tag, which is also used to identify sections within a document.

A. <ul>

This is the HTML enumeration element that represents unordered lists where bulleted items are the default (in the essential reading you can see how to use other symbols instead of bullets). A. <ul> B. <ol> C. <dl> D. <li>

<code>

This tag allows the developer to differentiate between normal text and an example of programming code.

<a>

This tag can be used as a hyperlink to another web page, but it can also be employed for other WWW protocols.

<div>

This tag defines a section that is intended to aggregate multiple lines into a block that follows a similar style.

<span>

This tag defines an inline section of text that follows a similar style.

<pre>

This tag forces the web page to render the HTML code exactly as the code is written, including all whitespace within the code.

<a href="www.link.com">Website Name</a>

This tag is used to create hyperlinks

D. <tr>

This tag is used to represent table rows A. <ht> B. <th> C. <td> D. <tr>

B. <th>

This tag represents the table header A. <ht> B. <th> C. <td> D. <tr>

Semantic HTML

This type of HTML consists of elements that refer to parts of a document: headers, paragraphs, tables, forms, lists, and so on. (<h1>, <h2>, <p>, etc.). They refer to the names of things; they describe what they are.

presentational HTML

This type of HTML contains the elements used to indicate how things look: how they are aligned, which font is used, if it is in bold or italics, and so on (<center>, <font>, <b>, <i>, etc.),

<tr>

Tag that defines a table row

<dl>

Tag that defines lists where the items are preceded by a defined HTML element.

<ol>

Tag that represents ordered lists where Arabic numerals are the default

<ul>

Tag that represents unordered lists where bulleted items are the default

<!DOCTYPE html>

The document type declaration is mandatory and informs the browser which version of HTML is being used. The value "html" indicates HTML version 5. A declaration is a statement that informs the browser of the information needed to correctly handle the elements within. In other words, the declaration tells the browser how to decode the tags that will follow.

D. by using CSS CSS can change the way that a list and other objects are presented.

The navigation items in the image below are elements in an unordered list. How is the appearance of a navigation bar created? [Home People Prices Contact] A. by using class="navbar" in the list tag B. by creating an image with links inside it C. by using the tag D. by using CSS

<head>

This HTML section contains one or more tags. The one in our earlier example specifies that the encoding of the text part of the document has to be in UTF-8.

A. <div>

This HTML tag defines a section that is intended to aggregate multiple lines into a block that follows a similar style. It can be defined with the usual attributes for background, colors, and borders, and other formatting options can be used as the padding property, which defines the margins of this block. A. <div> B. <span>

B. <span>

This HTML tag defines an inline section of text that follows a similar style. This tag is often used to refer to portions of the text that will follow a specific style according to the intended semantics of the displayed content. A. <div> B. <span>

D. <li> <li>First Item</li> <li>Second Item</li>

This HTML tag is used to encompass listed items. A. <ul> B. <ol> C. <dl> D. <li>

C. <dl>

This is the HTML enumeration element that defines lists where the items are preceded by a defined HTML element. A. <ul> B. <ol> C. <dl> D. <li>

B. <ol>

This is the HTML enumeration element that represents ordered lists where Arabic numerals are the default (in the essential reading you can see how to use other symbols instead of Arabic numerals). A. <ul> B. <ol> C. <dl> D. <li>

D. href

What is the attribute of the HTML <a> tag that may have value as a Uniform Resource Locator? A. link B. url C. hyper D. href

C. href

What is the attribute of the HTML <a> tag that may have value as a Uniform Resource Locator? A. url B. hyper C. href D. link

C. The positions of the link text and the link address have been interchanged. The code should actually read, ``` <a href="http://transferfink.com">Click Me</a> ```

What is wrong with the following code? <a href="Click Me">http://transferfink.com</a> A. You should use https instead of http. B. Click Me contains a blank space. C. The positions of the link text and the link address have been interchanged.

B. <!--, -->

What symbols represent HTML comments? A. <#--, --#> B. <!--, --> C. <--!, !--> D. <*--, --*>

A. <a>

What tag is used as a hyperlink to another web page? A. <a> B. <b> C. <p> D. <s>

B. when a website might be moved from a staging server to a production server

When might we use a relative URL instead of an absolute URL? A. when we aren't sure what the URL is B. when a website might be moved from a staging server to a production server C. when we want to include the slash at the end D. whenever we want to make sure the URL is pointing to a precise domain name

C. <nav>, <ul>, <li>, <a> There's no single correct way to mark up navigation, but often developers use nav, ul, li, and a.

Which HTML elements are commonly used in marking up navigation? A. <navigation>, <link> B. <dl>, <dd>, <dt>, <role> C. <nav>, <ul>, <li>, <a> D. <menu>, <list>, <url>

B. <td>

Which HTML tag is used in tables to specify a cell within a non-header row? A. <dt> B. <td> C. <th> D. <ht>

B. <td>

Which HTML tag is used in tables to specify a cell within a non-header row? A. <ht> B. <td> C. <dt> D. <th>

A. <h1>

Which HTML tag is used to indicate the first heading level in a web page? A. <h1> B. <head> C. <h0> D. <first>

C. <h1>

Which HTML tag is used to indicate the first heading level in a web page? A. <head> B. <h0> C. <h1> D. <first>

C. "/index.html"

Which address points to a different file than the others? A. "/people/index.html" B. "/people/" C. "/index.html" D. "/people"

D. <!-- this is a section -->

Which option indicates a correctly formatted comment for an HTML file? A. <-- this is a section --/> B. <!-- this is a section --/> C. <-- this is a section --> D. <!-- this is a section -->

B. <!-- this is a section -->

Which option indicates a correctly formatted comment for an HTML file? A. <-- this is a section --> B. <!-- this is a section --> C. <-- this is a section --/> D. <!-- this is a section --/>

<br> (break tag)

a tag to display a change of context, usually displayed as a horizontal line

<strong>

a tag to modify the weight of text relative to surrounding text, which usually is equivalent to a bold font face

<title>

that informs the page title to be used by the browser to be displayed over the window or tab displaying the web page

<html>

the element that encompasses the whole document

<h1-6>

the headings of the web page main text that follow specific text formatting and also provide text structure

<body>

the page body that encompasses the text to be displayed by the browser

<head>

the page header information

<p>

the paragraphs of the web page text that hold the regular text


Related study sets

Chapter 36, The Origins and Spread of Christianity

View Set

CH 15- Assets: Inventory & Operations Management

View Set

BCOMM Chapter 8 Social Media for Business

View Set

CompTIA A+ (220-1002) - 1.0 Operating Systems

View Set

Psychiatric/Mental Health Practice Exam

View Set