Skip to content

Instantly share code, notes, and snippets.

@ericwastaken
Last active August 24, 2025 16:12
Show Gist options
  • Save ericwastaken/515c9c529655f9e12753a48a0df7ca6b to your computer and use it in GitHub Desktop.
Save ericwastaken/515c9c529655f9e12753a48a0df7ca6b to your computer and use it in GitHub Desktop.
Hello World doesn't have to be ugly! This is a simple self-contained HTML "Hello Universe" with some style.
<!DOCTYPE html>
<html lang="en">
<head>
<!-- ****************************************************************** -->
<!-- See this live at https://hello-universe-by-ericwastaken.replit.app -->
<!-- ****************************************************************** -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hello Universe</title>
<style>
/* Reset some default browser styles */
body, h1, p {
margin: 0;
padding: 0;
}
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: linear-gradient(135deg, #4e54c8, #8f94fb);
color: #ffffff;
text-align: center;
margin: 0;
}
.container {
max-width: 600px;
padding: 20px;
background: rgba(255, 255, 255, 0.1);
border-radius: 15px;
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
h1 {
font-size: 2.5rem;
margin-bottom: 10px;
}
p {
font-size: 1.2rem;
}
a {
display: inline-block;
margin-top: 20px;
text-decoration: none;
color: #4e54c8;
background: #ffffff;
padding: 10px 20px;
border-radius: 5px;
font-weight: bold;
transition: background 0.3s, color 0.3s;
}
a:hover {
background: #4e54c8;
color: #ffffff;
}
</style>
</head>
<body>
<div class="container">
<h1>Hello, Universe!</h1>
<p>Welcome to your beautifully designed, self-contained HTML page.</p>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment