By FoxGames
HTML stands for HyperText Markup Language. It is the language used to create webpages.
HTML builds the structure of a webpage using tags.
<!DOCTYPE html> <html> <head> <title>My Page</title> </head> <body> Content goes here </body> </html>
Headings go from <h1> (biggest) to <h6> (smallest).
<h1>Main Title</h1> <h2>Section Title</h2> <h3>Subsection</h3>
<p>This is a paragraph.</p>
<br> ← line break <hr> ← horizontal line
<b>Bold</b> <strong>Important Bold</strong> <i>Italic</i> <em>Emphasized</em> <u>Underline</u> <small>Small text</small>
<a href="https://example.com">Click Me</a>
<img src="https://example.com/image.png" alt="Description">
<ul> <li>Item 1</li> <li>Item 2</li> </ul>
<ol> <li>First</li> <li>Second</li> </ol>
Used for grouping content.
<div>Block element</div> <span>Inline element</span>
<table>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>John</td>
<td>12</td>
</tr>
</table>
<form> <input type="text" placeholder="Your name"> <input type="submit"> </form>
<button>Click Me</button>
<!-- This is a comment -->
These tags describe meaning:
<header> <nav> <main> <section> <article> <footer>
<img src="image.png"> <audio controls> <source src="sound.mp3" type="audio/mpeg"> </audio> <video controls> <source src="video.mp4" type="video/mp4"> </video>
< = < > = > & = & " = "
HTML is the foundation of every website. Once you know HTML, you can learn CSS and JavaScript to make your pages beautiful and interactive.