HTML & CSS Full Course for free 🌎

Share

Summary

This comprehensive course provides a detailed introduction to HTML and CSS, covering everything from basic document structure to advanced styling and layout techniques. Learn how to build and design web pages with practical examples and exercises.

Highlights

Background Images with CSS
02:21:01

This part details how to add background images using `background-image` with a `url()`. It covers `background-repeat`, `background-position` for centering, `background-attachment` for fixed scrolling, and `background-size: cover` for full coverage.

Introduction to HTML and CSS
00:00:00

This section explains what HTML and CSS are, why they are important for web development, and the tools needed to get started, such as a modern web browser and a text editor like VS Code. HTML provides the structure of a web page, while CSS adds style and design.

Setting Up VS Code and Your First HTML File
00:02:02

Learn how to download and install VS Code, create a new project folder, and set up your first HTML file (index.html). The Live Server extension in VS Code is introduced, which automatically updates the browser with saved changes.

Basic HTML Document Structure and Tags
00:03:33

This part covers the fundamental structure of an HTML document, including `<!DOCTYPE html>`, `<html>`, `<head>`, `<body>`, title tags, and various heading (`<h1>` to `<h6>`) and paragraph (`<p>`) tags. It also introduces line breaks (`<br>`), horizontal rules (`<hr>`), and HTML comments.

Exercise: Creating a Lyrics HTML File
00:08:30

A practical exercise to create a separate HTML file for song lyrics, applying the learned tags like `<h1>`, `<h3>`, `<hr>`, and `<pre>` for pre-formatted text to maintain spacing.

Creating Hyperlinks
00:11:06

Learn how to create hyperlinks using `<a>` (anchor) tags with the `href` attribute to link to external websites, local files, or trigger email clients using 'mailto:'. Optional attributes like `target="_blank"` for opening links in a new tab and `title` for tooltips are also discussed.

Adding Images to a Web Page
00:15:14

This section explains how to embed images using the `<img>` tag with the `src` attribute. It covers adjusting image dimensions, using the `alt` attribute for accessibility and fallback text, and turning images into hyperlinks. Organizing images in a dedicated folder is also coved.

Including Audio Files
00:21:30

Learn how to embed audio files using the `<audio>` tag. It demonstrates adding controls, autoplaying (with a recommendation to mute), looping, and providing fallback source files for different browser compatibilities. Organizing audio files within a 'music' folder is also covered.

Embedding Video Files
00:26:48

This part details how to embed video files using the `<video>` tag. Similar to audio, it covers adding controls, setting width/height, autoplaying (with mute), looping, and providing fallback source files (`<source>`) for different video formats. Turning a video into a hyperlink is also shown.

Text Formatting in HTML
00:34:20

Explore various HTML tags for text formatting, including bold (`<b>`), italic (`<i>`), underline (`<u>`), deleted (`<del>`), big (`<big>`), small (`<small>`), subscript (`<sub>`), superscript (`<sup>`), monospaced (`<tt>`), and marked (`<mark>`) text. Inline CSS is also briefly introduced for customizing marked text.

Span and Div Tags for Grouping Elements
00:38:09

This section differentiates between `<span>` and `<div>` tags. `<span>` is an inline container for grouping and styling text or inline elements, while `<div>` is a block-level container for grouping larger sections of content. Practical examples using inline CSS are provided to demonstrate their styling capabilities.

Creating Different Types of Lists
00:42:55

Learn to create unordered lists (`<ul>`) with list items (`<li>`), ordered lists (`<ol>`) for numbered lists, and description lists (`<dl>`) with description terms (`<dt>`) and descriptions (`<dd>`). The concept of nested lists is also covered.

Building Tables in HTML
00:49:25

This part explains how to construct tables using `<table>`, table rows (`<tr>`), table headers (`<th>`), and table data (`<td>`). Attributes for alignment, borders, and width are demonstrated, along with basic inline CSS for background colors.

Creating Buttons
00:54:14

Learn to create interactive buttons using the `<button>` tag. Styling with inline CSS for font size, background color, text color, and border-radius is explored. The video also shows how to turn a button into a hyperlink and briefly introduces executing JavaScript functions with `onclick`.

Building Basic Forms
00:59:27

This comprehensive section covers creating various form elements within a `<form>` tag. It includes text inputs, password inputs, email inputs, phone number inputs (with pattern validation), date pickers, number inputs (with min/max values), radio buttons, drop-down menus, checkboxes, text areas, and file inputs (with file type acceptance). The `action` and `method` attributes of the form are also mentioned.

Header and Footer Elements
01:17:21

Understand the use of semantic `<header>` and `<footer>` tags for organizing introductory and concluding content on a web page, respectively. Examples include titles, navigation links, author information, and copyright details, with basic CSS styling for background colors.

Introduction to CSS: Inline, Internal, and External
01:23:09

This section introduces Cascading Style Sheets (CSS) and its three application methods: inline styling (using the `style` attribute), internal stylesheets (using `<style>` tags in the `<head>`), and external stylesheets (linking a `.css` file with `<link>`). The benefits of external stylesheets for reusability are highlighted, along with selecting elements by tag, ID, and class.

Applying Colors with CSS
01:31:09

Learn different ways to specify colors in CSS: using named colors, RGB values, hexadecimal values, and HSL (Hue, Saturation, Lightness) values. Examples are provided for setting both background colors and font colors.

Working with Fonts and Google Fonts
01:35:36

Explore `font-family`, `font-size`, `font-weight`, and `font-style` properties in CSS. The video also demonstrates how to use Google Fonts by linking their stylesheet or downloading and hosting fonts locally using `@font-face` rules.

CSS Borders
01:42:47

Learn how to add and customize borders around elements using `border-style`, `border-width`, `border-color`, and `border-radius`. Shorthand syntax for borders and directional borders (e.g., `border-bottom`) are also explained.

Text Shadows and Box Shadows
01:47:11

Discover how to create visual depth with `text-shadow` for text and `box-shadow` for other elements. The properties for horizontal offset, vertical offset, blur radius, and color are demonstrated for both.

CSS Margins
01:50:28

This section explains CSS margins, which create space around an element. It covers `margin-top`, `margin-bottom`, `margin-left`, `margin-right`, and the shorthand `margin`. The concept of `margin: auto` for centering elements is also introduced.

The Float Property
01:55:40

Learn how the `float` property allows other elements to flow around a floated element, commonly used with images and block-level elements. It covers floating elements to the `left` or `right` and introducing `display: flow-root` to prevent content overflow.

CSS Overflow Property
02:00:10

Understand the `overflow` property, which dictates how content behaves when it exceeds the boundaries of its parent element. The five states (`visible`, `hidden`, `clip`, `scroll`, and `auto`) are demonstrated, along with `overflow-clip-margin`.

CSS Display Property
02:03:30

This section explains the `display` property and its values: `block`, `inline`, `inline-block`, and `none`. It clarifies the differences between block-level and inline elements and how to change their default display behavior. The `visibility: hidden` property is also compared to `display: none`.

CSS Width and Height Properties
02:07:44

Learn to control the `width` and `height` of elements in CSS. It covers explicit pixel values, `auto` (default), and percentage-based widths. The `box-sizing: border-box` property is introduced as a best practice to include padding and borders in width/height calculations.

CSS Position Property
02:14:38

Explore the `position` property and its five values: `static`, `relative`, `fixed`, `absolute`, and `sticky`. Each position type is explained with examples, showing how elements can be moved using `top`, `bottom`, `left`, and `right` properties.

Creating a Favicon
00:31:19

Learn how to create a favicon (the small icon displayed in the browser tab) using the `<link>` tag within the `<head>` section. The `rel="icon"`, `type`, and `href` attributes are explained, along with recommendations for image sizes and formats.

CSS Combinators
02:24:14

Learn about CSS combinators that define the relationship between selectors: descendant (space), child (`>`), general sibling (`~`), and adjacent sibling (`+`). Examples demonstrate how these combinators target specific elements within the document structure.

CSS Pseudo-classes
02:29:10

Discover pseudo-classes, keywords added to selectors that style elements in a specific state. Examples include `:link`, `:visited`, `:hover`, `:active` for links, and `:not()`, `:nth-child()` for more complex selections with lists. Building a simple hover-to-show element is also covered.

CSS Pseudo-elements
02:36:51

Explore pseudo-elements, which style a specific part of an element. Examples include `::first-letter`, `::first-line`, `::selection`, `::before` and `::after` (with `content` property for adding generated content), and `::marker` for list item markers.

Pagination in HTML and CSS
02:43:08

Learn to create a basic pagination (page navigation) system using HTML and CSS. This involves structuring navigation links within a `div`, styling them with CSS for appearance and hover effects, and demonstrating how to link between multiple HTML pages.

Creating a Dropdown Menu
02:51:30

Detailed instructions on building a dropdown menu using HTML and CSS. It covers structuring the button and menu content with `div` elements, styling with background colors, padding, and text decoration, and using `display: none` and `display: block` with the `:hover` pseudo-class to toggle visibility.

Building a Navigation Bar
02:58:19

Learn to create both vertical and horizontal navigation bars. It covers using `nav` and `ul`/`li` elements, styling with `background-color`, removing bullet points, and using `float: left` for horizontal layouts. Responsive behavior for `main` content is also implemented.

Basic Website Layout with Semantic Tags and Responsive Design
03:04:54

This section demonstrates building a basic website layout using HTML5 semantic tags like `<header>`, `<nav>`, `<main>`, `<aside>`, `<section>`, `<article>`, and `<footer>`. It also introduces responsive design using `@media` queries to adjust the layout for different screen widths, making it suitable for both desktop and mobile devices.

Interactive Image Gallery
03:14:14

Learn to create an interactive image gallery using HTML and CSS. It involves structuring image entries within `div` elements, styling them with borders and margins, and applying `:hover` effects to change border colors. Images are linked to open in a new tab for full view.

Font Awesome Icons
03:19:50

This part explains how to integrate Font Awesome icons into a web page. It covers obtaining a Font Awesome kit, linking it to the HTML document, finding and embedding icons (`<i>` tags), customizing their size and color with CSS, and turning them into hyperlinks.

Introduction to Flexbox
03:28:30

A quick introduction to Flexbox, a CSS layout module. It demonstrates how to use `display: flex` on a container to control the layout of its direct children. Properties like `flex-direction` (row, column, reverse), `justify-content` (alignment on main axis), `align-items` (alignment on cross axis), `flex-wrap`, `align-content`, `gap`, `align-self`, and `order` are explained with practical examples.

CSS Transform Property
03:38:22

Explore the `transform` property in CSS, which allows you to rotate, scale, skew, or translate an element. Functions like `translateX()`, `translateY()`, `translate()`, `rotateX()`, `rotateY()`, `rotateZ()`, `scaleX()`, `scaleY()`, `scale()`, `skewX()`, and `skewY()` are demonstrated with various values and combinations.

Creating CSS Animations
03:47:24

Learn to create custom animations using `@keyframes` rules in CSS. It covers defining animation names, setting `from`/`to` states or percentage-based keyframes, and applying `animation-duration`, `animation-iteration-count`, `animation-direction`, `animation-play-state`, and `animation-timing-function`. Examples include sliding, rotating, scaling, fading opacity, changing colors, and a glowing effect, with the option to trigger animations on hover.

Recently Summarized Articles

Loading...