-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHtml-Format.html
72 lines (56 loc) · 2.48 KB
/
Html-Format.html
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
71
72
<!-- Html format -->
<!-- Html (Hypertext Markup Language) is a markup language used to create the structure and
content of web pages. Next, I present a basic structure of an Html document with
Format. -->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Page Title</title>
<link rel="stylesheet" href="styles.css">
<script src="script.js"></script>
</head>
<body>
<header>
<h1>Main Title</h1>
<p>A header or logo for your website</p>
</header>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<main>
<h2>Subtitle or main section</h2>
<p>Main content of your page.</p>
</main>
<footer>
<p>© 2023 Your Company - All rights reserved.</p>
</footer>
</body>
</html>
The elements used in this structure are described below:
<!-- 1. `<!DOCTYPE html>`: This declaration specifies the version of Html used (in this case, Html5).
2. `<html>`: The root element that contains all the content of the page.
3. `<head>`: Document information is found here, such as character encoding,
page title, links to style sheets (Css) and scripts (JavaScript).
4. `<meta charset="UTF-8">`: Sets the UTF-8 character encoding to ensure correct
representation of special characters.
5. `<title>`: Defines the title of the page displayed in the browser tab.
6. `<link>`: Allows you to link an external style sheet for page layout and formatting.
7. `<script>`: Link external JavaScript files for interactive page behavior.
8. `<body>`: Contains the main content of the page, such as headings, paragraphs, images and others
Html elements.
9. `<header>`: Used for the page header, which can include a main title and a
Logo.
10. `<nav>`: Generally used for the page navigation bar, which contains links to
different sections of the site.
11. `<main>`: Contains the main content of the page.
12. `<footer>`: Used for the footer of the web page, which may include information about
copyright and additional links. -->
<!-- This basic structure provides a starting point for creating web pages. From
Here, you can add additional content and customize the layout using CSS and behavior
interactive using JavaScript. -->