Blog

Conversie HTML4 naar HTML5

DOCTYPE declaratie

HTML4 :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

HTML5 :

<!DOCTYPE html>

HTML Root element

HTML4 :

<html xmlns="http://www.w3.org/1999/xhtml" lang="nl" xml:lang="nl">

HTML5 :

<html lang="nl">

Character Encoding

HTML4 :

<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />

HTML5 :

<meta charset="utf-8" />

Type attribuut

HTML4 :

<link type="text/css" rel="stylesheet" href="style.css" />

HTML5 :

<link rel="stylesheet" href="style.css" />
Zoeken