-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolours.html
47 lines (35 loc) · 1.5 KB
/
colours.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css"> <!-- We can link a separate CSS file here for styling. It is often preferred to separate HTML and CSS for cleaner code and easier maintenance. -->
<style>
body {
color: rgb(24, 24, 24);
}
</style> <!-- This is how we can add internal CSS directly in the HTML file. It overrides any external CSS file if both are present and target the same elements. -->
<title>Document</title>
</head>
<body>
<h1>Formatting</h1>
<h3 style="
text-align: left;
background-color: rgba(165, 42, 42, 0.5);
"
>These are the tags discussed:
</h3> <!-- style is an attribute of heading element -->
<!-- in rgba, a is the opacity factor -->
<p>
<blockquote cite="Swarnjeet"> Lets see what is HTML </blockquote>
<!-- blockquote and cite are used for better rankings and the functions follow suit their names -->
<abbr title="Hyper text Mark-up language" > HTML </abbr>
<!-- this will show the full-form of HTML when the cursor hovers over -->
<address> You may contact author at:
<a href="mailto:[email protected]">[email protected]</a>
<br/>
<a href="tel:+91- 9988776655">+91-9988776655</a>
</address>
</p>
</body>
</html>