Hey fellow bloggers! Whether you’re tweaking your WordPress theme, customizing a Ghost site, or building a simple static page with Jekyll, knowing a bit of HTML can save hours of frustration and open creative doors. This guide skips the textbook fluff and focuses on practical HTML you’ll actually use every week. No prior coding required—just copy, paste, and tweak.
Why Bother Learning HTML as a Blogger?
- Fix broken layouts without waiting for a developer.
- Add custom elements (like styled quote boxes or download buttons) that themes don’t offer.
- Improve SEO with proper semantic structure.
- Embed content cleanly (videos, tweets, newsletters) without messy plugins.
Let’s dive into the 10 most useful HTML patterns for bloggers.
1. The Basic Structure Every Page Needs
html
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>Your Blog Post Title</title>
</head>
<body>
<!– Your content goes here –>
</body>
</html>
Pro tip: Most platforms (WordPress, Medium) handle this for you, but knowing it helps when editing HTML blocks or custom templates.
2. Headings That Google Loves (and Readers Too)
Use headings in order—never skip levels for styling.
html
<h1>Main Post Title</h1>
<h2>Section Heading</h2>
<h3>Sub-section</h3>
Why? Search engines use <h1>–<h6> to understand your content hierarchy. Bonus: screen readers rely on them.
3. Paragraphs & Line Breaks
html
<p>This is a paragraph. Great for body text.</p>
<br>
This text appears on a new line (but same paragraph).
Tip: Use <br> sparingly—it’s like hitting Enter in a Word doc. Better to use paragraphs or CSS margins.
4. Links That Actually Work (and Open in New Tabs)
html
<a href=”https://yoursite.com/guide” target=”_blank” rel=”noopener”>
Download my free guide
</a>
- target=”_blank” → opens in new tab
- rel=”noopener” → security best practice
5. Images That Load Fast & Look Good
html
<img src=”coffee.jpg” alt=”Steaming cup of coffee on a wooden table” width=”800″ height=”600″>
Alt text is crucial for:
- SEO
- Accessibility (screen readers)
- What shows if the image fails to load
Bonus: Add loading=”lazy” for faster page loads:
html
<img src=”coffee.jpg” alt=”…” loading=”lazy”>
6. Blockquotes for Pull Quotes (That Stand Out)
html
<blockquote cite=”https://example.com”>
<p>”The best blogs solve real problems with personality.”</p>
<footer>— Some Wise Blogger</footer>
</blockquote>
Tip: Style with CSS later to make it pop.
7. Lists (Because Bloggers Love Lists)
Ordered list (numbers):
html
<ol>
<li>Wake up</li>
<li>Write 500 words</li>
<li>Publish</li>
</ol>
Unordered list (bullets):
html
<ul>
<li>Coffee</li>
<li>Laptop</li>
<li>Zero distractions</li>
</ul>
8. Buttons That Beg to Be Clicked
html
<a href=”/subscribe” class=”button”>Join 10,000+ Readers</a>
Or a real button (for forms):
html
<button onclick=”alert(‘Subscribed!’)”>Subscribe Now</button>
Style later with CSS (we’ll cover a tiny bit below).
9. Embedding Videos, Tweets, and More
YouTube video (responsive):
html
<div class=”video-wrapper”>
<iframe src=”https://www.youtube.com/embed/ABC123″ frameborder=”0″ allowfullscreen></iframe>
</div>
Twitter/X embed:
html
<blockquote class=”twitter-tweet”>
<p>Just launched my new course!</p>
<a href=”https://twitter.com/yourhandle/status/123456789″>Link</a>
</blockquote>
<script async src=”https://platform.twitter.com/widgets.js”></script>
10. Simple Tables (for Comparisons)
html
<table>
<thead>
<tr>
<th>Plan</th>
<th>Price</th>
<th>Posts/mo</th>
</tr>
</thead>
<tbody>
<tr>
<td>Free</td>
<td>$0</td>
<td>4</td>
</tr>
<tr>
<td>Pro</td>
<td>$9</td>
<td>Unlimited</td>
</tr>
</tbody>
</table>
Quick CSS to Make It Pretty (Paste in Custom HTML)
Add this inside <style> tags in your post or theme:
html
<style>
.button {
background: #007bff;
color: white;
padding: 12px 24px;
text-decoration: none;
border-radius: 6px;
display: inline-block;
}
.button:hover { background: #0056b3; }
.video-wrapper {
position: relative;
padding-bottom: 56.25%;
height: 0;
}
.video-wrapper iframe {
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
}
</style>
Tools Every Blogger Needs
| Tool | Use |
| CodePen | Test HTML/CSS live |
| Can I Use | Check browser support |
| Browser Dev Tools (F12) | Inspect and edit HTML on any site |
| HTML Validator | Catch errors |
Your 5-Minute Action Plan
- Open your last blog post in the editor.
- Find a paragraph and wrap it in <p>…</p>.
- Add a pull quote using <blockquote>.
- Turn one link into a button with the class button.
- Add the CSS snippet to your theme’s custom CSS (or a HTML block).
Done? You just leveled up.
Final Thought
HTML isn’t about becoming a developer—it’s about taking control of your content. Start small. Copy the snippets above. Tweak one thing per post.
Soon, you’ll wonder how you ever blogged without it.
Now go code something awesome.
