إعلانيمكن أن تكون علامتك التجارية هناعلامتك التجارية هنافي كل صفحة من Darslab · طلاب وأولياء أمور ومعلمونinfo@darslab.comاسأل عن الأسعارالأسعارinfo@darslab.com
☰ خطة العام · تكنولوجيا المعلومات والاتصالات (بالإنجليزية)

Folders and the structure of HTML

الأسبوع 8 · الوحدة ٣ «إنشاء صفحات الموقع» (١) الموضوع الأول لغة PHP وHTML وتطبيقات تصميم المواقع: ملفات ومجلدات المشروع، هيكل صفحة HTML، حفظ الصفحات واختبارها · 3 دروس
2

The skeleton of an HTML page

ICT Secondary 2 Term 1, Unit 3, Topic 1: pp. 56–68
GoalRead the skeleton of an HTML page and say what the head and the body hold.
New words
tag · a command between < and >, usually in an opening and a closing pairhead · the part with information about the page, such as its titletitle · the text shown in the browser’s title barbody · the part with everything the visitor sees on the page
Explanation

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.

titleheadh1pbodyhtml
Worked examples
Html
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>
Output
The title bar says: My First Page. The page shows the large heading Hello and, below it, the paragraph Text.
Here is a complete small page. The visible result is described under the code. The title goes to the title bar, and only the body is shown inside the page.
Html
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>
Output
The title bar says: Club News. The page shows one line: The club meets on Sunday.
Read and predict. Before you look at the result, say what the title bar and the page will show. The title bar shows Club News. The page shows only one line, the paragraph.
Class activity

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.

Practice
1
What is a tag, and how does a closing tag differ from an opening tag?
2
Which part holds the title and which holds what the visitor sees?
3
Where does the text inside <title> appear?
4
Why does the head contain meta charset utf-8?