-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathintroduction_or_basic_info.html
69 lines (58 loc) · 3.08 KB
/
introduction_or_basic_info.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
<!-- HTML stands for HyperText Markup Language -->
<!-- HTML is used to structure web pages and their content -->
<!-- Components used to design the structure of a website are called HTML tags -->
<!-- HTML tags are containers for content or other HTML tags, e.g., <p>hello world!</p> -->
<!-- HTML is not case-sensitive; for example, <p>hello world </p> and <P>hello world</P> are the same -->
<!-- <p> is equal to <P> -->
<!DOCTYPE html><!-- Tells the browser you are using HTML5 -->
<!-- It also defines the version that we are using -->
<html lang="en"><!-- The root of the HTML document -->
<!-- lang="en" is an attribute in the HTML code that provides additional information to the tag -->
<!-- It is a parent tag -->
<head><!-- Container for metadata -->
<!-- Inside the <head> tag, we write code that is not displayed on the page but is important to include -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"><!-- This line ensures the page displays correctly on every device -->
<title>practice_01</title><!-- Page title -->
</head>
<body><!-- Contains all the data shown on the page -->
<h1>Hello world!</h1><!-- <h1> is the opening tag, </h1> is the closing tag, and the content goes in between -->
<!-- <h1> is a heading tag; h1, h2, h3, h4, h5, h6 are heading tags with different font sizes -->
<h1>hello world 1</h1>
<h2>Hello world 2</h2>
<h3>Hello world 3</h3>
<h4>Hello world 4</h4>
<h5>Hello world 5</h5><!-- HTML is not case-sensitive, h5 = H5 -->
<h6>Hello world 6</h6><!-- Headings have fixed sizes, but we can change them using CSS -->
<!-- Using CSS to change text size is good practice and enhances code readability; it's also important for search engines to index the page correctly -->
<!-- h1 > h2 > h3 > h4 > h5 > h6 follow a hierarchy for page structure -->
<p>Lorem ipsum dolor sit amet.</p><!-- Paragraph tag -->
<br><!-- <br> creates a line break to the next line -->
<a href="https://msha.ke/btechnotes">btechnotes</a><!-- Anchor tag for links -->
<!-- Absolute link -->
<br>
<a href="/practice_02.html">practice_02</a><!-- Relative link -->
<!-- href attribute is used to create links within tags -->
<br>
<img src="/th.jpg" alt="image"><!-- <img> displays an image -->
<!-- src attribute specifies the image address, alt attribute provides an alternate image name -->
<br>
<b>Bold tag</b>
<i>Italic tag</i>
<u>Underline tag</u>
<b><i><p>Lorem ipsum dolor sit amet.</p></i></b>
<big>This tag displays larger text</big>
<hr><!-- <hr> creates a horizontal line to divide content -->
<small>This tag displays smaller text</small>
<!-- Subscript and superscript -->
<h1>H<sub>2</sub>O</h1>
<h1>3<sup>2</sup>=9</h1>
<!-- <pre> tag displays text as-is (without ignoring spaces and line breaks) -->
<pre>
hello Jayesh,
how are you?,
what are you doing?
</pre>
<a href="/practice_02.html">Next page</a>
</body>
</html>