-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheading.html
40 lines (32 loc) · 1.2 KB
/
heading.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> Heading </title>
</head>
<body>
<h1>Heading one</h1>
<h2>Heading two</h2>
<h3>Heading three</h3>
<h4>Heading four</h4>
<h5>Heading five</h5>
<h6>Heading six</h6>\
<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Aliquam eaque earum.
<br/> <!-- HTML does't understand line-breaks so we use <br/> tag to add a line break in paragraphs-->
<hr> <!-- This is used for adding a horizontal line-->
laudantium beatae itaque similique voluptas. Adipisci nam blanditiis sit.</p>
<pre>
line 1
line 2
line 3
line 4
</pre> <!--Classic poem problem and the pre tag. The <pre> HTML element represents preformatted text which is to be presented exactly as written in the HTML file.-->
<pre> <!--We use it to show pieces of code as well on a webpage-->
function sayHello(name) {
return "Hello and good morning, " + name
}
console.log(sayHello("Swarn"))
</pre>
</body>
</html>