Sure! I can generate a large chunk of random HTML code for testing purposes. Since you requested about 2,000 tokens, I'll create a sizable HTML snippet with various elements, attributes, and nested structures to simulate a complex page.
Here’s a large random HTML code sample:
html Copy code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Random Large HTML Test</title>
<style>
body { font-family: Arial, sans-serif; background: #f0f0f0; margin: 0; padding: 0; }
header, footer { background: #333; color: white; padding: 1em; text-align: center; }
nav ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; }
nav ul li { margin: 0 1em; }
nav ul li a { color: white; text-decoration: none; }
section { padding: 2em; background: white; margin: 1em auto; max-width: 960px; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
article { margin-bottom: 2em; }
h1, h2, h3 { color: #333; }
table { width: 100%; border-collapse: collapse; margin-top: 1em; }
th, td { border: 1px solid #ccc; padding: 0.5em; text-align: left; }
.highlight { background: #ff0; }
.btn { display: inline-block; padding: 0.5em 1em; background: #007BFF; color: white; border-radius: 4px; text-decoration: none; }
.btn:hover { background: #0056b3; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; }
.card { background: #fafafa; padding: 1em; border: 1px solid #ddd; border-radius: 4px; }
.hidden { display: none; }
</style>
</head>
<body>
<header>
<h1>Random Large HTML Test Page</h1>
<nav>
<ul>
<li><a href="#section1">Section One</a></li>
<li><a href="#section2">Section Two</a></li>
<li><a href="#section3">Section Three</a></li>
<li><a href="#section4">Section Four</a></li>
</ul>
</nav>
</header>
<section id="section1">
<article>
<h2>Introduction</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vehicula, justo at dapibus cursus, lorem erat cursus lorem, nec tincidunt lorem lorem nec lorem.</p>
<p>Phasellus <strong>vulputate</strong> sapien nec <em>turpis</em> facilisis, a <a href="https://example.com" target="_blank" rel="noopener noreferrer">link</a> to somewhere.</p>
<ul>
<li>First item with <span class="highlight">highlight</span></li>
<li>Second item</li>
<li>Third item</li>
</ul>
</article>
<article>
<h2>Data Table</h2>
<table>
<thead>
<tr>
<th>ID</th><th>Name</th><th>Value</th><th>Status</th>
</tr>
</thead>
<tbody>
<tr><td>1</td><td>Alpha</td><td>123</td><td>Active</td></tr>
<tr><td>2</td><td>Beta</td><td>456</td><td>Inactive</td></tr>
<tr><td>3</td><td>Gamma</td><td>789</td><td>Pending</td></tr>
<tr><td>4</td><td>Delta</td><td>1011</td><td>Active</td></tr>
<tr><td>5</td><td>Epsilon</td><td>1213</td><td>Inactive</td></tr>
</tbody>
</table>
</article>
</section>
<section id="section2">
<article>
<h2>Grid Layout</h2>
<div class="grid">
<div class="card">
<h3>Card One</h3>
<p>Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn">Go somewhere</a>
</div>
<div class="card">
<h3>Card Two</h3>
<p>Another example text with <strong>bold</strong> and <em>italic</em> formatting.</p>
<a href="#" class="btn">Go somewhere</a>
</div>
<div class="card">
<h3>Card Three</h3>
<p>More content here with a list:</p>
<ol>
<li>First ordered item</li>
<li>Second ordered item</li>
<li>Third ordered item</li>
</ol>
<a href="#" class="btn">Go somewhere</a>
</div>
</div>
</article>
</section>
<section id="section3">
<article>
<h2>Form Example</h2>
<form action="/submit" method="POST">
<label for="name">Name:</label><br />
<input type="text" id="name" name="name" placeholder="Your name" required /><br /><br />
<label for="email">Email:</label><br />
<input type="email" id="email" name="email" placeholder="you@example.com" required /><br /><br />
<label for="age">Age:</label><br />
<input type="number" id="age" name="age" min="0" max="120" /><br /><br />
<label for="color">Favorite Color:</label><br />
<input type="color" id="color" name="color" value="#ff0000" /><br /><br />
<label for="birthday">Birthday:</label><br />
<input type="date" id="birthday" name="birthday" /><br /><br />
<fieldset>
<legend>Choose your interests:</legend>
<input type="checkbox" id="interest1" name="interests" value="coding" />
<label for="interest1">Coding</label><br />
<input type="checkbox" id="interest2" name="interests" value="music" />
<label for="interest2">Music</label><br />
<input type="checkbox" id="interest3" name="interests" value="sports" />
<label for="interest3">Sports</label><br />
</fieldset><br />
<label for="country">Country:</label><br />
<select id="country" name="country">
<option value="">Select...</option>
<option value="us">United States</option>
<option value="ca">Canada</option>
<option value="uk">United Kingdom</option>
<option value="au">Australia</option>
</select><br /><br />
<button type="submit" class="btn">Submit</button>
</form>
</article>
</section>
<section id="section4">
<article>
<h2>Multimedia and Interactive Elements</h2>
<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4" />
Your browser does not support the video tag.
</video>
<audio controls>
<source src="audio.mp3" type="audio/mpeg" />
Your browser does not support the audio element.
</audio>
<details>
<summary>More info</summary>
<p>This is additional information hidden by default.</p>
</details>
<progress value="70" max="100"></progress>
<meter value="0.6">60%</meter>
</article>
</section>
<footer>
<p>© 2024 Random Large HTML Test. All rights reserved.</p>
</footer>
</body>
</html>
This HTML includes:
Header with navigation
Multiple sections with articles
Lists, tables, forms, multimedia elements
CSS styles embedded in the <style> tag
Various HTML5 semantic elements
If you want me to generate even more or a different style of HTML, just let me know!