|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8" /> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"/> |
| 6 | + <title>Comprehensive HTML QA Page</title> |
| 7 | +</head> |
| 8 | +<body> |
| 9 | + <header> |
| 10 | + <h1>HTML QA Test Page</h1> |
| 11 | + <nav> |
| 12 | + <ul> |
| 13 | + <li><a href="#text">Text</a></li> |
| 14 | + <li><a href="#lists-tables">Lists & Tables</a></li> |
| 15 | + <li><a href="#media">Media</a></li> |
| 16 | + <li><a href="#code">Code</a></li> |
| 17 | + <li><a href="#form">Forms</a></li> |
| 18 | + </ul> |
| 19 | + </nav> |
| 20 | + </header> |
| 21 | + |
| 22 | + <section id="text"> |
| 23 | + <h2>Text Elements</h2> |
| 24 | + <p>This is a <strong>paragraph</strong> with <em>emphasis</em>, <u>underline</u>, and <code>inline code</code>.</p> |
| 25 | + <blockquote>“This is a blockquote for testing.”</blockquote> |
| 26 | + <hr/> |
| 27 | + </section> |
| 28 | + |
| 29 | + <section id="lists-tables"> |
| 30 | + <h2>Lists & Tables</h2> |
| 31 | + |
| 32 | + <h3>Unordered List</h3> |
| 33 | + <ul> |
| 34 | + <li>Apple</li> |
| 35 | + <li>Banana</li> |
| 36 | + <li>Cherry</li> |
| 37 | + </ul> |
| 38 | + |
| 39 | + <h3>Ordered List</h3> |
| 40 | + <ol> |
| 41 | + <li>Alpha</li> |
| 42 | + <li>Beta</li> |
| 43 | + <li>Gamma</li> |
| 44 | + </ol> |
| 45 | + |
| 46 | + <h3>Table</h3> |
| 47 | + <table border="1"> |
| 48 | + <thead> |
| 49 | + <tr><th>Name</th><th>Role</th></tr> |
| 50 | + </thead> |
| 51 | + <tbody> |
| 52 | + <tr><td>Alice</td><td>Developer</td></tr> |
| 53 | + <tr><td>Bob</td><td>Designer</td></tr> |
| 54 | + </tbody> |
| 55 | + </table> |
| 56 | + <hr/> |
| 57 | + </section> |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + <section id="media"> |
| 62 | + <h2>Images</h2> |
| 63 | + |
| 64 | + <img |
| 65 | + src="https://images.unsplash.com/photo-1518770660439-4636190af475?w=400" |
| 66 | + alt="Person coding on laptop" |
| 67 | + width="300" |
| 68 | + /> |
| 69 | + <br/><br/> |
| 70 | + |
| 71 | + <img |
| 72 | + src="https://images.unsplash.com/photo-1555066931-4365d14bab8c?w=400" |
| 73 | + alt="Office desk with computer" |
| 74 | + width="300" |
| 75 | + /> |
| 76 | + <br/><br/> |
| 77 | + |
| 78 | + <img |
| 79 | + src="https://images.unsplash.com/photo-1504384308090-c894fdcc538d?w=400" |
| 80 | + alt="Coffee and notebook" |
| 81 | + width="300" |
| 82 | + /> |
| 83 | + <hr/> |
| 84 | + </section> |
| 85 | + |
| 86 | + |
| 87 | + <section id="code"> |
| 88 | + <h2>Code Blocks</h2> |
| 89 | + |
| 90 | + <h3>JavaScript</h3> |
| 91 | + <pre><code> |
| 92 | +function greet(name) { |
| 93 | + console.log("Hello, " + name); |
| 94 | +} |
| 95 | +greet("World"); |
| 96 | + </code></pre> |
| 97 | + |
| 98 | + <h3>Python</h3> |
| 99 | + <pre><code> |
| 100 | +def greet(name): |
| 101 | + print(f"Hello, {name}") |
| 102 | + |
| 103 | +greet("World") |
| 104 | + </code></pre> |
| 105 | + |
| 106 | + <h3>HTML</h3> |
| 107 | + <pre><code> |
| 108 | +<div class="container"> |
| 109 | + <p>Hello World</p> |
| 110 | +</div> |
| 111 | + </code></pre> |
| 112 | + <hr/> |
| 113 | + </section> |
| 114 | + |
| 115 | + <section id="form"> |
| 116 | + <h2>Form Elements</h2> |
| 117 | + <form> |
| 118 | + <label for="name">Name:</label> |
| 119 | + <input type="text" id="name" name="name" /><br/><br/> |
| 120 | + |
| 121 | + <label for="email">Email:</label> |
| 122 | + <input type="email" id="email" name="email" /><br/><br/> |
| 123 | + |
| 124 | + <label>Gender:</label> |
| 125 | + <input type="radio" name="gender" value="male" /> Male |
| 126 | + <input type="radio" name="gender" value="female" /> Female<br/><br/> |
| 127 | + |
| 128 | + <label>Interests:</label> |
| 129 | + <input type="checkbox" name="interest" value="code" /> Coding |
| 130 | + <input type="checkbox" name="interest" value="design" /> Design<br/><br/> |
| 131 | + |
| 132 | + <label for="bio">Bio:</label><br/> |
| 133 | + <textarea id="bio" name="bio"></textarea><br/><br/> |
| 134 | + |
| 135 | + <label for="lang">Language:</label> |
| 136 | + <select id="lang" name="lang"> |
| 137 | + <option value="js">JavaScript</option> |
| 138 | + <option value="py">Python</option> |
| 139 | + <option value="ts">TypeScript</option> |
| 140 | + </select><br/><br/> |
| 141 | + |
| 142 | + <button type="submit">Submit</button> |
| 143 | + <input type="reset" value="Reset" /> |
| 144 | + </form> |
| 145 | + </section> |
| 146 | + |
| 147 | + <footer> |
| 148 | + <p>© 2025 HTML QA Page</p> |
| 149 | + </footer> |
| 150 | +</body> |
| 151 | +</html> |
0 commit comments