2.2 Basic HTML tags

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

What tag is used for subchapter titles?

<h2>

You must read <em><cite>A Tale of Two Cities</em></cite>, one of the best selling books of all time. Valid Invalid

Invalid ( The <cite> opening tag is placed after the <em> opening tag, but the </cite> closing tag is placed after the <em> tag. )

<em>You must read <cite>A Tale of Two Cities</cite>, one of the best selling books of all time.</em> Valid Invalid

Valid ( The <cite> opening and closing tags may be placed between the <em> opening and closing tags. The entire sentence is being emphasized. )

spaces, tabs, and newlines.

Whitespace characters include

section

a collection of related paragraphs, images, and other content organized into units such as chapters, subchapters, tabbed content in a tabbed container, and numbered sections of a thesis.

whitespace character

an unprinted character such as the spaces between words and lines of text. Browsers treat all sequences of _______________ as a single space between non-____________ ________(s).

Write a heading for a book chapter titled "Introduction".

<h1>Introduction</h1>

Write an HTML fragment that creates a title for the fourth level of a document hierarchy. The title should be "Exquisite details".

<h4>Exquisite details</h4>

example of whitespace character

Ex: The three spaces in the HTML "hello there" will be displayed with a single space "hello there".

An <h3> tag should be placed inside a <p> tag. True False

False ( Paragraphs cannot be placed inside other paragraphs, so a <p> tag cannot be used inside another<p> opening and closing tags. )

The <p> tag can have another <p> tag inside. True False

False ( Paragraphs cannot be placed inside other paragraphs, so a <p> tag cannot be used inside another<p> opening and closing tags. )

The <br> tag has a closing tag. True False

False ( The <br> tag is a void element, an HTML tag that does not have a closing tag. )

If <h1> text appears too big, <h2> or <h3> tags should be used to decrease the text size. True False

False ( A heading tag is used to indicate the title and level of a section and not the formatting of section headings. The visual appearance of the heading tags can be changed with CSS. )

<p>HTML is an acronym for HyperText Markup Language. <p>The inspiration for HTML was SGML, the Standard Generalized Markup Language.</p> HTML is simpler than SGML and adds hyperlinks.</p> Valid Invalid

Invalid ( HTML rules prohibit placing a paragraph inside another paragraph. )

All the words in the paragraph below appear on the same line when rendered in a browser with sufficient width. <p> Aspire to inspire before you expire. </p> True False

True ( The browser treats all whitespace as a single space, so all words appear on the same line with a single space between each word. )

The letters A and B appear on separate lines with a blank line in between when rendered in a browser. <p> A<br><br>B </p> True False

True ( A<br>B displays A and B on separate lines, but two <br> tags between A and B creates an additional blank line. )

This is the first verse.<br/>The second verse begins on the next line. Valid Invalid

Valid ( <br/> is part of XHTML, a version of HTML that is legal for use with XML. Although <br/> is permitted in HTML, good practice is to use <br>. )

You <em>must</em> read <cite>A Tale of Two Cities</cite>, one of the best selling books of all time. Valid Invalid

Valid ( The <em> opening and closing tags are both placed before the <cite> tags. )

<h2>Highway traffic code overview</h2>

Valid (The <h2> opening and closing tags are used properly. )

<br> tag

creates a line break in a paragraph, such that the content after the line break appears on a new line

<cite> tag

denotes a title, such a book or song title, and is italicized by default. Ex: <cite>Spaceballs</cite> is a parody of the <cite>Star Wars</cite> trilogy.

<mark> tag

denotes important content that should be semantically highlighted and is rendered with a yellow background by default.

<u> tag

denotes text that should appear differently from normal text, such as misspelled words, and is underlined by default.

<h1>

first level heading

<em> tag

indicates emphasized text, such as text having an emphasized pronunciation when spoken, and is italicized by default.

<i> tag

indicates text in an alternative voice, such as a word or phrase in a foreign language, and is rendered using italics.

<strong> tag

indicates text that has strong importance, and is bolded by default.

<b> tag

indicates text that needs attention, like key words in a document abstract or product names in a review, and renders the text in bold.

<p>

paragraph

heading

provides a title for a section of content. Headings are visually separated from the other text by extra spacing and are displayed with a different appearance.

<h4> through <h6> tags

rarely used except in legal or academic documents that contain sections within sections within sections.

<section>

section

Sections

surrounded by the <body> and <section> tags, or are implicitly created using a heading tag.

paragraph

the basic unit of text in an HTML document. A __________ is enclosed in HTML by the <p> opening and closing tags.


Set pelajaran terkait

vertebrae + associated ligaments

View Set

Substance Use Disorders in Acute Care

View Set

EDUC 1300 - Chapter 8: Communicating

View Set

The Process of Photosynthesis Part 2

View Set

Chapter 15 - Concepts of Infusion Therapy

View Set

Biology Final Study Set (Test 1)

View Set

Psychology 301: Theories of Personality

View Set

Histology of Esophagus, Stomach, and Duodenum

View Set

Master Evolution Terms and Questions

View Set

Prep U Chapter 1 Intro to Nursing

View Set