-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSection.html
43 lines (38 loc) · 1.55 KB
/
Section.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
<!-- Section in Html -->
<!-- In HTML, the `<section>` tag is used to create a thematically related section of
content on a web page. Sections allow you to divide and organize the content of the page.
semantically and help search engines and assistive technologies better understand the
page structure. -->
Here is an example of how to use the `<section>` tag
<!DOCTYPE html>
<html>
<head>
<title>Example tag <section> in HTML</title>
</head>
<body>
<header>
<h1>Main Title</h1>
</header>
<nav>
<!-- Navigation bar -->
</nav>
<section>
<h2>Section 1</h2>
<p>Content of Section 1.</p>
</section>
<section>
<h2>Section 2</h2>
<p>Content of Section 2.</p>
</section>
<footer>
<p>© 2023 My Company - All rights reserved.</p>
</footer>
</body>
</html>
<!-- In this example, two sections (`<section>`) have been created that contain related content.
Each section begins with a heading (`<h2>`) that describes its contents. The use of the label
`<section>` helps structure the page and communicate that these two blocks of content are
related to each other. -->
<!-- It is important to note that the `<section>` tag does not indicate any visual style by itself; HE
used mainly for semantic and structural purposes. You can apply styles to sections
using Css to control the design and visual appearance of your website. -->