Skip to content

Instantly share code, notes, and snippets.

@mahmoudkhudairi
Created February 7, 2021 09:50
Show Gist options
  • Save mahmoudkhudairi/1427c535576ee6d22dfc73a94584c9cf to your computer and use it in GitHub Desktop.
Save mahmoudkhudairi/1427c535576ee6d22dfc73a94584c9cf to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>201 demo</title>
<!-- Internal Style -->
<style>
p {
color: #f45321;
}
</style>
<!-- not a good practice to have js in the head -->
<script>
// alert('Welcome');
</script>
</head>
<body>
<header>
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="#">About</a></li>
</ul>
</nav>
</header>
<main>
<!-- inline style -->
<h6 style="color: blue">hello world</h6>
<p>this is 201 class</p>
</main>
<footer></footer>
<script>
var userName = prompt('what is your name?');
// let === var
let classNumber = prompt('what is your class number');
console.log('User Name ======>', userName, classNumber);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment