Formatting, Attributes, Links, Navigation Flashcards

1
Q

What element defines a paragraph?

A

The p tag defines a paragraph.

Browsers automatically add a single blank line before and after each paragraph element.

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

HTML headings (headlines) are titles or subtitles that you want to display on a webpage. HTML headings are defined with what tags?

A

HTML headings are defined with the h1 to h6 tags. This is a block-level element which starts a new block. h1 defines the most important heading. h6 defines the least important heading.

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

This HTML element defines bold text, without any extra importance. (visual-only)

A

The b tag specifies bold text without any extra importance. This an inline element - wrapped around phrases of text or similar inline purpose.

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

This HTML element defines text with importance, seriousness, urgency. The content inside is typically displayed in bold.

A

The strong tag is used to define text with strong importance. The content inside is typically displayed in bold. This is an inline element - wrapped around phrases of text or similar inline purpose.

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

This HTML element defines italic text, without any extra importance. (visual-only)

A

The i tag defines a part of text in an alternate voice or mood. The content inside is typically displayed in italic.

The i tag is often used to indicate a technical term, a phrase from another language, a thought, a ship name, etc. This is an inline element - wrapped around phrases of text or similar inline purpose.

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

This HTML element is used to put emphasis on something. The content inside is typically displayed in italic.

A

The em tag is used to define emphasized text. The content inside is typically displayed in italic.

A screen reader will pronounce the words in em with an emphasis, using verbal stress. This is an inline element - wrapped around phrases of text or similar inline purpose.

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

HTML lists allow web developers to group a set of related items in lists. An unordered list has what tags.

A

The ul tag defines an unordered (bulleted) list. Use the ul tag together with the li tag to create unordered lists. This is a block-level element which starts a new block.

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

HTML lists allow web developers to group a set of related items in lists. An ordered list has what tags.

A

The ol tag defines an ordered list. An ordered list can be numerical or alphabetical.

The li tag is used to define each list item.

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

HTML lists allow web developers to group a set of related items in lists. It supports description (definition) lists. A description (definition) list has what tags.

A

The dl tag defines a description list.

The dl tag is used in conjunction with dt (defines terms/names) and dd (describes each term/name).

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

An HTML tag which specifies a section that is quoted from another source.

A

The blockquote tag specifies a section that is quoted from another source.

Browsers usually indent blockquote elements. This is a block-level element which starts a new block.

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

A short quotation. Browsers normally insert quotation marks around the quotation.

A

The q tag defines a short quotation. Browsers normally insert quotation marks around the quotation. This is an inline element - wrapped around phrases of text or similar inline purpose.

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

This tag defines a specific time. The element within is used to translate the time into a machine-readable format so that browsers can offer to add date reminders through the user’s calendar, and search engines can produce smarter search results.

A

The time tag defines a specific time (or datetime).

The datetime attribute of this element is used translate the time into a machine-readable format so that browsers can offer to add date reminders through the user’s calendar, and search engines can produce smarter search results.

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

Define some text as computer code in a document

A

The code tag is used to define a piece of computer code. The content inside is displayed in the browser’s default monospace font.

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

Character entities are used to display reserved characters in HTML. What entity is used for the greater than sign?

A

An entity name is easy to remember. Browsers may not support all entity names, but the support for entity numbers is good.

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

Character entities are used to display reserved characters in HTML. What entity is used for the less than sign?

A

An entity name is easy to remember. Browsers may not support all entity names, but the support for entity numbers is good.

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

Character entities are used to display reserved characters in HTML. What entity is used for the ampersand sign?

A

An entity name is easy to remember. Browsers may not support all entity names, but the support for entity numbers is good.

17
Q

Inserts a single line break.

A

Use the br tag to enter line breaks, not to add space between paragraphs.The br tag is an empty tag which means that it has no end tag.

18
Q

How to make the text display exactly as written in the HTML source code. This tag defines preformatted text.

A

Text in a pre element is displayed in a fixed-width font, and the text preserves both spaces and line breaks. The text will be displayed exactly as written in the HTML source code.

19
Q

This tag defines superscript text.

A

The sup tag defines superscript text. Superscript text appears half a character above the normal line, and is sometimes rendered in a smaller font. Superscript text can be used for footnotes.

20
Q

This tag defines subscript text.

A

The sub tag defines subscript text. Subscript text appears half a character below the normal line, and is sometimes rendered in a smaller font. Subscript text can be used for chemical formulas.

21
Q

To convey something that has very little prominence.

A

The small tag defines smaller text (like copyright and other side-comments).

22
Q

This attribute allow you to target all elements with that attribute in CSS or JavaScript.

A

The class attribute is often used to point to a class name in a style sheet.

23
Q

This attribute allow you to target a unique element with that attribute in CSS or JavaScript.

A

The HTML id attribute is used to specify a unique id for an HTML element. You cannot have more than one element with the same id in an HTML document.

24
Q

This element allows you to edit content to add your own quote.

A

Set the contenteditable attribute on nearly any HTML element to make it editable.

25
Q

Which attribute tells the browser the language the content is in?

Also which indicates reading direction?

A

You should always include the lang attribute inside the html tag, to declare the language of the Web page. This is meant to assist search engines and browsers.

The dir attribute specifies the text direction of the element’s content.

26
Q

This attribute is used to define a string that labels the current element. Use it in cases where a text label is not visible on the screen.

A

This attribute can be used with any typical HTML element; it is not limited to elements that have an ARIA role assigned.

27
Q

How to add comment in HTML.

A

The comment tag is used to insert comments in the source code. Comments are not displayed in the browsers.

28
Q

Character entities are used to display reserved characters in HTML. What entity is used for the copyright symbol?

A

An entity name is easy to remember. Browsers may not support all entity names, but the support for entity numbers is good.

29
Q

Character entities are used to display reserved characters in HTML. What entity is used for the trademark symbol?

A

An entity name is easy to remember. Browsers may not support all entity names, but the support for entity numbers is good.

30
Q

How do you indicate to the browser not to break the line even if the browser is resized?

A

Two words separated by a non-breaking space will stick together (not break into a new line). This is handy when breaking the words might be disruptive.