Een minimaal HTML5-document

Een minimaal HTML5-document

HTML5 is de nieuwste versie HTML, die nog steeds wordt ontwikkeld. Websites worden steeds meer voorzien van verschillende soorten media, het gebruik van het internet is ook gewijzigd. HTML5 biedt nieuwe mogelijkheden die het gebruik van nieuwe technieken makkelijker maakt.

Een HTML5 document zal minimaal uit de volgende regels bestaan:

<!DOCTYPE html>
<html lang="nl">
  <head>
    <meta charset="utf-8">
    <title>title</title>
  </head>
  <body>
    <!-- pagina inhoud -->
  </body>
</html>

Doctype

De docktype is bij HTML vereenvoudigd. Waar eerder attributen waren om .dtd bestanden te linken is de HTML5 variant kort en eenvoudig.

<!DOCTYPE html>

Html-tag

De tag heeft voor zoekmachines een taal attribute om de taal van de website te definiëren.

<html lang="nl">

Head

De tag bevat een een meta-tag met de charset. Wat opvalt is dat de tag anders wordt afgesloten. Waar eerder werd gebruikt wordt bij HTML5 gebruikt.

<meta charset="utf-8">

Lees ook

The bullshit of implementing web accessibility

What is WCAG? Before I dive into the details of web accessibility, let me explain in my own words what it actually is. WCAG stands for Web Content Accessibility Guidelines. It’s a set of guidelines designed to ensure that websites and web applications are accessible to everyone, including people with disabilities…

Continue reading

The bullshit of frontend development

Introduction In this blog, I would like to share my opinion on how we, as front-end developers, often make projects unnecessarily complex. We often think we’re doing the right thing, but are we? Where we used to say we could build a website in just a few days, now we provide timelines at the infamous Scrum…

Continue reading

How I added my Porsche EV to Homekit

Since my childhood, I have been passionate about cars and everything related to them. Even at a young age, I knew every model. I spent hours flipping through car magazines searching for new facts and always dreamed of owning an exotic car. Initially, I used to dream of owning a Ferrari, but as I grew older and wiser,…

Continue reading