Introduction to Solidity
Smart contracts for the Ethereum virtual machine.
What Solidity is, why it matters, and how to navigate this track.
Solidity is the language of smart contracts — programs that run on the Ethereum blockchain.
What is Solidity?
Solidity is a statically-typed language that compiles to bytecode for the Ethereum Virtual Machine (EVM).
Its contracts are immutable once deployed and handle real value, so correctness is everything.
Your first example
Here is Solidity saying hello. Read it top to bottom — every line earns its place.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract Hello {
string public greeting = "Hello, world!";
}Deploys a contract exposing a public `greeting` value.
Why learn Solidity?
- The dominant language for Ethereum and EVM chains.
- Smart contracts power DeFi, NFTs, and DAOs.
- A high-stakes domain where careful engineering pays.
Where it is used
- Smart contracts
- DeFi protocols
- NFTs
- On-chain applications
How this track works
Every topic here has four views, switchable with the tabs at the top of each page:
- Learn — the clear, practical walkthrough you are reading now.
- Deep — every detail: edge cases, the full API, and what is really happening.
- Reference — a scannable, no-fluff lookup for when you already know the shape.
- Cheatsheet — the one-page summary, printable, for quick recall.
More like this
HTML Headings
h1 through h6 are the page’s table of contents. Use them for structure, never for size — that’s what CSS is for.
HTML Headings
h1–h6 are instances of HTMLHeadingElement. They take no special attributes — only the global set and ARIA — but there’s real depth in how they form the document outline and what you can do with them from JavaScript.
Liked this one?
Pass it on
Discussion
Be the first to ask
Your questions stay private with the team. We can pin answers to share with everyone.
Sign in to ask a question privately on this tutorial.
Sign inNo pinned answers yet for this tutorial.