Lesson 2

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

document type declaration

A declaration of document or code type embedded within an HTML, XHTML, XML or SGML document; identifies the version and markup language used. Denoted by the <!DOCTYPE> declaration at the beginning of the document.

fixed-width font

A font in which every character, including the space character, has equal width. In proportional-width fonts, letters such as I and J have less width than M or B.

Unicode

A universal character set designed to support all written languages, as well as scholarly disciplines (e.g., mathematics).

<em>

For emphasis italic text

<code>

For program code examples fixed-space font

<samp>

For program sample output fixed-space font

<strong>

For stronger, bolder text bold text

<kbd>

For user keyboard text to be typed fixed-space font

<var>

For variable text in program code italic text

<dfn>

For word definitions italic text

xmlns

If your content needs to conform to XHTML, then specify the XML namespace attribute The default entry is xmlns="http://www.w3.org/1999/xhtml".

Container tags

Tags that come in pairs. Container tags use starting and ending tags. For example, when you want emphasis (italic) text, you will contain the text between starting and ending <em> </em> tags. These tags are also called the opening and closing tags.

Empty tags

Tags that stand alone. Empty tags are those that do not directly format a specified block of text, and therefore one tag can execute the instruction. For example, if you want to create a line break, you insert the <br> tag at the point you want the break to occur.

<body> tag

This tag begins the body of the document and includes all the content of the Web page, such as the text, video, hyperlinks and images. The <body> tag is placed after the <head> tag.

<title> tag

This tag identifies the document title. Most browsers will display the title in the browse's title bar. The <title> tag is placed within the <head> container tags.

content

When paired with the name attribute, the content attribute values can supply keywords, author name, page descriptions and so forth, as previously described. Following are some examples.

Unordered list

a bulleted list. Uses the <ul> element and also requires a closing tag.

Ordered list

a numbered list. Uses the <ol> element and requires a closing tag.

<pre> tag

allows you to display plaintext files in their original format

manifest

an attribute used for offline browsing. It lists the address of the HTML document's cache manifest. The manifest attribute requires each page you want cached to include the attribute. This technique is considered more reliable than a traditional browser cache.

lang

configures the page to use a particular language. For instance, a Web document written in English would use <html lang="en"> and a document written in French would use <html lang="fr">. This attribute is helpful for search engines and speech synthesizers. It is a universal attribute that can be used with many different elements besides <html>.

element

provides the main instruction of the tag. An element is required in every tag. Elements include <body>, <p>, <h1>, <title>, <table> and many others.

attribute

specifies a quality or describes a certain aspect of the element. For example, a hyperlink is added to a Web page by using the <a>, or anchor, element. The href attribute is added, which identifies the hyperlink reference. Many elements require specified attributes, but some do not. An attribute is required in a tag only if the element requires it.

List item

specifies list items in an ordered or unordered list. Uses the <li> element and requires a closing tag.

charset

specifies the character set used in HTML documents (which is often set by the Web server for HTML documents, rather than by the document itself). It usually specifies the Unicode character set, which is standard in today's Web pages

<!DOCTYPE> declaration

The <!DOCTYPE declaration is the first tag in an HTML document. It informs the interpreter (usually a Web browser) what version of HTML the Web page is written in. Previous to HTML5, the <!DOCTYPE> declaration was an SGML statement and required a fairly complex declaration. In HTML5, however, the tag is written as only <!DOCTYPE html>. The declaration is not case-sensitive, but it is almost always written in uppercase letters by Web developers (it will be uppercase in this course). <html> tag — The <html> tag is used as a container for the entire HTML document. It nests all code except for the <!DOCTYPE> declaration.

<link> tag

The <link> tag references a style sheet and is recommended for HTML5. A style sheet usually has a .css file name extension and a file name similar to the page to which it is linked (e.g., syb.css for the HTML page named syb.html). Style sheets are often placed in a subdirectory for the Web page. This subdirectory contains all images and associated files for the page. The <link> tag is placed within the <head> container tags.

<meta> tags

The <meta> tag can specify various information about the document, known as metadata. This metadata can include a document description, revision dates, and keywords to help search engines index the page. It also specifies the HTML5 character set used, which is usually UTF-8. The <meta> tag is placed within the <head> container tags.

character set

The group of symbols used to render text on a page.

<head> tag

The head section allows you to insert <meta> tags (which describe the nature of the document), links to style sheets, and the <title> tag.

value

gives value to the element and its attribute. For example, <a href="http://www.ciwcertified.com"> has a value that instructs the hyperlink to access the CIW Certified Web site. Like attributes, values are optional in a tag unless required by a specified attribute to the element. Values are used only with attributes; elements do not take values directly. Values should be surrounded by quotation marks; they are not required, but placing values in quotation marks is considered good coding practice.

name

values include "keywords," "description" and "author. " This attribute must be accompanied by the content attribute. The "keywords" value of the name attribute allows you to specify individual words as the value in the accompanying content attribute; these words are used by search engines to match pages to search keywords, and to describe the meaning of the document. The "description" value of the name attribute allows you to specify entire sentences as the value in the accompanying content attribute; these sentences display in search engines to describe the purpose of the document.


Set pelajaran terkait

DSS 200: CH 11 QUIZ (DR. VIPUL GUPTA)

View Set

Chapter 19: Food Labels and Portion Sizes

View Set

Week 2: Choice in a World of Scarcity

View Set

INSY final part 1 w/ exam 1-3 review questions

View Set

[Lección 4] Estructura 4.2 - ¿Qué hacen?

View Set

Money and Banking Chapter 3 Review

View Set

EAQ- Lewis Med Surg CH.24, Nursing Management: Integumentary Problems

View Set

Nutrition Chapter 2: Standards and Guidelines

View Set