Text Flashcards

1
Q

What do we mean by semantic markup?

A

Adds meaning/extra information to an element

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

What do we mean by structural markup?

A

Adds structure to a page (paragraphs, headings)

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

Headings

A

<h1>-<h6>

To validate a page, you can't skip a heading level e.g. You can't have a page with H1 and H3 but no H2</h6></h1>

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

Paragrapghs

A

<p></p>

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

Bold

A

<b></b>

To be used just to differentiate text by bolding it. If you want to bold text to signify importance use strong</b>

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

italics

A

<i></i>

Use to display text in italics. If you want to emphasise text, use em</i>

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

superscript

A

Often used for mathematical formulas e.g</sup>

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

subscript

A

Often used for footnotes, chemical formulas e.g.</sub>

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

How is white space treated in html

A

It collapses.

If you have multiple white spaces in between words, they’ll get rolled into one. Similarly if you have multiple carriage returns between elements, they’ll get returned as just a single one

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

Line break

A

<br></br>

This is an empty element (i.e. no separate closing tag)

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

Horizontal rule

A

<hr></hr>

This is an empty element (i.e. no separate closing tag)

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

strong

A

<strong></strong>

Indicates element has extra importance.

Displays as bold</strong>

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

emphasis

A

<em></em>

Indicates emphasis the subtlety changes meaning.

Displays as italics</em>

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

blockquote

A

<blockquote>

Displays as indented

Also uses cite attribute which takes a url. The URL will provide additional information about the source.

Contents inside block quote should be put in a p tag

<blockquote><p>A long quote </p></blockquote></blockquote>

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

quote

A

Used for quotes in paragraphs.

Also uses cite attribute which takes a url. The URL will provide additional information about the source.

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

Abbreviation

A

<abbr></abbr>

Contents will display as a tooltip on hover.

Takes a title attribute with the full term</abbr>

17
Q

cite

A

Used to indicate title of a work

18
Q

definition

A

<dfn></dfn>

Used to indicate the defining instance of a new term. This will be the term followed by a definition</dfn>

19
Q

address

A

<address>

Used to provide contact details of webpage author.

elements inside address marked up with paragraph tags an appropriate markup</address>

20
Q

insert

A

<ins></ins>

Indicates change to text. Nw text inserted

displays as underlined</ins>

21
Q

deleted from text

A

<del></del>

Indicates change to text. Text deleted.

Appears as strikes through</del>

22
Q

strikethrough

A

Indicates tetx is no longer accurate / relevant.

Appears as strikes through