TGViewer
Web Development Web Development @web_dev_bds · 4.43K subscribers
Post #711 565
✅ HTML Basics You Must Know 🧱🌐

HTML (HyperText Markup Language) is the foundation of every web page. It structures content like text, images, links, and forms.

1️⃣ Basic HTML Structure
<!DOCTYPE html>
<html>
  <head>
    <title>My First Page</title>
  </head>
  <body>
    <h1>Hello World!</h1>
    <p>This is a paragraph.</p>
  </body>
</html>


Explanation:
⦁ <!DOCTYPE html> → Declares HTML5
⦁ <html> → Root element
⦁ <head> → Info about the page (title, meta)
⦁ <body> → Visible content

2️⃣ Headings and Paragraphs
<h1>Main Heading</h1>
<h2>Subheading</h2>
<p>This is a paragraph.</p>


3️⃣ Links and Images
<a href="https://google.com">Visit Google</a>  
<img src="image.jpg" alt="Image" width="200">


4️⃣ Lists
<ul>
  <li>HTML</li>
  <li>CSS</li>
</ul>

<ol>
  <li>Step 1</li>
  <li>Step 2</li>
</ol>


5️⃣ Tables
<table border="1">
  <tr>
    <th>Name</th>
    <th>Age</th>
  </tr>
  <tr>
    <td>Alice</td>
    <td>25</td>
  </tr>
</table>


6️⃣ Forms
<form>
  <input type="text" placeholder="Your name">
  <input type="email" placeholder="Your email">
  <button type="submit">Submit</button>
</form>


7️⃣ Div & Span
⦁ <div> → Block-level container
⦁ <span> → Inline container
<div style="background: lightgray;">Box</div>
<span style="color: red;">Text</span>


💡 Practice HTML in a live editor like CodePen or JSFiddle to see instant results!

💬 Tap ❤️ for more!
  • ❤ 2
  • 👏 1
More from @web_dev_bds
  1. Oct 16, 2026📕Random React Tip: If you want to quickly log things from JSX (we've all been there), you…
  2. Oct 15, 2026Websites to Learn Every Technology
  3. Oct 13, 2026Docker vs Kubernetes
  4. Oct 12, 2026Post #1054
  5. Oct 11, 2026CSS Tip Stop centring tooltips with 𝚝𝚛𝚊𝚗𝚜𝚕𝚊𝚝𝚎: -𝟻𝟶%. near the edge of the scree…
  6. Oct 9, 2026JavaScript CheatSheet
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →