Cheat Sheet

HTML Tags


Document Structure

Text Elements

Formatting Tags

Links and Media

Lists

Tables

Forms

Semantic Elements (Structure)

Div and Span

Meta Tags

Script and Style

Attributes

Attributes are tags on an HTML element that have an impact on the function of an element.
Common attributes include:

Comments

Comments are used to add notes to the code that are not displayed in the browser.

<!-- This is a comment -->

Entities

Entities are special characters that cannot be used directly in HTML.

Web Techniques


URL Structure

https://example.com/index.html

Web Communication

Popular Web Browsers

Popular Web Servers

CSS Rules


Inline, Internal, External

Syntax

CSS rules consist of a selector and a declaration block.

h1 {
‎ ‎ ‎ color: red;
}

Selector Types

Properties

Properties can be used to apply styles to specific elements, selected by a selector.
Some common properties include:

Color

Colors can be specified using:

Border

Borders can be styled using:

Box Model

The box model consists of:

Positioning

Elements can be positioned using:

Text

Text can be styled using:

Background

Backgrounds can be styled using:

Flexbox

Flexbox is a layout model that allows elements to align and distribute space within a container.

Grid

Grid is a layout model that allows elements to be placed in rows and columns.

Link

Links can be styled using:

Table

Tables can be styled using:

List

Lists can be styled using:

Pseudo Classes and Elements

Pseudo classes and elements are used to style elements based on their state or position in the document.

Media Queries

Media queries are used to apply styles based on the device characteristics.

Transitions and Animations

Transitions and animations are used to create movement and effects on elements.

Combinators

Combinators are used to select elements based on their relationship in the document.

Link Pseudo tags

Floating

Floating is used to position elements to the left or right within their container.

Clear

Clear is used to prevent elements from wrapping around a floated element.