W3 HTML STUDY SHEET Flashcards

(51 cards)

1
Q

Basic HTML Document

A

<!DOCTYPE html>

<html>
<body>

<h1>My First Heading</h1>
<p>My first paragraph.</p>

</body>
</html>

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

All HTML elements can have _____

A

attributes

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

Attributes provide additional information about _____

A

elements

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

Attributes are specified in the _______ tag

A

start

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

Attributes usually come in name/value pairs like ______

A

name = “value”

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

<img></img>

A

The <img></img> tag is used to embed an image in an HTML page. The src attribute specifies the path to the image to be displayed:

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

The <img></img> tag should also contain the ____ and ____ attributes, which specify the width and height of the image (in pixels):

A

width, height

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

The _____ attribute is used to add styles to an element, such as color, font, size, and more.

A

style

<p>This is a red paragraph.</p>

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

The _____ attribute defines some extra information about an element.

A

title

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

The HTML ____ element defines a line break.

A

<br></br>

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

The HTML _____ element defines preformatted text.

A

<pre>
</pre>

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

Bold Text

A

<b></b>

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

Important Text

A

<strong></strong>

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

Italic Text

A

<i></i>

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

Emphasized Text

A

<em></em>

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

Marked Text

A

<mark></mark>

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

Deleted Text

A

<del></del>

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

Smaller text

A

<small></small>

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

Inserted Text

A

<ins></ins>

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

Subscript text

A

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

Superscript text

22
Q

The HTML _______element defines a section that is quoted from another source.

A

<blockquote>
</blockquote>

23
Q

The HTML ___ tag defines a short quotation.

24
Q

The HTML_____ tag defines an abbreviation or an acronym, like “HTML”, “CSS”, “Mr.”, “Dr.”, “ASAP”, “ATM”.

25
The HTML ______ tag defines the contact information for the author/owner of a document or an article.
26
The HTML ____ tag defines the title of a creative work (e.g. a book, a poem, a song, a movie, a painting, a sculpture, etc.).
cite
27
CSS can be added to HTML documents in 3 ways:
Inline - by using the style attribute inside HTML elements Internal - by using a