The skeleton of an HTML page
HTML is built from tags. A tag is a command between the signs < and >. Most tags come in pairs: an opening tag <p> and a closing tag </p> with a slash, and the text between them is what the tag works on. A few tags stand alone, such as <br>, which breaks a line. Write tags in lowercase. Every page has the same skeleton. The html tag contains everything. Inside it the head holds information about the page: its title, which the browser shows in its title bar, and the character set. The body holds everything the visitor sees: headings, paragraphs, pictures. The line meta charset utf-8 matters for us, because it lets Arabic letters show correctly. The first line, the doctype, tells the browser that this is a modern HTML page.
1<!DOCTYPE html> 2<html lang="en"> 3<head> 4<meta charset="utf-8"> 5<title>My First Page</title> 6</head> 7<body> 8<h1>Hello</h1> 9<p>Text</p> 10</body> 11</html>
The title bar says: My First Page. The page shows the large heading Hello and, below it, the paragraph Text.
1<!DOCTYPE html> 2<html lang="en"> 3<head> 4<meta charset="utf-8"> 5<title>Club News</title> 6</head> 7<body> 8<p>The club meets on Sunday.</p> 9</body> 10</html>
The title bar says: Club News. The page shows one line: The club meets on Sunday.
On paper write the skeleton of a page from memory (doctype, html, head with a title, body). Make the title “My Club”. Put one paragraph in the body, then say what the browser will show in its title bar and in the page.