Update index.html
Browse files12345678910111213141516171819<!doctype html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><title>My static Space</title><link rel="stylesheet" href="style.css" /></head><body><div class="card"><h1>Welcome to your static Space!</h1><p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p><p>Also don't forget to check the<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.</p></div></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>HTML Examples - Everything</title><style>body {margin: 0;background: #111;color: #eee;font-family: Arial, sans-serif;line-height: 1.6;}header {background: #222;padding: 40px 20px;text-align: center;border-bottom: 2px solid #444;}header h1 {margin: 0;font-size: 42px;}nav {background: #181818;padding: 15px;text-align: center;position: sticky;top: 0;z-index: 10;border-bottom: 1px solid #333;}nav a {color: #66ccff;margin: 0 10px;text-decoration: none;}nav a:hover {text-decoration: underline;}main {max-width: 1100px;margin: auto;padding: 30px 20px;}section {background: #1c1c1c;margin: 25px 0;padding: 25px;border-radius: 12px;border: 1px solid #333;}section h2 {color: #66ccff;margin-top: 0;}.card {background: #252525;padding: 20px;margin: 15px 0;border-radius: 10px;border: 1px solid #444;}button {padding: 10px 18px;background: #333;color: white;border: 1px solid #666;border-radius: 6px;cursor: pointer;}button:hover {background: #444;}input,textarea,select {background: #111;color: white;border: 1px solid #555;padding: 8px;border-radius: 5px;margin: 4px;}textarea {width: 90%;max-width: 600px;}table {border-collapse: collapse;width: 100%;}th,td {border: 1px solid #555;padding: 10px;text-align: left;}th {background: #333;}img {max-width: 100%;}.gallery {display: flex;gap: 15px;flex-wrap: wrap;}.gallery img {width: 200px;height: 140px;object-fit: cover;border-radius: 8px;}.center {text-align: center;}pre {background: #080808;padding: 20px;overflow-x: auto;border-radius: 8px;}code {color: #ddd;}footer {background: #222;text-align: center;padding: 40px;margin-top: 40px;}.big {font-size: 30px;}</style></head><body><header><h1>HTML Examples</h1><p>One giant HTML file containing lots of examples</p></header><nav><a href="#headings">Headings</a><a href="#text">Text</a><a href="#links">Links</a><a href="#images">Images</a><a href="#lists">Lists</a><a href="#forms">Forms</a><a href="#tables">Tables</a><a href="#media">Media</a><a href="#javascript">JavaScript</a></nav><main><!-- ========================================= --><!-- BASIC HTML --><!-- ========================================= --><section><h2>1. Basic HTML</h2><p>This entire webpage is an HTML document.</p><p>HTML stands for<strong>HyperText Markup Language</strong>.</p></section><!-- ========================================= --><!-- HEADINGS --><!-- ========================================= --><section id="headings"><h2>2. Headings</h2><h1>Heading 1</h1><h2>Heading 2</h2><h3>Heading 3</h3><h4>Heading 4</h4><h5>Heading 5</h5><h6>Heading 6</h6></section><!-- ========================================= --><!-- TEXT --><!-- ========================================= --><section id="text"><h2>3. Text Formatting</h2><p>This is a normal paragraph.</p><p><strong>Bold text</strong></p><p><em>Italic text</em></p><p><u>Underlined text</u></p><p><mark>Highlighted text</mark></p><p><small>Small text</small></p><p><del>Deleted text</del></p><p><ins>Inserted text</ins></p><p>Water: H<sub>2</sub>O</p><p>Mathematics: x<sup>2</sup></p><p>This is<br>a line break.</p><hr><p>Text after a horizontal line.</p></section><!-- ========================================= --><!-- LINKS --><!-- ========================================= --><section id="links"><h2>4. Links</h2><p><a href="https://example.com">Visit Example</a></p><p><ahref="https://example.com"target="_blank">Open Example in a new tab</a></p><p><a href="mailto:test@example.com">Send an email</a></p><p><a href="#forms">Jump to the forms section</a></p></section><!-- ========================================= --><!-- IMAGES --><!-- ========================================= --><section id="images"><h2>5. Images</h2><p>Example image:</p><imgsrc="https://placehold.co/400x250"alt="Placeholder image"width="400"><p>Images can have alt text, dimensions, borders,links, and more.</p></section><!-- ========================================= --><!-- LISTS --><!-- ========================================= --><section id="lists"><h2>6. Lists</h2><h3>Unordered List</h3><ul><li>Apple</li><li>Banana</li><li>Orange</li><li>Grape</li></ul><h3>Ordered List</h3><ol><li>Turn on computer</li><li>Open browser</li><li>Visit website</li></ol><h3>Nested List</h3><ul><li>Linux<ul><li>Arch</li><li>Debian</li><li>Manjaro</li><li>Ubuntu</li></ul></li><li>Windows<ul><li>Windows 7</li><li>Windows 8</li><li>Windows 10</li><li>Windows 11</li></ul></li><li>macOS</li></ul></section><!-- ========================================= --><!-- BUTTONS --><!-- ========================================= --><section><h2>7. Buttons</h2><button>Normal Button</button><button onclick="alert('Hello from JavaScript!')">Click Me</button><button onclick="changeMessage()">Change Message</button><p id="message">This message can be changed.</p></section><!-- ========================================= --><!-- FORMS --><!-- ========================================= --><section id="forms"><h2>8. Forms</h2><form onsubmit="return submitForm(event)"><label for="name">Name:</label><inputid="name"name="name"type="text"placeholder="Enter your name"><br><br><label for="password">Password:</label><inputid="password"name="password"type="password"placeholder="Password"><br><br><label for="email">Email:</label><inputid="email"name="email"type="email"placeholder="you@example.com"><br><br><button type="submit">Submit</button></form></section><!-- ========================================= --><!-- INPUT TYPES --><!-- ========================================= --><section><h2>9. Input Types</h2><p><label>Text:</label><input type="text"></p><p><label>Password:</label><input type="password"></p><p><label>Email:</label><input type="email"></p><p><label>Number:</label><input type="number"></p><p><label>Date:</label><input type="date"></p><p><label>Time:</label><input type="time"></p><p><label>Color:</label><input type="color"></p><p><label>File:</label><input type="file"></p><p><label><input type="checkbox">Checkbox</label></p><p><label><inputtype="radio"name="radio">Radio option 1</label><label><inputtype="radio"name="radio">Radio option 2</label></p><p><label>Range:</label><input type="range"></p><p><label>Search:</label><input type="search"></p><p><label>URL:</label><input type="url"></p></section><!-- ========================================= --><!-- TEXTAREA --><!-- ========================================= --><section><h2>10. Text Area</h2><textarearows="10"cols="50"placeholder="Type something here..."></textarea></section><!-- ========================================= --><!-- SELECT --><!-- ========================================= --><section><h2>11. Dropdown Menu</h2><label for="os">Choose an operating system:</label><select id="os"><option>Linux</option><option>Windows</option><option>macOS</option><option>FreeBSD</option><option>Other</option></select></section><!-- ========================================= --><!-- TABLE --><!-- ========================================= --><section id="tables"><h2>12. Table</h2><table><tr><th>Name</th><th>Age</th><th>Operating System</th></tr><tr><td>Alice</td><td>25</td><td>Linux</td></tr><tr><td>Bob</td><td>30</td><td>Windows</td></tr><tr><td>Charlie</td><td>22</td><td>macOS</td></tr></table></section><!-- ========================================= --><!-- CARDS --><!-- ========================================= --><section><h2>13. Cards</h2><div class="card"><h3>My Computer</h3><p>Ryzen 5 CPU</p><p>8 GB RAM</p><p>512 GB SSD</p><button>View Details</button></div><div class="card"><h3>Another Computer</h3><p>Intel CPU</p><p>16 GB RAM</p><p>1 TB SSD</p><button>View Details</button></div></section><!-- ========================================= --><!-- SEMANTIC HTML --><!-- ========================================= --><section><h2>14. Semantic HTML</h2><article class="card"><header><h3>Example Article</h3></header><p>This demonstrates semantic elementssuch as article, header, section, and footer.</p><footer><small>Article footer</small></footer></article></section><!-- ========================================= --><!-- DETAILS --><!-- ========================================= --><section><h2>15. Expandable Content</h2><details><summary>Click to expand</summary><p>This content was hidden until youclicked the summary.</p></details></section><!-- ========================================= --><!-- MEDIA --><!-- ========================================= --><section id="media"><h2>16. Video</h2><videowidth="640"controls><sourcesrc="video.mp4"type="video/mp4">Your browser does not support video.</video></section><section><h2>17. Audio</h2><audio controls><sourcesrc="music.mp3"type="audio/mpeg">Your browser does not support audio.</audio></section><!-- ========================================= --><!-- IFRAME --><!-- ========================================= --><section><h2>18. IFrame</h2><iframewidth="560"height="315"src="https://www.youtube.com/embed/VIDEO_ID"title="Example video"allowfullscreen></iframe></section><!-- ========================================= --><!-- PROGRESS --><!-- ========================================= --><section><h2>19. Progress Bar</h2><label for="progress">Progress:</label><progressid="progress"value="70"max="100">70%</progress><p>70% complete</p></section><!-- ========================================= --><!-- CODE --><!-- ========================================= --><section><h2>20. Code</h2><pre><code>#include <stdio.h>int main() {printf("Hello, world!");return 0;}</code></pre></section><!-- ========================================= --><!-- IMAGE GALLERY --><!-- ========================================= --><section><h2>21. Image Gallery</h2><div class="gallery"><imgsrc="https://placehold.co/400x300?text=Image+1"alt="Image 1"><imgsrc="https://placehold.co/400x300?text=Image+2"alt="Image 2"><imgsrc="https://placehold.co/400x300?text=Image+3"alt="Image 3"><imgsrc="https://placehold.co/400x300?text=Image+4"alt="Image 4"></div></section><!-- ========================================= --><!-- LOGIN --><!-- ========================================= --><section><h2>22. Login Form</h2><form onsubmit="login(event)"><label for="loginUsername">Username:</label><inputid="loginUsername"type="text"required><br><br><label for="loginPassword">Password:</label><inputid="loginPassword"type="password"required><br><br><button type="submit">Log In</button></form><p id="loginResult"></p></section><!-- ========================================= --><!-- JAVASCRIPT --><!-- ========================================= --><section id="javascript"><h2>23. JavaScript Examples</h2><button onclick="showTime()">Show Current Time</button><p id="clock">Click the button.</p><button onclick="randomNumber()">Generate Random Number</button><p id="random">No number yet.</p><button onclick="toggleText()">Toggle Text</button><p id="toggle">π Hello! You can hide me.</p></section><!-- ========================================= --><!-- FULL MINI SITE --><!-- ========================================= --><section><h2>24. Mini Website Example</h2><div class="card"><header><h2>My Website</h2><p>Welcome!</p></header><nav><a href="#">Home</a><a href="#">Projects</a><a href="#">About</a></nav><main><h3>My Projects</h3><div class="card"><h4>Project One</h4><p>This is my first project.</p><button>Learn More</button></div><div class="card"><h4>Project Two</h4><p>This is my second project.</p><button>Learn More</button></div></main><footer>Mini website footer</footer></div></section><!-- ========================================= --><!-- EXTRA HTML ELEMENTS --><!-- ========================================= --><section><h2>25. More HTML Elements</h2><p><abbr title="HyperText Markup Language">HTML</abbr></p><blockquote>This is a block quotation.</blockquote><q>This is an inline quotation.</q><p>Keyboard:<kbd>Ctrl</kbd>+<kbd>C</kbd></p><p>Variable:<var>x</var></p><p>Output:<samp>Hello World</samp></p><address>Example address<br>Example City</address><p><time datetime="2026-08-25">August 25, 2026</time></p></section><!-- ========================================= --><!-- FINAL --><!-- ========================================= --><section class="center"><h2 class="big">π That's a LOT of HTML!</h2><p>All of these examples are containedinside this one HTML file.</p><button onclick="alert('You reached the end! π')">Finish</button></section></main><footer><p>HTML Examples β’ 2026</p><p>Made with HTML, CSS, and JavaScript.</p></footer><!-- ========================================= --><!-- JAVASCRIPT --><!-- ========================================= --><script>function changeMessage() {document.getElementById("message").textContent ="π The message changed!";}function submitForm(event) {event.preventDefault();alert("Form submitted!");return false;}function login(event) {event.preventDefault();const username =document.getElementById("loginUsername").value;document.getElementById("loginResult").textContent ="Welcome, " + username + "! π";}function showTime() {const now = new Date();document.getElementById("clock").textContent =now.toString();}function randomNumber() {const number =Math.floor(Math.random() * 100) + 1;document.getElementById("random").textContent ="Random number: " + number;}function toggleText() {const element =document.getElementById("toggle");if (element.style.display === "none") {element.style.display = "block";} else {element.style.display = "none";}}</script></body></html>
index.html+1116-19