HTML 8 : Full HTML Web Page with All Common Elements
Full HTML Web Page with All Common Elements
ALL major HTML form and page elements typically found in modern web pages. This example includes:
-
Headings
-
Paragraphs
-
Line breaks
-
Horizontal lines
-
Images
-
Links
-
Lists (ordered and unordered)
-
Tables
-
Form elements (text box, password, radio, checkbox, dropdown, textarea, button)
-
Semantic HTML (header, nav, footer, article, section)
๐ Full HTML Web Page with All Common Elements
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Complete HTML Web Page Elements</title>
</head>
<body>
<!-- Header -->
<header>
<h1>Welcome to My HTML Demo Page</h1>
<p>This page shows all the basic HTML elements used in a typical website.</p>
</header>
<!-- Navigation Menu -->
<nav>
<a href="#home">Home</a> |
<a href="#about">About</a> |
<a href="#form">Form</a> |
<a href="#contact">Contact</a>
</nav>
<hr>
<!-- Headings -->
<section id="home">
<h1>Main Heading (h1)</h1>
<h2>Sub Heading (h2)</h2>
<h3>Section Title (h3)</h3>
<h4>Smaller Title (h4)</h4>
<h5>Sub-sub Heading (h5)</h5>
<h6>Tiny Title (h6)</h6>
</section>
<hr>
<!-- Text formatting -->
<section>
<p>This is a <b>bold</b>, <i>italic</i>, and <u>underlined</u> text with <mark>highlight</mark>.</p>
<p>This text uses <small>small</small>, <strong>strong</strong>, and <em>emphasized</em> styles.</p>
<p>This is a new paragraph.<br>This line breaks here.</p>
</section>
<hr>
<!-- Image -->
<section>
<h2>Image Example</h2>
<img src="https://via.placeholder.com/150" alt="Placeholder Image" width="150">
</section>
<hr>
<!-- Lists -->
<section>
<h2>Lists</h2>
<h3>Unordered List:</h3>
<ul>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ul>
<h3>Ordered List:</h3>
<ol>
<li>Step 1</li>
<li>Step 2</li>
<li>Step 3</li>
</ol>
</section>
<hr>
<!-- Table -->
<section>
<h2>Table Example</h2>
<table border="1">
<tr>
<th>Name</th>
<th>Email</th>
<th>Country</th>
</tr>
<tr>
<td>John</td>
<td>john@example.com</td>
<td>USA</td>
</tr>
<tr>
<td>Priya</td>
<td>priya@example.com</td>
<td>India</td>
</tr>
</table>
</section>
<hr>
<!-- Form Elements -->
<section id="form">
<h2>Form Elements</h2>
<form>
<label for="fullname">Full Name:</label><br>
<input type="text" id="fullname" name="fullname"><br><br>
<label for="email">Email:</label><br>
<input type="email" id="email" name="email"><br><br>
<label for="password">Password:</label><br>
<input type="password" id="password" name="password"><br><br>
<label>Gender:</label><br>
<input type="radio" name="gender" value="male"> Male
<input type="radio" name="gender" value="female"> Female<br><br>
<label>Skills:</label><br>
<input type="checkbox" name="skills" value="html"> HTML
<input type="checkbox" name="skills" value="css"> CSS
<input type="checkbox" name="skills" value="js"> JavaScript<br><br>
<label for="country">Select Country:</label><br>
<select id="country" name="country">
<option value="us">USA</option>
<option value="in">India</option>
<option value="uk">UK</option>
</select><br><br>
<label for="bio">Bio:</label><br>
<textarea id="bio" name="bio" rows="5" cols="40"></textarea><br><br>
<button type="submit">Submit</button>
<button type="reset">Reset</button>
</form>
</section>
<hr>
<!-- Footer -->
<footer>
<p>© 2025 My Website. All rights reserved.</p>
</footer>
</body>
</html>
๐ Why This Page Is Useful for Selenium?
This page contains real, interactable HTML elements which Selenium can:
-
Click buttons
-
Enter text into inputs
-
Select from dropdowns
-
Click checkboxes and radio buttons
-
Extract text from tables and paragraphs
You can use this as a practice page for writing Selenium automation scripts.
Comments
Post a Comment