Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
This The document skeleton (DOCTYPE, html, head, body) worksheet is part of the HTML and CSS Journey journey. Print it as a booklet?
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1<!DOCTYPE html> | AMissing the exclamation mark - the correct declaration is <!DOCTYPE html> | |
| 2<body> <h1>Hello</h1> </body> | B<head> <title>My Page</title> </head> | |
| 3<head> holds metadata - its content is not visible on the page | C<html> <head></head> <body></body> </html> | |
| 4<html> is the root element - it wraps the entire document including head and body | DThe mandatory first line of every HTML file - tells the browser this is a modern HTML document | |
| 5<DOCTYPE html> | EThe element that holds all visible page content - everything the user sees in the browser window | |
| 6<html> <body></body> <head></head> </html> | FWrong order - <head> must always appear before <body> inside <html> |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
<!DOCTYPE html> — The declaration that must appear on the very first line of every HTML file, telling the browser the document uses modern HTML.<!DOCTYPE html>
<html>
</html><!DOCTYPE html>
<html>
</html><!DOCTYPE html>
<html>
<head>
</head>
</html><!DOCTYPE html>
<html>
<head></head>
<body>
</body>
</html><!DOCTYPE html>
<html>
<head>
<title>My Site</title>
</head>
<body>
</body>
</html>