Frontend Development — All-in-One Interactive Lesson
Compact lesson combining Markdown, HTML, CSS, Sass, Tailwind, and JavaScript with interactive playgrounds
Frontend Development
Interactive lessons: Markdown → HTML, CSS styling, Tailwind + Sass, JavaScript, and a live code sandbox.
← Back to Big Six1 — Markdown to HTML Conversion
# H1→ <h1> ·## H2→ <h2>**bold**→ bold ·*italic*→ italic- item→ unordered list ·1. item→ ordered list[text](url)→ link ·→ image- Backtick
`code`→ inline code ·> text→ blockquote
.md files to HTML.2 — CSS Styling Playground
- Selector — targets elements:
.class#idelement:hover - Box model — margin → border → padding → content
- Flexbox —
display:flexaligns items in a row or column - Transitions —
transition: all 0.3s easeanimates changes - Gradients —
background: linear-gradient(direction, color1, color2)
border-radius to 50% or swapping the gradient for a solid color.3 — Tailwind CSS & Sass
Adjust the dropdowns and the card updates instantly.
<div class="p-4 bg-blue-600 text-white rounded-lg shadow-md"> Tailwind Card </div>
Sass compiles to plain CSS. Here is what it adds:
$primary: #667eea;
$radius: 12px;
.card {
padding: 1rem;
background: $primary;
border-radius: $radius;
&:hover { transform: scale(1.05); }
&__title { font-size: 1.25rem; }
}
.card {
padding: 1rem;
background: #667eea;
border-radius: 12px;
}
.card:hover { transform: scale(1.05); }
.card__title { font-size: 1.25rem; }
4 — JavaScript Fundamentals
JavaScript has three ways to declare variables: let, const, and var (old — avoid).
console.log() to print any value. Errors appear in red.5 — Live Code Sandbox
alert(), addEventListener(), setInterval(), and more.6 — Reflection & What's Next
Markdown is shorthand for HTML. Tools like Jekyll convert .md to .html automatically.
CSS controls layout, colors, spacing, and animation. Master selectors, the box model, flexbox, and grid.
Utility-first classes let you build UI without CSS files.
Sass adds variables, nesting, and mixins. Use it in larger projects with reusable design tokens.
JS makes pages interactive. The beginner stack: variables → functions → arrays → DOM → events.
Build a calculator in the sandbox. Then explore React, fetch APIs, and GitHub Pages to deploy live.
<button> elements for digits and JavaScript to handle clicks and compute results.