HTML Flashcards

1
Q

What is HTML?

A

HyperText Markup Language:

a markup language for creating web pages and applications using elements, tags and attributes

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

What is the HTML5 doctype declaration?

A

informs web browser which version of HTML is used

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

What is the head tag used for?

don’t confuse with headER

A
  • container for metadata

- placed between html & body tag

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

What is the body tag used for?

A
  • contains all content

- defines the documents body

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

What are the required tags for an HTML document?

A

doctype - self closing

html, head, body & closing tags

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

What is the tag for ordered list?

A

ol

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

What is the tag for UN-ordered list?

A

ul

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

Do all tags come in a pair?

A

no, some self-close for voided elements, usually contains ‘ / ‘

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

What’s the difference between an element and an attribute?

A
  • Attributes: characteristics of an element

- Elements: general content for web page

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

the difference between a class and id?

A

id: can only use for one element
class: can for multiple elements

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

What is a semantic tag?

  • article
  • header
  • footer
A

defines different parts of a web page to browser and developer

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

What is CSS

A

Cascading Style Sheets

- how elements are going to be displayed on screen

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