Skip to content

Instantly share code, notes, and snippets.

@sixhat
Created September 25, 2025 08:47
Show Gist options
  • Select an option

  • Save sixhat/ed347a1eca62e646367ffdecf95841a5 to your computer and use it in GitHub Desktop.

Select an option

Save sixhat/ed347a1eca62e646367ffdecf95841a5 to your computer and use it in GitHub Desktop.
Example of semantic HTML
<!DOCTYPE html>
<html lang="pt-PT">
<head>
<meta charset="UTF-8">
<title>Exemplo de HTML Semântico</title>
</head>
<body>
<header>
<h1>O Meu Blog</h1>
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/sobre">Sobre</a></li>
<li><a href="/contato">Contato</a></li>
</ul>
</nav>
</header>
<main>
<article>
<h2>O que é HTML Semântico?</h2>
<p>HTML semântico é o uso de tags HTML que transmitem o significado...</p>
</article>
<section>
<h3>Comentários</h3>
<article>
<h4>João disse:</h4>
<p>Ótimo artigo!</p>
</article>
</section>
</main>
<aside>
<h3>Posts Recentes</h3>
<ul>
<li><a href="#">Post 1</a></li>
<li><a href="#">Post 2</a></li>
</ul>
</aside>
<footer>
<p>&copy; 2025 Meu Blog. Todos os direitos reservados.</p>
</footer>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment