Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
HTML5
Last updated at 8:36 pm UTC on 21 October 2020
Living Standard: https://html.spec.whatwg.org/

Simple correct HTML5 document


 <!DOCTYPE html>
 <html>
 <head>
 <title>The title of the document</title>
 </head>
 
 <body>
 The text ...
 </body>
 
 </html> 
 

http://www.w3.org/TR/html5/semantics.html#semantics

2011-the-year-html5-won
"HTML5 is a semantic markup language."

"The real power of HTML5 is in CSS3, JavaScript and many of the ancillary technologies, such as WebGL, WebSockets and so on, that surround it. At long last we had not one but two standard ways of doing graphics - SVG for vector graphics and Canvas for bitmaps. JavaScript, now seen an absolutely essential language, was improved so that it ran fast. Without a good JavaScript implementation the whole HTML5 enterprise is just silly."
https://html5please.com/



<?xml version="1.0" encoding="UTF-8"?>
<html xml:lang="en" lang="en">
<head>

<style><![CDATA[

h1   {color: red;
     }

]]>
</style>



</head>


<body>

<h1>Beverages</h1>
<ul id="beverages">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
<span id="note"></span>


<script>
<![CDATA[


// JavaScript statements
// This will be evaluated after the document has been loaded
// making it possible to easily access DOM elements.

var list = document.getElementById("beverages");
var listlength = list.children.length;
console.log(listlength);
var note = document.getElementById("note");
console.dir(note);
note.textContent = listlength + " types of beverages";
 

]]>
</script>


</body>
</html>