HTML & CSS Flashcards

Master the root and trunk concepts of HTML & CSS.

1
Q

Tags

A

They are the defining classification of content for computers and web browsers. They help computers and web browsers properly interpret the content you want them to display.

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

Elements

A

They are what opening to closing elements are called. is an element

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

Inline Styling

A

Working with tags like <em> & <strong> one can style markup content inline.</strong></em>

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

Attributes

A

Elements can have attributes like webpage links and they always exist in the opening tag of an element. Also, there are some elements that require attributes else the browser wouldn’t interpret them properly. For example the anchor element <a></a>

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

Declaration

A

The property/value combination in CSS is called a declaration

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

CSS Rule

A

A CSS Rule is a combination of a selector, property and value.

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

Base Selectors

A

Selectors are class definitions in CSS properly differentiating between content types in the same divs/elements giving CSS more targeted control.

There are two types of selectors namely class selectors which work as group selectors and a displayed as (.class{}) and id selectors which are more narrow and individual meaning they can be used only once per page and they are displayed thus (#id{})

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

CSS Properties

A

these add styling properties to web content marked up in HTML. colour, font size, borders, padding etc.

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

Margin

A

Margin is a CSS property that helps positions things relative to what’s around it. The margin value shortcut goes clockwise

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

Padding

A

Padding is a CSS property used to control the positioning of content inside an element.

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

pseudo-classes

A

these select special states of selectors in relation to external factors that have nothing to do with content or its markup. For example when a link is being hovered over by a mouse or when a video is being played. It computes for external inputs and influence.

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

The Display CSS Property - Block & Inline

A

Elements given the block display value have widths that span their entire container, whilst those given the inline value have widths that span the length of the content they contain. Also, the widths of inline elements cannot be defined.

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

The Display CSS Property - Inline-Block

A

With the Inline-Block display property value, you can define the width of Inline elements.

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

Flex & Inline-Flex

A

The Flex display value works for items in a container. It is very flexible (it’s why it is named flex). As for the Inline-Flex value, that combines the properties of an Inline display and a Flex display. Very powerful stuff too.

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

Uses Of The Strong Tag

A

The Strong Tag should be used to signify the importance of a piece of content not for styling purposes.

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

CSS Units - Relative, Absolute & Percentages

A

Relative to viewport - vh, vw, minv & maxv

Relative to font - em & rem

Absolute - px, cm, mm, inch etc

Percentages -

17
Q

HTML Attributes

A
  • appear only in the opening HTML tag

- purpose is to give more information to the browser.

18
Q

IDs

A

an ID attribute can only be used used once unlike a class that can be used multiple times and in the instance, an element has both class and id attributes, the id attribute would over right the class attribute