Skip to content

Instantly share code, notes, and snippets.

@mikedotexe
Last active November 9, 2019 16:41
Show Gist options
  • Save mikedotexe/bb4cdf2fe6bd1d5ede68556d699f1dd1 to your computer and use it in GitHub Desktop.
Save mikedotexe/bb4cdf2fe6bd1d5ede68556d699f1dd1 to your computer and use it in GitHub Desktop.
Basic HTML CSS for first interactions
<html>
<head>
<title>Hello ChickTech 2019</title>
<style>
#top {
background-color: lightblue;
}
body p {
color: gray;
}
.box {
padding: 10px;
width: 50%;
}
</style>
<script>
function helloChicktech() {
alert("Whoa I made this thing pop up.");
}
</script>
</head>
<body>
<div id="top">
<h1>This is big, huh</h1>
<h2>Kinda smaller</h2>
<p>Regular paragraph stuff, blah blah blah</p>
<p style="color:magenta">This is inline-CSS</p>
</div>
<div class="box"><img src="https://chicktech.org/assets/logos/logotype.svg" /></div>
<div class="box" style="background-color:#eb5367;color:white;">Second "div" here</div>
<div class="box">Last box here</div>
<button onclick="helloChicktech()">I am a button and I want you to click me</button>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment