Tsallaka zuwa abun ciki
Justice Tech School

Doctype and Document Structure

Every page starts with the doctype declaration so browsers use standards mode. The html element holds head, which has metadata, and body, which has visible content.

Example
<!DOCTYPE html>
<html lang="en">
<head><title>Title</title></head>
<body><h1>Hello</h1></body>
</html>

Exercise

Declare HTML5.

<!DOCTYPE >

Quiz Test

What does the doctype do?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.