Front End Fundamentals
Front End Fundamentals
Table of Contents
1. HTML
2. CSS
3. JavaScript
6. Flashcards
7. Interview-Specific Essentials
HTML
What is HTML?
HTML (HyperText Markup Language) is the standard markup language for
creating web pages.
Basics
Semantic Elements
<header>
<nav>Navigation</nav>
</header>
<main>
<section>
<article>Content</article>
</section>
</main>
<footer>Footer</footer>
Accessibility (a11y)
Use semantic HTML tags
SEO Basics
Use of meta tags: description , viewport , robots
CSS
What is CSS?
CSS (Cascading Style Sheets) controls the appearance of HTML elements on
the screen.
Basics
body {
color: #333;
background: #fff;
padding: 20px;
Units: px , % , em , rem , vh , vw
Layout
.container {
display: flex;
justify-content: space-between;
align-items: center;
}
Grid:
.container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
}
Positioning
.element {
position: absolute;
top: 10px;
left: 20px;
}
Mobile-first approach
.box {
transition: all 0.3s ease-in-out;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.box {
animation: fadeIn 1s ease-in;
}
JavaScript
Basics
Data Types: number , string , boolean , null , undefined , object , array , symbol , bigint
Control Flow
Functions
function greet(name) {
return `Hello ${name}`;
}
const arrow = (x) => x * 2;
function outer() {
let count = 0;
return function inner() {
DOM Manipulation
const el = document.querySelector('#myId');
el.textContent = "Hello!";
el.classList.add('active');
Events
ES6+ Features
Asynchronous JS
Event Loop
console.log("1");
setTimeout(() => console.log("2"), 0);
Promise.resolve().then(() => console.log("3"));
console.log("4");
// Output: 1, 4, 3, 2
Storage
localStorage.setItem('token', 'abc123');
const token = localStorage.getItem('token');
HTML/CSS
CSS specificity and inheritance
Progressive enhancement
Flashcards
HTML
What is semantic HTML?
CSS
JavaScript
Difference between let , var , and const ?
What is closure?
Interview-Specific Essentials
Be able to whiteboard simple layout (HTML/CSS)
Explain how REST APIs work and how to fetch from them