HTML and CSS Flashcards

1
Q

HTML

A

Hypertext Mark-up Language

A web authoring (mark up) language used to create web pages

It is uses tags to define the structure e.g. h1

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

CSS

A

Cascading Style Sheets

Used for presentation

Style sheets that hold the formatting information for particular tags
e.g. h1 { color: blue; }
Used so that formatting information does have to be included with the content and layout

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

CSS advantages

A
  1. Style only needs to be defined once and it is then applied to all instances
  2. Only needs to be changed in one place
  3. Pages will load faster as there is less description
  4. Same style can be applied to many different documents
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Importance of HTML

A

It is an accepted standard, so all browsers will display the data correctly.
Enables a web browser to interpret a file and display the content

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

Use of structure and presentation in HTML document

A

presentation is used to format colour/style
structure is used to create layout
structure and presentation are often kept separate
Presentation is often stored in a CSS file
the CSS file is linked to the HTML document to implement the presentation requirements
Mark-up tags are used to define structure of a document
Presentation and formatting can also be included within tags

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