HTML Basic Flashcards

1
Q

!DOCTYPE html

A

Defines that we are using the
latest HTML

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

What is the head?
What elements can go in the head?

A

The head is an element for containing data about the document. Non-displayed Metadata and the title.

Elements:
meta, title, base, style, link, & script

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

“<title></title>”

A

Goes in the head
Defines the document title

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

“<body></body>”

A

DOM
Where we actually create the page

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

“<br></br>”

A

Inserts a single line break

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

“<form></form>”

A

Used to create HTML forms
For user input action=”” attribute
controls where the form is sent

Elements: input, textarea, button, select,
option, optgroup, fieldset, label, output

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

“<input></input>”

A

defines input control with the type=””
attribute

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

textarea

A

Defines a multi-line text input
Set with rows=”” cols=”” attributes

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

“<button></button>”

A

Defines a clickable button
You can use text and elements input
doesn’t allow

b, i, strong, br, img, etc.

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

“<select>”</select>

A

Defines a drop down list
name attribute is needed to
reference the form data
id attribute is needed to associate
with a label

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

label

A

Defines a label for ‘input’ element

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

fieldset legend

A

Used to group elements in a form
Creates a box around the elements

Legend tag defines a caption/title
for the fieldset

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

datalist

A

Creates an input bar with predefined
drop down options

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

“<a></a>”

A

“Anchor Tag”
Defines a hyperlink with the
href attribute

Defaults:
unvisited blue
visited purple
active red

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

“<link></link>”

A

Defines the relationship of
the pages by linking them
in the head

link rel=”stylesheet” href=”style.css”

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

meta

A

Defines Metadata in the Head

17
Q

base

A

Defines a URL base for assets
in the head

For example:
base href”https://www.xyz.com/
img src=”images/logo.png”

Logo will be found at
https://www.xyz.com/images/logo.png

18
Q

href=””

A

An attribute that specifies the URL
for the hyperlink to go

a, area, base, link tags

19
Q

download=””

A

An attribute that specifies what
will be downloaded when clicking on
a hyperlink

Elements: a, area, link

20
Q

rel=””

A

An attribute that specifies the relationship between the documents

Elements: link, form, area, a

21
Q

media=””

A

An attribute that specifies what
media/device the hyperlink is optimized for

Elements: a, area, link, source, style

22
Q

target=””

A

An attribute that specifies where a
form is sent or where a linked document
is opened

Elements: form, base, area, a

23
Q

form=””

A

An attribute that specifies the form
the element belongs to

Elements:
button, fieldset, input, label, meter, object, output, select, textarea

24
Q

src=””

A

specifies the URL of a media/script file

Elements:
script, audio/video, img/track, source, input, iframe

25
Q

value=””

A

Specifies the value of an element

Elements:
button, option, input, meter, progress, param, li

26
Q

disabled

A

A boolean attribute that will disable
an element and it’s children

Elements:
button, fieldset, input, select, option, optgroup, textarea

27
Q

A

designated scripting.