HTML Flashcards

1
Q

< body > < / body >

Without spaces

A

Surrounding everything on the page

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

< head> < /head>

Without space

A

Before the body and contains information about the page

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

< title > < /title >

Without spaces

A

Part of the head

What it says in the tab/top of the browser

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

<h1> </h1>

A

Heading

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

<p> </p>

A

Paragraph

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

<br></br>

Should have a space and forward slash after br

A

Break
Adds an empty line
Empty element

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

<hr></hr>

Should have a space and forward slash after hr

A

Horizontal rule

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

<ol> </ol>

A

Ordered list

Has numbers

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

<ul> </ul>

A

Unordered list

Has bullet points

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

<li> </li>

A

List item

Inside of ordered or unordered lists

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

<dl> </dl>

A

Definition list

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

<dt> </dt>

A

Definition term

In definition list

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

<dd> </dd>

A

Definition

Used in a definition list

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

<a> what you want the text to say </a>

A

Link outside of site

Links were originally called anchors

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

<a> Home </a>

A

Link within site (in same folder)

Relative URLs

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

target=”blank”

A

Attribute inside <a> after href=”___”</a>

Opens link in new page/tab </a>

17
Q

< img src = “ sample.filetype “ alt = “quotes are a thing “ title =” can have if you want “ />

A

Images must have a source =src and an alt attribute
Empty tag
The alt maybe blank but must have “”

18
Q

< table >

< / table >

A

Used to create a table/spreadsheet thing

Used around table rows

19
Q

< tr >

tr >

A

Table row

Used around each row of a table inside

20
Q

< td >

< / td >

A

Table data
Used inside of table rows for each piece of data
Can be blank inside to represent a blank cell

21
Q

< th >< / th >

A

Table heading

Used like table data but makes it a heading

22
Q

< thead >

thead >

A

Table heading
Used for long tables
A < tr > will be inside of it

23
Q

< tbody > tbody >

A

Table body
Used for long tables
Multiple < tr > will be inside
Used in the same tables as table heading/footer

24
Q

< tfoot >

A

Table footer

25
Q

< ! DOCTYPE html >

A

The very first thing on the page

Indications that the page is in html5

26
Q

id=”sample”

A
ID attribute.
Global attribute-can be added to any tag
Each one unique on the page.
Makes it so that you can style that element differently using CSS.
<p> 

</p>

27
Q

Class=”sample”

A

Class attribute
A global attribute
Can be used for multiple pieces of information and style stuff in conjunction with CSS