HTML and CSS Flashcards
HTML
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
CSS
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
CSS advantages
- Style only needs to be defined once and it is then applied to all instances
- Only needs to be changed in one place
- Pages will load faster as there is less description
- Same style can be applied to many different documents
Importance of HTML
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
Use of structure and presentation in HTML document
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