Index

HTML

infra

include css file (in <head>)
<link rel="stylesheet" type="text/css" href="mystyle.css">
inline css
<style>
h1 {color:red;}
</style>
include script file
<script type="text/javascript" src="/jquery.js"></script>
inline javascript
<script type="text/javascript">alert('foo');</script>
specifying favicon location
<head><link rel="icon" href="/web/static/favicon.ico"></head>

layout

fieldset with legend
<fieldset><legend>Description</legend></fieldset>

text

ordered list
<ol><li>[value]</li></ol>
unordered list
<ul><li>[value]</li></ul>

forms

html form
<form action="/[path]" method="POST">
multipart form
<form method="POST" class="formtainer" enctype='multipart/form-data'>
input field
<input type="text" name="name" value="Johnny" />
turn off auto complete
<input type="text" autocomplete="off" />
password field
<input name="password" type="password" size="50" />
submit button
<input type="submit" value="go" />
checked radio button
<input type="radio" name="[key]" value="[value]" checked />[label]<br>
unchecked radio button
<input type="radio" name="[key]" value="[value]" />[label]<br>
checked checkbox
<input type="checkbox" checked />
unchecked checkbox
<input type="checkbox" />
textarea
<textarea rows="4" cols="50" />
button with different label and value
<button name="[name]" value="[value]" type="submit">[label]</button>
give input focus on document load
<input type="text" autofocus />

media

embed audio with controls
<audio controls>
	<source src="[/path/to/file.mp3]" type="audio/mpeg">
	Your browser does not support HTML5 audio
</audio>
play audio from javascript
audio = new Audio(url);
audio.play();
audio.pause();
documentation
https://html.spec.whatwg.org/multipage/media.html#audio