works by connecting clients (browsers) and servers over the internet, using requests and responses to deliver web pages and applications
frontend (interface (HTML, CSS, JS)) Middlewares (intermediaries between the frontend and backend(API's , web services)) Backend (server side (databases, server scripting files to process requests from the client))
- HTML ELEMENTS : creation of structures of a page
Types of elements:
a. Block Level elements : occupies the entire row section i.e.
,
Syntax <> content </>
- Styles out of html elements
- Responsiveness / Layouts
When writing CSS we have 3 modes of styling HTML elements using CSS a. Inline styling = use of style attribute to include our css styling b. Internal styling = use of style element in the head section to write our CSS c. External styling = link our html to an external css file.
Syntax selector { property : value }
selector specificity { property : value }
The main selectors when using css are as follows a. id attribute : identification -> to identify the element to be styled b. class attribute : group stylings to be implemented to a group of elements with the same class name. c. tag selector : when you stipulate the html element to style in CSS , any element without an id or a class attribute will receive the same styling
HTML Semantics clearly describe the meaning and role to both browsers and developers
- Improves SEO (search engine optimization)
- Code Readablity
Tag Purpose
Represents the page header or section header Contains navigation links Main content of the page (only one per page)- static (default) :: the default position of elements. They follow the normal document flow
- relative :: moves an element relative to its normal position
- absolute :: the element is removed from the normal document flow and positioned relatively to the nearest element/ ancestor
- fixed :: the element stays in position even on scrolling
- sticky :: the element acts like its in a relative position until scrolled past then it sticks.
- Margin : creates margins between elements
- Padding: space inside the element between its content and border
-
grid-container : the parent element where the grid is defined : display : grid;
-
grid-items : the child inside the grid container / partions of my page
-
grid areas : a group of grid items that define the partions
-
grid-template-columns : define column sizes
-
grid-template-rows : define row sizes
-
grid-template-areas : define named regions in the grid
navbar
menu A menu B menu C form video 1 video2 footer
Programming is a process of writing instructions for a computer to execute These instructions are written via programming languages like JS, Python, Java , C++
- Algorithms and Logic writing
- Variables and Data Types
- Control Structures (Flow of Execution) a/ conditional statements b/ loops
- Functions
- OOP (Object Oriented Programming) / DOM
- Error handling and Debugging
- Dynamic : no need to specify the data type
- Interpreted : runs directly in browsers without compilation
- Event-Driven : responds to user actions
- Versatile : Works on both front end and backend(nodeJS)
function nameoffunction(){ }
variables store data (what is the data types?)
-
Declaring variables a. var (old way , function-scoped) b. let (modern, block-scoped) : mutable : allowing change c. const (constant , variable cannot be reassigned)
-
Scope refers to the accessibility of the variable
scopes determine the visibility of your variables / functions / objects in different parts of your code
- Global scope
- Local/Function scope
- Block Scope
- Lexical (closure scope)
conditional statements allow us to control the flow of programs based of conditions
- if statement (else if and else )
- reusable blocks of code , that can take input , process it and return a desired output.
- Function declarations : when you need that can be hoisted what is hoisting ? a function is accessible before its declaration in code
- Function expressions : variable values are actual functions When we need a function that should not be hoisted