Simplest possible examples of HTML, CSS and Javascript:
HTML JavaScript CSS
Switch branches/tags
Nothing to show
Permalink
Failed to load latest commit information.
a Fixed broken links. Mar 23, 2017
appcache Updated licence info Mar 21, 2017
array Updated licence info Mar 21, 2017
audio Removd old audio files May 8, 2017
audiodata Updated licence info Mar 21, 2017
battery Updated licence info Mar 21, 2017
bigimage Updated licence info Mar 21, 2017
br Fixed broken links. Mar 23, 2017
build Cleanup: removed redundant content and moved locations Mar 29, 2017
canplaytype Updated licence info Mar 21, 2017
canvas Updated licence info Mar 21, 2017
ck Updated licence info Mar 21, 2017
cors Updated licence info Mar 21, 2017
css Updated link colour to improve accessibility Jun 13, 2017
cssbackgroundanimation Updated licence info Mar 21, 2017
cssfilters Updated licence info Mar 21, 2017
cssnegativeselector Updated licence info Mar 21, 2017
cssregions Fixed broken links. Mar 23, 2017
csstextindent Updated licence info Mar 21, 2017
csstransition Updated licence info Mar 21, 2017
datalist Updated CSS Mar 23, 2017
dc Updated licence info Mar 21, 2017
details Updated licence info Mar 21, 2017
devicemotion Updated licence info Mar 21, 2017
deviceorientation Updated licence info Mar 21, 2017
dm Fixed broken links. Mar 23, 2017
do Fixed broken links. Mar 23, 2017
eme Updated licence info Mar 21, 2017
eventsource Updated licence info Mar 21, 2017
fetch Updated licence info Mar 21, 2017
filesystem Updated licence info Mar 21, 2017
flexboxcenter Updated licence info Mar 21, 2017
flexboxexpand Updated licence info Mar 21, 2017
flexvideo Updated licence info Mar 21, 2017
fs Updated licence info Mar 21, 2017
fullscreen Updated licence info Mar 21, 2017
geolocation Updated licence info Mar 21, 2017
getusermedia Fixed linting errors Jun 16, 2017
gs Updated licence info Mar 21, 2017
gum Updated licence info Mar 21, 2017
h264 Updated licence info Mar 21, 2017
headtrackr tweaks... Apr 5, 2017
history Updated licence info Mar 21, 2017
i Fixed broken links. Mar 23, 2017
ic Updated licence info Mar 21, 2017
idbwrapper Updated licence info Mar 21, 2017
iframe Updated licence info Mar 21, 2017
imagecapture Updated CSS Mar 23, 2017
images Optimized icon images Jun 21, 2017
indexeddb Updated licence info Mar 21, 2017
inputtypes Updated licence info Mar 21, 2017
install Cleanup: removed redundant content and moved locations Mar 29, 2017
js/lib Cleanup: removed redundant content and moved locations Mar 29, 2017
l Fixed broken links. Mar 23, 2017
localstorage Updated licence info Mar 21, 2017
longvideo Fixed broken links. Mar 23, 2017
lotsofimages Updated licence info Mar 21, 2017
map Fixed broken links. Mar 23, 2017
mediacapture Updated licence info Mar 21, 2017
mediafragments Cleanup: removed redundant content and moved locations Mar 29, 2017
mediaqueries Updated licence info Mar 21, 2017
mediarecorder Cleanup: removed redundant content and moved locations Mar 29, 2017
mq Updated licence info Mar 21, 2017
mr Updated licence info Mar 21, 2017
mse Cleanup: removed redundant content and moved locations Mar 29, 2017
multigum Cleanup: removed redundant content and moved locations Mar 29, 2017
mutationobserver Updated licence info Mar 21, 2017
n Fixed broken links. Mar 23, 2017
navigationtiming Updated licence info Mar 21, 2017
notification Fixed broken links. Mar 23, 2017
nt Fixed broken links. Mar 23, 2017
observe Updated licence info Mar 21, 2017
online Updated licence info Mar 21, 2017
pagevisibility Updated licence info Mar 21, 2017
pc Updated licence info Mar 21, 2017
peerconnection Updated licence info Mar 21, 2017
pictureart Updated licence info Mar 21, 2017
picturetype Updated licence info Mar 21, 2017
pixelsizes Updated licence info Mar 21, 2017
postmessage Cleanup: removed redundant content and moved locations Mar 29, 2017
pr Updated icons May 24, 2017
promise Fixed broken links. Mar 23, 2017
promises Fixed broken links. Mar 23, 2017
queryselector Updated licence info Mar 21, 2017
requestanimationframe Tweaks to promise and request... demos to validate against eslint Mar 21, 2017
requestidlecallback Tweaks to promise and request... demos to validate against eslint Mar 21, 2017
resizedimages Updated licence info Mar 21, 2017
resourcetiming Updated licence info Mar 21, 2017
rt Fixed broken links. Mar 23, 2017
rtcdatachannel update name of global vars in doc May 24, 2017
rtcpeerconnection Fixed WebRTC examples Mar 29, 2017
s Updated simpl.info/s JavaScript to use fetch, etc. Jun 28, 2017
sc Updated licence info Mar 21, 2017
scroll Updated licence info Mar 21, 2017
serviceworker Tweaked serviceworker example Jun 28, 2017
sessionstorage Updated licence info Mar 21, 2017
shaka Updated licence info Mar 21, 2017
shortcuts Fixed broken links. Mar 23, 2017
sizeswvalues Updated licence info Mar 21, 2017
softhyphen Updated licence info Mar 21, 2017
sources Fixed broken links. Mar 23, 2017
srcsetwvalues Updated licence info Mar 21, 2017
srcsetxvalues Updated licence info Mar 21, 2017
stt Updated licence info Mar 21, 2017
svg Updated licence info Mar 21, 2017
sw Updated licence info Mar 21, 2017
t Updated licence info Mar 21, 2017
track Removed local jQuery Mar 29, 2017
tts Updated licence info Mar 21, 2017
ua Fixed broken links. Mar 23, 2017
uc Updated licence info Mar 21, 2017
useragent Cleanup: removed redundant content and moved locations Mar 29, 2017
v Updated licence info Mar 21, 2017
ve Fixed broken links. Mar 23, 2017
vibrate Updated licence info Mar 21, 2017
video tweaks... Apr 5, 2017
videoalpha Cleanup: removed redundant content and moved locations Mar 29, 2017
videomedia Cleanup: removed redundant content and moved locations Mar 29, 2017
wa Updated licence info Mar 21, 2017
webanimations Updated licence info Mar 21, 2017
webaudio Updated licence info Mar 21, 2017
webfonts Updated licence info Mar 21, 2017
webgl Updated licence info Mar 21, 2017
webp Added pr shortcut May 23, 2017
webrtc Updated licence info Mar 21, 2017
webrtcwebaudio Updated licence info Mar 21, 2017
websocket Cleanup: removed redundant content and moved locations Mar 29, 2017
websql Updated licence info Mar 21, 2017
webworkers Updated licence info Mar 21, 2017
ws Updated licence info Mar 21, 2017
xhr Updated licence info Mar 21, 2017
yt Fixed broken links. Mar 23, 2017
.csslintrc Updated licence info Mar 21, 2017
.eslintignore tweaks... Apr 5, 2017
.eslintrc Updated licence info Mar 21, 2017
.gitignore Fixed gum/sources demo Jun 16, 2017
.htaccess_bak Added /mr as attempt at URL shortcut :( Dec 2, 2015
.travis.yml changed to node version Mar 21, 2017
404.html Updated licence info Mar 21, 2017
AUTHORS Added medianews.me link back to index.html Jun 9, 2015
CNAME Updated CNAME Nov 7, 2015
CONTRIBUTING.md Updated licence info Mar 21, 2017
Gruntfile.js Updated licence info Mar 21, 2017
LICENSE Added medianews.me link back to index.html Jun 9, 2015
README.md Fixed broken links. Mar 23, 2017
favicon.ico favicon Aug 15, 2012
foo tweaks... Apr 5, 2017
index.html Updated simpl.info/s JavaScript to use fetch, etc. Jun 28, 2017
manifest.json Updated icons May 24, 2017
package.json tweak Mar 21, 2017
sitemap.xml Server-Sent Events (EventSource) Aug 5, 2013

README.md

Build Status

Check out my new blog post: High performance HTML.

simpl

simpl.info is a website for simplest-possible code examples.

Your contributions and comments are welcome. See CONTRIBUTING.md for more information.

The Developer's Guide for this repo has more information about code style, structure and validation.

A list of resources for working with HTML, CSS and JavaScript is available at bit.ly/webdevres

Analytics

License

Copyright 2017 Google, Inc.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Please note: this is not a Google product.