Web development, Python, and data documentation
Read lessons and code examples for web development, databases, Python, data analysis, and machine learning.
Open interactive docs · မြန်မာ
Web Fundamentals
Follow a website from its domain name to the first page. Learn what the browser asks for, what a server does, and how the parts of a web app work together.
HTML
Start with a document and its text, then work through links, images, semantic regions, forms, and interactive elements. Each topic explains how the browser handles it and includes code you can try.
HTML Foundations
- Introduction to HTML
- Create Your First HTML Page
- HTML Tags and Elements
- HTML Document Structure
- HTML Doctype and Browser Modes
- HTML Attributes
Text & Hierarchy
- Headings <h1>–<h6>
- Paragraphs, Line Breaks, and Thematic Breaks
- Inline Text Elements
- Abbreviations, dates, and keyboard input
- HTML Comments
- HTML Quotations
- HTML Entities (Character References)
Lists & Navigation
Page Structure & Accessibility
Images & Media
Data Tables
Forms & Validation
- HTML Forms, Labels, and Inputs
- Checkboxes, Radio Buttons, and Select Menus
- HTML Buttons <button>
- HTML Input Types
- Form suggestions and calculated results
- File Uploads
- HTML Form Validation
- HTML Form Constraints
Interactive Elements
SEO, Debugging & Reference
CSS
Start with one style rule, then learn how the browser chooses styles and arranges boxes on screens of different sizes.
CSS Foundations
- Your first CSS rule
- Add CSS to HTML
- CSS Selectors
- Basic Selectors and the Cascade
- CSS selectors and element states
- Pseudo-elements
Text, Color & Visual Styling
- Text size, units, and fonts
- Text, links, and list styling
- CSS colors
- Backgrounds, borders, and shadows
- Image fitting and transforms
- Style forms and tables
Box Model & Layout Flow
- Normal flow, box model, and display
- Margins, overflow, and visibility
- Floats and text wrapping
- Positioning and stacking order
Flexbox & Grid
- Flexbox
- Flexbox Sizing and Alignment
- Grid
- Grid Placement and Alignment
- Flex sizing and grid placement
Responsive Layout & Debugging
- Responsive styles and focus
- Fluid sizing with CSS functions
- Responsive Grid and Subgrid
- Debug a broken layout
Themes & Motion
Reference
JavaScript
Write your first instruction in the browser, then learn to calculate values, respond to clicks, and request data.
Values & Control Flow
- Run your first JavaScript
- Values, types, variables, and operators
- Missing values and template literals
- Conditions and loops
Functions, Data & Modules
- Functions and modules
- Declarations, hoisting, and this
- Strings, arrays, and objects
- Find, test, and sort arrays
- Date and Math
- Map and Set
- Scope, closures, and classes
DOM, Events & Forms
Async, HTTP & Browser Storage
- Asynchronous JavaScript, promises, and the event loop
- HTTP requests and Fetch
- Browser storage and error handling
- Debug with browser DevTools
Generators, Regex & Workers
Reference
TypeScript
Check JavaScript code with types. Learn inference, narrowing, generics, and compiler setup.
Database
Compare data models and learn to choose a database for an application. Practice SQL in PostgreSQL, then explore storage, recovery, and scaling.
Database fundamentals
PostgreSQL and SQL
- Introduction to PostgreSQL
- Install PostgreSQL and psql
- Connect with psql and create tables
- Inspect databases, roles, schemas, and tables
- SQL basics and CRUD with one table
- Queries, joins, and groups
- Design tables with normalization
Transactions, indexes, and advanced queries
- Data changes, transactions, and indexes
- Transaction isolation and concurrent updates
- Break down queries with CTEs
- Rank and total rows with window functions
- Insert or update with ON CONFLICT
Database administration
- PostgreSQL users, roles, and ownership
- Change tables, manage access, and create views
- Back up and restore with PostgreSQL tools
Storage, recovery, and scaling
React
Build interfaces with components, props, state, and effects.
NestJS
Build Node.js APIs with controllers, providers, modules, validation, and tests.
- Set up an app and serve a route
- Providers, modules, and dependency injection
- Validate requests and test routes
- Request lifecycle, guards, and interceptors
- Configuration and the database layer
- Document routes and HTTP errors
- Run background jobs with a queue
- Send live updates with WebSockets
- Cache frequently read results
Web Security
Follow a shared document from browser to database. Learn who can read it, how to protect each request, and how to check those protections before release.
- Introduction to Web Security
- HTTPS, TLS, and HSTS
- Same-Origin Policy and CORS
- Authentication, Passwords, and Account Recovery
- Sessions, Cookies, OAuth, and OpenID Connect
- Authorization and Object-Level Access Control
- Cross-Site Request Forgery (CSRF)
- Cross-Site Scripting, CSP, and Clickjacking
- Input Validation and Injection Prevention
- API Security and Resource Limits
- File Uploads and Server-Side Requests
- Webhooks and Data Integrity
- Private Data, Encryption, and Secrets
- Deployment and Software Supply Chain Security
- Errors, Security Logging, and Incident Response
- OWASP Top 10 and Release Verification
Git
Track a project on your computer, record changes, and work on branches before sharing them.
GitHub
Host a Git repository, share branches, and review changes with a team.
Python
Set up Python and understand its syntax, data types, functions, files, and classes.
- Install Python and set up a project
- Variables, data types, and strings
- Conditions, loops, and pattern matching
- Lists, tuples, sets, and dictionaries
- Functions, modules, and type hints
- Files, exceptions, and debugging
- Classes, instances, and Python 3.15
- Names, mutable objects, and copies
- Iterators and generators
- Decorators and reusable wrappers
- Concurrency with async and await
- Dataclasses and typed interfaces
- Testing and logging Python programs
- Reusable modules and project dependencies
NumPy
Work with multidimensional arrays, broadcasting, numerical summaries, and matrices.
- Arrays, shape, and dtype
- Indexing, slices, and masks
- Reshape, transpose, and combine arrays
- Broadcasting, vectorization, and reductions
- Descriptive statistics and random sampling
- Matrix operations and linear systems
- Universal functions and masked calculations
- Sort, rank, and search arrays
- Floating-point accuracy and missing values
- Read, save, and share arrays
pandas
Read, clean, join, and summarize labeled data with Series and DataFrames.
- Series, DataFrames, and indexes
- Read and inspect a CSV
- Select, filter, sort, and assign
- Missing data, data types, and duplicates
- Group, aggregate, and reshape
- Merge and concatenate tables
- Parse dates and group time series
- Reshape between wide and long tables
- Clean text and define categories
- Rolling windows and time zones
- Work with CSV, Excel, Parquet, and SQL
- Read and summarize larger datasets
- pandas API reference
Matplotlib
Choose suitable charts, build figures, and export them for reports or the web.
- Figures, Axes, and the plotting interface
- Choose a chart for the question
- Line charts and bar charts
- Scatter plots, histograms, and box plots
- Labels, scales, legends, and color
- Subplots and constrained layout
- Export charts to files
- Show uncertainty with error bars and bands
- Heatmaps and colorbars
- Annotate points and format ticks
Data Analysis
Define KPIs, check data quality, and turn a raw store sales CSV into a clear finding.
- Define a business question and KPI
- Collect data and record its context
- Initial EDA and data-quality checks
- Clean data and retain evidence
- Analyze trends and reconcile results
- Store Sales Analysis walkthrough
- Measure coverage and test missing-data assumptions
- Sampling, bias, and representative data
- Summarize distributions and investigate outliers
- Estimate uncertainty with confidence intervals
- Hypothesis testing and experiment results
- Correlation, confounding, and practical interpretation
- Build a reproducible analysis report
Machine Learning
Prepare features, train models, evaluate predictions, and avoid data leakage.
- Features, targets, and estimator basics
- Split data and compare with a baseline
- Linear regression and regression metrics
- Classification and confusion matrices
- Preprocessing pipelines and data leakage
- Cross-validation, overfitting, and clustering
- House price prediction walkthrough
- Diagnose models with learning curves
- Feature engineering for numeric and categorical data
- Tune hyperparameters with cross-validation
- Handle imbalanced classes and choose a threshold
- Decision trees, random forests, and boosting
- Reduce dimensions with PCA
- Validate models on time-ordered or grouped data
- Save a model and deploy it for inference