HTML Flashcards

(53 cards)

1
Q

What does HTML stand for?

A

Hypertext Markup Language

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

Tag

A

Basic building block of HTML, describes content.

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

Opening Tag

A

Starts an HTML element, e.g., <h1>.

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

Closing Tag

A

Ends an HTML element, e.g., </h1>.

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

Self-Closing Tag

A

Tag that doesn’t require a closing counterpart.

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

How to structure tags?

A

Always close the most recently opened tag first

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

How to add a heading?

A

<h1>This is a heading</h1>

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

How many headings are there?

A

<h1> to <h6>, <h1> being the heading and the rest being subheadings
</h1></h6></h1>

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

How to use a paragraph tag?

A

<p></p>

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

What is the <div> tag?

A

Like a box. It has no meaning, but is given meaning on what is inside it.

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

What is the <span> tag?</span>

A

Like a <div> tag, but for style

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

What is the difference between a <div> tag and a <span> tag?</span>

A

<div> - whole width of the screen
<span> - hugs the content
</span></div>

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

What does <li> do?

A

Represents the item within a list

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

Ordered List

A

<ol> tag for numbered lists.
</ol>

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

Unordered List

A

<ul> tag for bulleted lists.
</ul>

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

How to use <ol> tags?

A

<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>

will output
1. Coffee
2. Tea
3. Milk

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

How to use <ul> tags>

A

<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>

will output
* Coffee
* Tea
* Milk

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

Button Tag

A

<button>Click me!</button>

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

Image Tag

A

<img></img>

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

src Attribute

A

Specifies the image source URL.

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

alt Attribute

A

Describes the image for accessibility.

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

<table></table>

A

Creates container for a table

23
Q

<thead></thead>

A

Container for header row

24
Q

<tbody></tbody>

A

Container for main body

25
Container for the footer
26
Table heading (header cell)
27
Table data (creates a cell in table row, new column
28
table row (creates a row)
29
Used to create a title for a table
30
A box, used before
, for things like , and
44
Rule for label and input tags
for (in label) must match id (in input) and name type - just make it the type of input you are doing.
45
How to add border to grids of a table
th, td { border: 1px solid black }
46
How to use textarea
No id, add rows and columns
47
Types of input tags
Password, checkbox, color, date, number, file, email, time
48
How to use password in input tags
Make type="password" Can add minLength="8" required
49
How to use checkbox in input tags
Do input before label, add value="" before it for js purposes to the input bit of it
50
How to use color input tags
Usual
51
How to use number input tags
Like usual, but with a min="1" and max="5"
52
How to use email input tags
Usual
53
How to use time input tags
Usual