-
Notifications
You must be signed in to change notification settings - Fork 0
/
1first_page.html
33 lines (26 loc) · 1.14 KB
/
1first_page.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
<!-- 1. Design a page having suitable background colour and text
colour with title “My First Web Page” using all the attributes of
the Font tag. -->
<!-- Theory:
This HTML code demonstrates basic webpage structure, including
the use of elements like <html>, <head>, <title>, <body>, <h1>,
and <p>. Styles are applied inline using the style attribute to
set properties like font-family, color, font-size, font-weight,
and margin. -->
<!DOCTYPE html>
<html>
<head>
<title>My First Web Page</title>
</head>
<body style="background-color: #f0f0f0;">
<h1 style="font-family: Arial, sans-serif; color: #3283bd; font-size: 2em; font-weight: bold; text-align: center;">
<font>My First Web Page</font>
</h1>
<p style="font-family: Georgia, serif; font-size: 1.2em; color: #df6e6e; margin: 0 20%;"><i>
Welcome to my first web page! This is a simple example of an HTML page with a background color and text color, and using the font tag to style the title.
</i></p>
</body>
</html>
<!-- Conclusion:
This code showcases how to create a simple webpage with styled
text and background using HTML and inline CSS. -->