
177 views
Create HTML Page
To create HTML page, a text editor can used to write HTML code. The code should include the necessary elements such as html, head, and body.
Certainly! Here’s a basic template for an HTML page:
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>My HTML Page</title>
</head>
<body>
<header>
<h1>Welcome to My HTML Page</h1>
</header>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<main>
<section>
<h2>About</h2>
<p>This is a simple HTML page.</p>
</section>
<section>
<h2>Services</h2>
<ul>
<li>Web Design</li>
<li>Graphic Design</li>
<li>SEO Optimization</li>
</ul>
</section>
<section>
<h2>Contact</h2>
<form>
<label for="name">Name:</label>
<input type="text" id="name" name="name">
<label for="email">Email:</label>
<input type="email" id="email" name="email">
<input type="submit" value="Submit">
</form>
</section>
</main>
<footer>
<p>© 2023 My HTML Page. All rights reserved.</p>
</footer>
</body>
</html>
In this example, the HTML page consists of the following sections:
- The
<head>
section includes the document’s title and character encoding. - The
<body>
section contains the content of the page. - The
<header>
element represents the header section, which typically contains the page’s title or logo. - The
<nav>
element is used for the navigation menu. - The
<main>
element contains the main content of the page, divided into different<section>
elements. - Each
<section>
element represents a specific section of the page, such as “About,” “Services,” and “Contact.” - The
<footer>
element represents the footer section at the bottom of the page.
Feel free to customize and add more elements, styles, and functionality to this template according to your requirements.