Getting to know HTML Flashcards

1
Q

___ are designators that define the structure and content of objects within a page.

A

Elements. Ex: <a></a>

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

The use of less-than and greater-than angle brackets surrounding an element creates what is known as a _____.

A

Tag. Ex: <a>…..</a>

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

_____ are properties used to provide additional information about an element.

A

Attributes.

Ex:
<a>Shay Howe</a>

Attributes are defined within the opening tag, after an element’s name.

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

Recite from memory “HTML Document Structure”

A

<!DOCTYPE html>

<html>
<head>
<meta></meta>
<title>Hello World</title>
</head>
<body>
<h1>Hello World</h1>
<p>This is a web page.</p>
</body>
</html>

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

What elements simply receive their content or behavior from attributes within a single tag.

A

Self-Closing Elements

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

What is a <div>?

A

A <div> is a block-level element that is commonly used to identify large groupings of content, and which helps to build a web page’s layout and design.

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

What is a <span> ?</span>

A

A <span> is an inline-level element commonly used to identify smaller groupings of text within a block-level element.</span>

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

Describe the difference between block-level elements and inline level elements.

A

Block-level elements begin on a new line, stacking one on top of the other, and occupy any available width. Block-level elements may be nested inside one another and may wrap inline-level elements. We’ll most commonly see block-level elements used for larger pieces of content, such as paragraphs.

Inline-level elements do not begin on a new line. They fall into the normal flow of a document, lining up one after the other, and only maintain the width of their content. Inline-level elements may be nested inside one another; however, they cannot wrap block-level elements. We’ll usually see inline-level elements with smaller pieces of content, such as a few words.

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

How do you comment in HTML and CSS?

A

HTML comments start with <!-- and end with -->
CSS comments start with /* and end with */

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

What are some important things to remember about headings?

A

-block level elements.
-6 different rankings
-they help search engines index and determine content.
-headings should be used for semantically valued and not used for size of text.

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

What is most often followed after a heading and what type of element is it?

A

<p> a paragraph.
It is a block-level element.

Paragraph can appear one after the other.
</p>

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

What is the semantic difference between the <strong> and <b> elements? What type of elements are these?</b></strong>

A

In-line level elements because it is tied into the paragraph and did not start on a new line.

The <strong> element is semantically used to give strong importance to text, and is thus the most popular option for bolding text.</strong>

The <b> element, on the other hand, semantically means to stylistically offset text, which isn’t always the best choice for text deserving prominent attention.</b>

<!-- Strong importance -->

<p><strong>Caution:</strong> Falling rocks.</p>

<!-- Stylistically offset -->

<p>This recipe calls for <b>bacon</b> and <b>baconnaise</b>.</p>

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

What are some ways to Italicize?

A

The <em> element is used semantically to place a stressed emphasis on text; it is thus the most popular option for italicizing text.
The other option, the <i> element, is used semantically to convey text in an alternative voice or tone, almost as if it were placed in quotation marks.</i></em>

<!-- Stressed emphasis -->

<p>I <em>love</em> Chicago!</p>

<!-- Alternative voice or tone -->

<p>The name <i>Shay</i> means a gift.</p>

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

In HTML5 what are some new ways to build structure into your HTML.

A

With the new structurally based elements, using the <header>, <nav>, <article>, <section>, <aside>, and <footer> elements.

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

The __________ element, like it sounds, is used to identify the top of a page, article, section, or other segment of a page.

A

<header>

The <header> element is a structural element that outlines the heading of a segment of a page. It falls within the <body> element.
</body></header></header>

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

The _____ element should be reserved for primary navigation sections only, such as global navigation, a table of contents, previous/next links, or other noteworthy groups of ________ links.

A

<nav>; navigational

*Miscellaneous one-off links should not be wrapped within the <nav> element; they should use the anchor element, <a>, and the anchor element alone.
</a></nav></nav>

17
Q

The ______ element is used to identify a section of independent, self-contained content that may be independently distributed or reused.

A

<article>

*We’ll often use the <article> element to mark up blog posts, newspaper articles, user-submitted content, and the like.
</article></article>

18
Q

The ________ element is used to identify a thematic grouping of content, which generally, but not always, includes a heading.

A

<section>

*The <section> element is commonly used to break up and provide hierarchy to a page.
</section></section>

19
Q

How do you decide between the <article>, <section>, or <div> elements?

A

By studying the content, we see that the <article> and <section> elements contribute to a document’s structure and help to outline a document. If the content is being grouped solely for styling purposes and doesn’t provide value to the outline of a document, use the <div> element.

If the content adds to the document outline and it can be independently redistributed or syndicated, use the <article> element.

If the content adds to the document outline and represents a thematic group of content, use the <section> element.

20
Q

The ______ element holds content, such as sidebars, inserts, or brief explanations, that is tangentially related to the content surrounding it.

A

<aside>

*When used within an <article> element, for example, the <aside> element may identify content related to the author of the article.
We have to remember, though, that all of the structural elements, including the <aside> element, are block-level elements and as such will appear on a new line, occupying the full available width of the page or of the element they are nested within, also known as their parent element.
</aside></aside></article></aside>

21
Q

The ________element identifies the closing or end of a page, article, section, or other segment of a page.

A

<footer>
</footer>

22
Q

What is index.html?

A

The main webpage for your site.