Also, as other people (especially those new to coding) might come across this thread I’d strongly suggest having clean and valid HTML in your example, so that they don’t get off on the wrong foot and so it doesn’t spread bad code all across the internet. For example, use a correct doctype:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
(Note that strict
is the only type you’ll ever need if you create new documents)
And despite Dormilich having addressed this, and HTML not being too strict about that, if
you use inline event handlers, for good practice you should write them all lowercase:
. But really, you shouldn’t have them in the HTML in the first place.