Programming Examples
How far can we push HTML and CSS
It turns out that HTML and CSS can be used as programming languages, but only in a very limited capacity. They're certainly not as powerful or robust as general-purpose programming languages, and they definitely shouldn't be used that way either. The following examples serve to prove just how far we can push HTML and CSS. No JavaScript or WebAssembly was used!
Fizz Buzz
Fizz buzz is a group word game for children to teach them about division. Players take turns to count incrementally, replacing any number divisible by three with the word "fizz", and any number divisible by five with the word "buzz".
Sieve of Eratosthenes
In mathematics, the sieve of Eratosthenes is an ancient algorithm for finding all prime numbers up to any given limit.
Boolean Algebra
In mathematics and mathematical logic, Boolean algebra is the branch of algebra in which the values of the variables are the truth values true & false, usually denoted 1 & 0, respectively.
HTML Quine
A quine is a computer program which takes no input and produces a copy of its own source code as its only output. The standard terms for these programs in the computability theory and computer science literature are "self-replicating programs", "self-reproducing programs", and "self-copying programs".