HTML and CSS Flashcards

(61 cards)

1
Q

HTML

A

HTML is an interpreted language, used to describe the format and content of a webpage to a web browser. It uses tags as commands and each tag usually has additional attributes e.g.

is the tag
Width is an attribute
Height is an attribute

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

<p> </p>

A

Paragraph

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

<br></br>

A

Line break

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

Table

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

Table row

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

Table column

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

<h1></h1>

A

Heading 1

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

<img></img>

A

Include an image

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

<a>displayed link</a>

A

Hyperlink to a new page

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

<div></div>

A

Section of the document

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

<ol></ol>

n

A

Ordered/numbered list

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

<ul></ul>

A

Unordered list

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

<li>
</li>

A

List item

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

Defines the document type

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

Defines a comment

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

<a></a>

A

Defines a hyperlink

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

<b></b>

A

Defines bold text

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

Defines a documents body

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

A footer section in a document

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

Defines header for a document or section

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

Defines the root of a html document

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

<img></img>

A

Defines an image

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

Defines navigation links

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

CSS

Background-color

A

determines the colour of the background, can be specified as a named colour (e.g. red) or as red/green/blue in hex 6 digit number (e.g. A6F2CC)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
CSS | Text-color
determines the colour of the font
26
CSS | Text-align
justifies the text
27
CSS | Float (left or right)
positions the div element to the right or left of the surrounding element
28
CSS | Border
colours and styles the border
29
CSS | align-content
Specifies the alignment between the lines inside a flexible container when the items do not use all available space
30
CSS | align-items
Specifies the alignment for items inside a flexible container
31
CSS | Align-self
Specifies the alignment for selected items inside a flexible container
32
CSS | background-attachment
Defines whether or not the back face of an element should be visible when facing the user
33
CSS | Background-blend-mode
Specifies the blending mode of each background layer (color/image)
34
CSS | Background-clip
Defines how far the background (color or image) should extend within an element
35
CSS | background-image
Specifies one or more background images for an element
36
CSS | background-origin
Specifies the origin position of a background image
37
CSS | Background-position
Specifies the position of a background image
38
CSS | background-repeat
Sets if/how a background image will be repeated
39
CSS | background-size
Specifies the size of the background images
40
CSS | border-bottom
A shorthand property for border-bottom-width, border-bottom-style and border-bottom-color
41
CSS | border-bottom-color
Sets the color of the bottom border
42
CSS | border-bottom-left-radius
Defines the radius of the border of the bottom-left corner
43
CSS | Border-bottom-style
Sets the style of the bottom border
44
CSS | border-bottom-width
Sets the width of the bottom border
45
CSS | Color
Sets the color of text
46
CSS | columns
A shorthand property for column-width and column-count
47
CSS | direction
Specifies the text direction/writing direction
48
CSS | float
Specifies whether or not a box should float
49
CSS | font
A shorthand property for the font-style, font-variant, font-weight, font-size/line-height, and the font-family properties
50
CSS | font-family
Specifies the font family for text
51
CSS | font-size
Specifies the font size of text
52
CSS | font-style
Specifies the font style for text
53
CSS | justify-content
Specifies the alignment between the items inside a flexible container when the items do not use all available space
54
CSS | width
Sets the width of an element
55
Inline CSS

| This is called inline CSS because it is directly within the HTML

56
Embedded CSS
in the style tags in the head section h1 {color: blue;} The purpose of this is to separate the content (the words on your webpage and images), from the style (where they are positioned, the font you use, font size, colours)
57
What makes a good web design?
``` Limited colour palette Maximum 3 colours (+ black & white) Limited font selection Maximum 3 different font styles Common interface across all pages All pages in a site look similar with a similar layout Navigation bar Helps to find your way around the site ```
58
.bmp
Used for larger images, this file is the default type for paint files
59
.jpg
This file is usually high quality images such as photographs, but they can be quite large files. Jpg files fo not support transparency.
60
.gif
These tend to be “cartoony” images. But the format allows layering of different images to produce an animation.
61
.png
These are vector images and tend to be a compromise between the high quality jpg files and low quality gif images. PNG files support transparency.