LAB 2.2 Flashcards

1
Q
  • Bootstrap 5 uses a default font-size of 1rem (16px by default), and its line-height is 1.5.
  • In addition, all <p> elements have margin-top: 0 and margin-bottom: 1rem (16px by default).
  • <h1> - <h6>
    </h6></h1>
  • Bootstrap 5 styles HTML headings (<h1> to <h6>) with a bolder font-weight and a responsive font-size.
  • You can also use .h1 to .h6 classes on other elements to make them behave as headings if you want
A

Typography

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  • are used to stand out more than normal headings (larger font-size and lighter font-weight), and there are six classes to choose from: .display-1 to .display-6
A

Display Headings

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

In Bootstrap 5 the HTML _ element (and the .small class) is used to create a smaller, secondary text in any heading

A

<small></small>

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

Bootstrap 5 will style and .mark with a yellow background color and some padding:

A

<mark></mark>

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

Bootstrap 5 will style the HTML element with a dotted border-bottom and a cursor with a question mark on the hover

A

<abbr></abbr>

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

Add the .blockquote class to a when quoting blocks of content from another source. And when naming a source, like “from WWF’s website”, use the .blockquote-footer class

A

<blockquote>
</blockquote>

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

<p>The following HTML elements: <code>span</code>,
<code>section</code>, and <code>div</code> defines a section
in a document.</p>

A

<code></code>

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

<dl>
<dt>Coffee</dt>
<dd>- black hot drink</dd>
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>

A

<dl>
</dl>

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

<p>Use <kbd>ctrl + p</kbd> to open the Print dialog box.</p>

A

<kbd></kbd>

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

<pre>
Text in a pre element
is displayed in a fixed-width
font, and it preserves
both spaces and
line breaks.</pre>

A

<pre>
</pre>

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

Makes a paragraph stand out

A

.lead

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

Indicates left-aligned text

A

.text-start

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

Prevents long text from breaking layout

A

.text-break

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

Indicates center-aligned text

A

.text-center

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

Removes the underline from a link

A

.text-decoration-none

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

Indicates right-aligned text

A

.text-end

17
Q

Indicates no wrap text

A

.text-nowrap

18
Q

Indicates lowercased text

A

.text-lowercase

19
Q

Indicates uppercased text

A

.text-uppercase

20
Q

Indicates capitalized text

A

.text-capitalize

21
Q

Displays the text inside an <abbr> element in a slightly smaller font size</abbr>

A

initialism

22
Q

Removes the default list-style and left margin on list items (works on both <ul> and <ol>). This class only applies to immediate children list items (to remove the default list-style from any nested lists,apply this class to any nested lists as well)

A

.list-unstyled

23
Q

Places all list items on a single line (used together with .list-inline-item on each <li> elements)

A

.list-inline