-
Notifications
You must be signed in to change notification settings - Fork 7
/
27-01-2022
94 lines (46 loc) · 1.44 KB
/
27-01-2022
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
HTML Page Structure
1. HTML Static page will have extension ".html or .htm"
FAQ: What is difference between .html and .htm ?
Ans : No-difference
2. Static Page starts with "Document Declaration"
<!DOCTYPE html>
It defines that we are using HTML 5
3. Page must contain Document Scope
<html>
</html>
4. A document can display contents belonging to various regional languages.
<html lang="en-in">
5. Every Document Scope comprises of 2 sections
a) Head <head> </head>
b) Body <body> </body>
Head Section:
- It comprises of content which is intended to load into browser memory.
- HTML head section usually comprises of
1. title
2. link
3. meta
4. script
5. style
title :
- Title contains text to display in browser titlebar.
- Title is also used in bookmarks.
<head>
<title> Amazon | India </title>
</head>
link :
- It is used to link external file to webpage.
- External file can be a shortcut icon [favicon] or stylesheet
Ex: Creating a Shortcut Icon
1. Favicon must have extension ".ico"
2. Favicon must be between 16x16 and 32x32 pixel size.
3. Add a new file into public folder
"favicon.ico"
4. right click on file - > Open in file exporer
5. right click on icon file -> open with mspaint
6. draw your icon with size 30x30 px
7. save
8. Go to HTML page and link in head
<head>
<title> Amazon | India </title>
<link rel="shortcut icon" href="favicon.ico">
</head>