HTML Css Js Revision
HTML Css Js Revision
Table of Contents
1. Introduction
2. HTML Basics
3. CSS Basics
4. JavaScript Basics
Chapter 1: Introduction
Welcome to the comprehensive HTML, CSS, and JavaScript revision guide. This guide covers
essential elements, properties, and methods, providing a detailed reference for web development
basics.
Chapter 2: HTML Basics
HTML Basics
Text Formatting
- <p>: Paragraph.
- <img>: Image.
Lists
Tables
- <table>: Table.
- <button>: Button.
- Input types: text, password, submit, reset, radio, checkbox, file, hidden, image, date, email,
Semantic Elements
Selectors
- Universal selector *.
- ID selector #id.
Properties
- color
- background-color
- background-image
- background-repeat
- background-position
- background-size
- Text:
- font-family
- font-size
- font-weight
- font-style
- text-align
- text-decoration
- text-transform
- line-height
- letter-spacing
- Box Model:
- width
- height
- margin
- padding
- border
- border-radius
- box-shadow
- display
- visibility
- position
- top
- right
- bottom
- left
- z-index
- float
- clear
- overflow
- Flexbox:
- display: flex
- flex-direction
- justify-content
- align-items
- flex-wrap
- flex-grow
- flex-shrink
- flex-basis
- Grid:
- display: grid
- grid-template-columns
- grid-template-rows
- grid-column
- grid-row
- gap
- justify-items
- align-items
- Responsive Design:
- max-width
- min-width
- max-height
- min-height
- orientation
- aspect-ratio
Chapter 4: JavaScript Basics
JavaScript Basics
- Data Types: Number, String, Boolean, Object, Array, Function, Null, Undefined, Symbol, BigInt
Operators
- Arithmetic: +, -, *, /, %, **
Control Structures
Functions
- Function declaration:
function functionName(parameters) {
// code to be executed
- Function expression:
const functionName = function(parameters) {
// code to be executed
};
- Arrow function:
// code to be executed
};
- Objects:
const person = {
firstName: "John",
lastName: "Doe",
age: 30,
fullName: function() {
};
- Arrays:
DOM Manipulation
- document.getElementById()
- document.querySelector()
- document.querySelectorAll()
- element.innerHTML
- element.textContent
- element.setAttribute()
- element.getAttribute()
- element.classList.add()
- element.classList.remove()
- element.classList.toggle()
Events
- element.addEventListener()
ES6 Features
- let, const
- Arrow functions
- Template literals
- Destructuring
- Default parameters