
133 views
Simple HTML Pages
Sure! Here are examples of simple HTML pages that you can use as a starting point:
- Basic HTML Page:
HTML
<!DOCTYPE html>
<html>
<head>
<title>My Simple HTML Page</title>
</head>
<body>
<h1>Welcome to My Simple HTML Page</h1>
<p>This is a basic HTML page.</p>
</body>
</html>
- HTML Page with CSS Styling:
HTML
<!DOCTYPE html>
<html>
<head>
<title>My Stylish HTML Page</title>
<style>
body {
background-color: lightgray;
font-family: Arial, sans-serif;
}
h1 {
color: navy;
text-align: center;
}
p {
color: green;
font-size: 18px;
}
</style>
</head>
<body>
<h1>Welcome to My Stylish HTML Page</h1>
<p>This page is styled with CSS.</p>
</body>
</html>
- HTML Page with External CSS File:
Create a new file named “styles.css” and save it in the same directory as your HTML file. Then, link the external CSS file to your HTML page using the<link>
tag.
HTML File (index.html):
HTML
<!DOCTYPE html>
<html>
<head>
<title>My HTML Page with External CSS</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Welcome to My HTML Page with External CSS</h1>
<p>This page uses an external CSS file for styling.</p>
</body>
</html>
CSS File (styles.css):
CSS
body {
background-color: lightblue;
font-family: Verdana, sans-serif;
}
h1 {
color: darkblue;
text-align: center;
}
p {
color: darkgreen;
font-size: 16px;
}
Feel free to modify and customize these examples to suit your needs. Remember to save the HTML file with a “.html” extension and the CSS file with a “.css” extension.