scrimba
HTML5 | Web development Bootcamp
Web development 30 Days Course - #HTML5 #14
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Web development 30 Days Course - #HTML5 #14
AboutCommentsNotes
Web development 30 Days Course - #HTML5 #14
Expand for more info
index.html
run
preview
console
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML5 Learnings</title>
<link rel="stylesheet" href="index.css" >
<script type="text/javascript">
// Check if the localStorage object exists
if(localStorage){
// Store data
localStorage.setItem("first_name", "Peter");

// Retrieve data
alert("Hi, " + localStorage.getItem("first_name"));
} else{
alert("Sorry, your browser do not support local storage.");
}
</script>
</head>
<body>
<div class="header"> HTML 5 Features </div>

</body>
</html>
Console
index.html
-2:35