HTML & CSS Flashcards
Master the root and trunk concepts of HTML & CSS.
Tags
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.
Elements
They are what opening to closing elements are called. is an element
Inline Styling
Working with tags like <em> & <strong> one can style markup content inline.</strong></em>
Attributes
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>
Declaration
The property/value combination in CSS is called a declaration
CSS Rule
A CSS Rule is a combination of a selector, property and value.
Base Selectors
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{})
CSS Properties
these add styling properties to web content marked up in HTML. colour, font size, borders, padding etc.
Margin
Margin is a CSS property that helps positions things relative to what’s around it. The margin value shortcut goes clockwise
Padding
Padding is a CSS property used to control the positioning of content inside an element.
pseudo-classes
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.
The Display CSS Property - Block & Inline
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.
The Display CSS Property - Inline-Block
With the Inline-Block display property value, you can define the width of Inline elements.
Flex & Inline-Flex
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.
Uses Of The Strong Tag
The Strong Tag should be used to signify the importance of a piece of content not for styling purposes.