<h1>
Definition
<h1> refers to a specific type of HTML heading element that is used to define the most important heading on a webpage. It is part of a hierarchy of headings, ranging from <h1> to <h6>, where <h1> is the highest level. Search engines often give more weight to content within an <h1> tag, making it crucial for SEO (Search Engine Optimisation). Proper use of <h1> helps both users and search engines understand the main topic of a page.Why it matters
Using an <h1> tag effectively is essential for web accessibility and SEO. It provides a clear indication of the page's content, allowing users to quickly grasp what the page is about. Search engines also use the <h1> tag to index the page, influencing its visibility in search results. A well-structured heading hierarchy improves user experience, making it easier for visitors to navigate the content. Neglecting to use <h1> appropriately can lead to confusion and lower search rankings.
Example in VCA
In the Vibe Code Academy, an <h1> might be used on the homepage to highlight the main course title, such as "Welcome to Vibe Code Academy". This title would be prominently displayed at the top of the page, making it immediately clear to visitors what the site is about. By using an <h1> tag for this title, VCA ensures that both users and search engines recognise its significance, helping to attract more learners to the platform.
Another Real World Example
A news website might use an <h1> tag for the headline of a breaking news story, such as "Major Earthquake Strikes City Centre". This headline, marked with an <h1>, draws attention and indicates the primary focus of the article. By using an <h1> tag, the website enhances its SEO and ensures that readers can quickly identify the most important news item on the page, improving their overall experience.
Common mistakes
- Many web developers forget to include an <h1> tag on their pages, which can confuse both users and search engines.
- Some websites misuse multiple <h1> tags on a single page, which can dilute the importance of the main heading.
- Failing to use relevant keywords in the <h1> can lead to missed opportunities for better search engine rankings.
- Overly generic <h1> tags, such as "Welcome" or "Home", do not provide useful context for visitors or search engines.
- Ignoring the heading hierarchy by using <h1> for less important sections can disrupt the flow of content and make it harder to read.
Related terms
- <a href="/glossary/html" data-glossary="html" class="glossary-term">html</a>