HTML and CSS Tutorial for Beginners

A simple tutorial on HTML and CSS layout for beginners with detailed theory and a workbook.

HTML Basics

CSS Basics

Selectors

049

Tag Relationships in HTML

050

Inheritance of CSS properties

051

Grouping Selectors in CSS

052

Common properties when grouping selectors in CSS

053

Descendant Selector in CSS

054

Child selector in CSS

055

Element classes in CSS

056

The span tag for pieces of text in HTML

057

Div tag for grouping tags in HTML

058

Grouping Classes in CSS

059

Tag with a given class in CSS

060

Descendant Selector and Classes in CSS

061

Complex combinations of descendant selectors and classes in CSS

062

Rookie Mistake in Descendant Selector

063

Element with multiple CSS classes

064

Selecting an element by unique id in CSS

065

Selector by id and CSS classes

066

Using id in CSS

067

Selecting an element by multiple classes in CSS

068

Multiple selectors merged in CSS

069

Error when using multiple CSS selectors

070

Grouping Complex Selectors in CSS

071

Mistake when grouping complex CSS selectors

072

Practice on combinations of CSS selectors

073

CSS Selector Priority

074

CSS Property Conflict Notice

075

Specificity Rules in CSS

076

Descendant Selector Priority in CSS

077

Adjacent selector in CSS

078

Sibling Selector in CSS

079

Universal Selector in CSS

080

Attribute Selectors in CSS

081

Link States in CSS

082

The Nuances of Link State Sequence in CSS

083

Link and visited states in CSS

084

Common Uses of Link States in CSS

085

Complex Selectors with Link States in CSS

086

Link with class in CSS

087

Selecting Trailing Elements in CSS

088

Selecting by element position in CSS

089

Selecting a Single Child in CSS

090

Selecting Empty Elements in CSS

091

Selection by position and type of elements in CSS

092

Negation Selector in CSS

Design

Block model

126

Working with CSS Margins

127

Margins for different sides in CSS

128

Multiple values ​​in the margin property in CSS

129

Four Values ​​for the CSS Margin Property

130

Two values ​​in the margin property in CSS

131

Three values ​​in the margin property in CSS

132

Working with padding in CSS

133

Padding for different sides in CSS

134

Multiple values ​​in padding property in CSS

135

Working with padding in CSS

136

The Effect of Border on Element Expansion in CSS

137

How padding and border affect the expansion of elements in CSS

138

Undoing Element Expanding in CSS

139

Features of block elements in CSS

140

Width and height of block element in CSS

141

CSS Block Element Width

142

Height of a block element in CSS

143

Height of a block element without content in CSS

144

Multiple block elements side by side in CSS

145

Features of inline elements in CSS

146

CSS Inline Element Width and Height

147

Multiple inline elements side by side in CSS

148

Spacing Between Inline Elements in CSS

149

Definition of the HTML tag box model

150

Working with the display property in CSS

151

Features of inline-block elements in CSS

152

Width and height of inline-block element in CSS

153

CSS Inline-Block Element Width

154

Height of inline-block element in CSS

155

Multiple inline-block elements side by side in CSS

156

Aligning Block Elements in CSS

157

Aligning a Block Element with Left Indent in CSS

158

Aligning a Block Element with Right Indent in CSS

159

Aligning Inline Elements in CSS

160

Centering Inline Elements in CSS

161

Centering Multiple Inline Elements

162

Right Aligning Inline Elements in CSS

163

Aligning Inline-Block Elements in CSS

164

Centering Inline-Block Elements in CSS

165

Right Aligning Inline-Block Elements in CSS

166

Flex elements in CSS

167

Height of parent of flex elements in CSS

168

Flex Element Parent Width in CSS

169

Inline-block parent of flex elements in CSS

170

Flex Element Parent Padding in CSS

171

Margins on descendants in CSS

172

Aligning Flex Items in CSS

173

Centering Flex Elements in CSS

174

Aligning Flex Elements to Parent in CSS

175

Aligning Flex Elements to Parent with Padding in CSS

176

Aligning Flex Elements to Parent with Equal Margins in CSS

Positioning

Floats

Flexes

Grids

Layouts