Exam 1 Flashcards

1
Q
A

This is placed before the opening HTML tag and is a picky setting that tells the browser this is indeed an HTML document. It is optional, but good to include.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

html

A

Web pages are saved in this format and we introduce it later in this lesson. An HTML file will contain markup and references to other files such as CSS style sheets, JavaScript files, images, and other documents hyperlinked in the content.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
A

This tag goes directly inside the html tag and contains invisible information about the document, links to additional scripts, and sometimes embedded scripts. The element is also placed here to provide the formal title of the document.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
A

This is one of many meta tag settings allowed inside the tag and specifies what set of text characters this document should expect to use. It is also optional but recommended.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
A

This tag follows the head tag directly inside and contains all visible content for the document. You’ll spend most of your time with markup inside this element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

id

A

hort for “identifier,” this attribute can be used to provided a unique name for the element. This is helpful for three uses:

this attribute allows you to provide labels that help you distinguish one element from another of the same kind, specifically significant elements that are set apart from others in some way;

we often want to apply styles to a specific element or its children, so this attribute is helpful for CSS;

other technologies such as JavaScript make use of this unique identifier.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

class

A

similar to the id attribute, the class attribute allows us to provide a label for an element. However, whereas the id attribute must be unique, the class attribute can be used several or even many times in a single document. This helps us provide more information about an element and what it is used to mark as well as identify it as part of a series of other similar items.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

<p> (block level content tag)</p>

A

Paragraph – This tag is the most basic of tags for text content. If you’re not sure what content is, start by marking it as a paragraph.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

<abbr> (inline content tag)</abbr>

A

tag defines an abbreviation or an acronym, like “Mr.”, “Dec.”, “ASAP”, “ATM”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

<blockquote> (block level content tag)</blockquote>

A

which is used to mark a long quotation. If a quotation takes up an entire sentence or more, use <blockquote> to identify it. Check it out:

<blockquote>
<p>A quiet answer
turns away wrath.</p>
</blockquote>

</blockquote>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

<dl> and <dd> and </dd><dt> (block level content tag)</dt></dl>

A

Definition lists contain a series of term-and-definition pairs marked by definition term <dt> and definition description </dt><dd> tags and grouped by a definition list <dl> tag.
Use definition lists when you have a set of terms and descriptions such as a vocabulary list or reference list.

<dl> tags can only contain <dt> and </dt><dd> tags as their direct children.</dd></dl>

</dl></dd>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

(block level content tag)

A

Mark a short quotation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

<cite> (inline content tag)</cite>

A

Identify the citation or source for a quotation or reference.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

<i> (inline content tag)</i>

A

Add italics to content without adding emphasis, such as marking the title of a book. Remember that <em> is better to use when italics are added for actual emphasis.</em>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

<b> (inline content tag)</b>

A

Add boldface to content without adding emphasis. Most times, you’ll probably want to use <strong> since bolding is often used to mark content that has strong emphasis.</strong>

But for cases where you simply want to portray a slightly different voice or style through bolding, this tag can be helpful.</strong>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

<em> (inline content tag)</em>

A

Add emphasis to content. The result by default is for text to be italicized.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

<strong> (inline content tag)</strong>

A

Add strong emphasis to content. The result by default is for text to be bolded.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

(inline content tag)

A

Mark superscript text such as the “nd” in 2^nd.

19
Q

(inline content tag)

A

Mark subscript text such as the “2” on O2.

20
Q

<br></br> (stand alone tag)

A

element produces a line break in text (carriage-return). It is useful for writing a poem or an address, where the division of lines is significant.

21
Q

<hr></hr>

(stand alone tag)

A

thematic break; horizontal rule

22
Q

<a></a>

A

The attribute value for the href attribute is referred to as a path as it indicates the address from here to some location on the Internet. So in this example…

<a>Click me</a>

23
Q

href

A

must be set in order for a hyperlink to point to the desired file or URL.

<a>Click me</a>

24
Q

<img></img>

A

Images are created with the <img></img> tag

<img></img>

25
Q

src

A

Images are created with the <img></img> tag and the desired image is indicating using the src attribute.

<img></img>

26
Q

alt

A

…is used on images particularly to provide plain text explanations of the image or text content in the image.

There are several instances where this is necessary:

Provide a caption for an image if the image’s surrounding content does not provide this. This also allows search engines to discover content of images in case this is relevant for your users.

Provide fallback text for an image that contains text so that if the image is not available, the user will see text rather than just a broken image icon.\

It is a best practice to provide the alt attribute for every image you insert. The only common exceptions are when the image is purely decorative (it adds no content to the page, but adds a visual embellishment) or when surrounding text provides a clear enough caption for the image.

27
Q

<div></div>

A

The <div> tag is nothing more than a container unit that encapsulates other page elements and divides the HTML document into sections. </div>

28
Q
A

this tag can be used to contain a typical site’s central content that comes between its masthead and footer.

29
Q
A

Sectioning means dividing our content up into distinct groups of related content. tags (or their derivatives) should be used when…

A set of content works as a semantic group, and, ideally, begins with a heading

A set of content fills a particular or important role in the context of the site or page and is worth calling out as a significant section of the site

30
Q
A

Use this to mark groups of important navigation links. Every site that has multiple pages should have at least one section.

31
Q
A

Use this to mark the heading and any other content that forms the overall or masthead for a particular set of content.

32
Q
A

Use this to mark content that provides additional information or resources relating to a section of content. Note as well that and can be applied at the page level to mark persistent site masthead () and site information ().

33
Q
A

Use this instead of when the group of content you’re marking could stand completely on its own without surrounding content. Like the name suggests, a blog entry or article in an online newspaper are good examples of when to use this.

34
Q
A

Use this specifically to mark sidebar content or groups of content inside an or that are not critical, but tangential content. If the surrounding content would be just fine without the group in question, an is a good sectioning tag to use.

35
Q
A

The tag is used to create an HTML form for user input.

36
Q
A

drop-down list

37
Q
A

defines an option in a select list

38
Q
A

multi-line text input control; holds an unlimited number of characters

39
Q
A

defines an HTML table. An HTML table consists of the element and one or more , , and elements

40
Q
A

defines a table header

41
Q
A

defines a table cell

42
Q
A

defines a table row

43
Q
A

specifies an input field where the user can enter data

type attribute – what each value accomplishes: text, password, submit, radio, checkbox