Home HTML Code Examples

HTML Code Examples

This are quick examples on how to use tags:
Header helps to create the outline of the document flow within the page:
<header>
<h1>Title goes here</h1>
<h2>And subtitle…</h2>
</header>
Nav defines the area where links for the page are:
<nav><a href=”/home/”>Home</a> |
<a href=”/blog/”>Blog</a> |
<a href=”/about/”>About</a> |
<a href=”/contact/”>Contact</a> |
</nav>
Article creates a meaningful section for stories, also useful for syndication:
<article>
<h1>Article</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse eu diam magna…</p>
</article>
Figure defines graphic elements contained in the document, and with the help of optional figcaption to create captions:
<figure>
<img src=”funnycat.jpg” alt=”I love cats.”>
<figcaption>Cat playing with toy</figcaption>
</figure>
Section is a generic section inside of the document, with it’s own structure:
<section>
<h1>Section</h1>
<p>…angam maid ue essidnepsuS .tile gnicsipida rutetcesnoc ,tema tis rolod muspi meroL</p>
</section>
Aside is a section considered related but not part of the main content, like side notes or archives:
<aside>
<h1>Archives</h1>
<ul>
<li>October 2011</li>
<li>September 2011</li>
<li>…</li>
</ul>
</aside>
Footer represents an ending message, usually copyright or contact information:
<footer>Foobar Inc ™</footer>
 
Source Intel AppUp(SM) Developer Program

About ReadWrite’s Editorial Process

The ReadWrite Editorial policy involves closely monitoring the tech industry for major developments, new product launches, AI breakthroughs, video game releases and other newsworthy events. Editors assign relevant stories to staff writers or freelance contributors with expertise in each particular topic area. Before publication, articles go through a rigorous round of editing for accuracy, clarity, and to ensure adherence to ReadWrite's style guidelines.

Get the biggest tech headlines of the day delivered to your inbox

    By signing up, you agree to our Terms and Privacy Policy. Unsubscribe anytime.

    Tech News

    Explore the latest in tech with our Tech News. We cut through the noise for concise, relevant updates, keeping you informed about the rapidly evolving tech landscape with curated content that separates signal from noise.

    In-Depth Tech Stories

    Explore tech impact in In-Depth Stories. Narrative data journalism offers comprehensive analyses, revealing stories behind data. Understand industry trends for a deeper perspective on tech's intricate relationships with society.

    Expert Reviews

    Empower decisions with Expert Reviews, merging industry expertise and insightful analysis. Delve into tech intricacies, get the best deals, and stay ahead with our trustworthy guide to navigating the ever-changing tech market.