Make a Website - Codecademy Flashcards

1
Q

h1 … h6

A

heading element

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

p

A

paragraph

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

a

A

The a element is used to create links.

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

img

A

The img element is used to add images to a page.

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

ul li

A

a bulleted list

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

body

A

The body element contains the actual content of the web page - everything nested inside and shows up in the web browser

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

!DOCTYPE

A

The doctype at the start of the HTML file tells the browser which version of HTML you are using. The doctype is not an HTML element, so it doesn’t have a closing tag. The doctype ensures that your web page displays consistently when its visited from different browsers.

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

div

A

A div element groups other elements together into sections of the web page, such as a navigation bar, the main body, and the footer.

The outer

..

groups the elements into the navigation bar section of the web page. The inner .. wraps the contents in a container.

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

HTML

A

HTML is used to write a web page’s content

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

CSS

A

CSS is used to define the design and layout of the page.

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

CSS rules

A
  1. A CSS rule starts with a selector. A selector specifies which HTML elements to style. Here the h1 CSS selector selects all h1 HTML elements on the page.
  2. Inside the braces { }, a property and its valuedefine what aspect of the h1 elements to style. Setting the color property to red changes the color of the h1 element to red.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Class Selector

A

The class can be targeted from CSS by using a dot (.).

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

background-color

A

The background-color property sets the color for the background of an HTML element.

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

background-image

A

background-image property sets an image as the background of an HTML element.

Ex.) background-image: url(http://goo.gl/04j7Nn);
}

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

border

A

The border property sets the width, style, and color of an element’s border

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

padding

A

The padding property creates space between the content and border of an element. This whitespace is useful in order to improve readability and organization of the page.

17
Q

margin

A

The margin property creates space for multiple HTML elements. The margin is a transparent area outside the border of an element.

18
Q

head

A

The head element contains information that the web browser needs to display the page.

The link element tells the browser where to find the CSS file used to style the page. Therel attribute tells the browser that the file being linked is a CSS file to style the page. Thehref attribute gives the browser the path to the CSS file.

The body element contains the content of the page that shows up in the web browser.

19
Q

display

A

CSS treats HTML elements like boxes. A box can be “block” or “inline”.

Block elements display on a new line (e.g., h1, p,ul, li).

Inline elements display on the same line as their neighboring elements (e.g., img, a)

It’s possible to change whether a box is block or inline by using the display property.

20
Q

Bootstrap

A

Bootstrap is a collection of prewritten CSS rules used to build web pages faster. Bootstrap provides styles out of the box for several common components on a web page, such as grid layouts, navigation, showcases, and much more.

21
Q

Jumbotron

A

Many sites have a large showcase area featuring important content.

Bootstrap calls this large showcase a jumbotron.

A jumbotron is used to call extra attention to important content on the site.