Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

EROLA, CARLO A.

BSIT 1ST YEAR


ASSIGNMENT NO. 2
<!DOCTYPE html>

<html>

<head>

<title>Information Technology</title>

<style>

body {

background-color: #98ff98;

h3 {

background-color: #FF6347;

p1 {

background-color: #FF6347;

p2 {

background-color: #B19cd9;

h4 {

background-color: #B19cd9;

h5 {

background-color: #Ffff00;

p3 {

background-color: #Ffff00;

h6 {

background-color: #ADD8E6;

}
p4 {

background-color: #ADD8E6;

</style>

</head>

<body>

<font size="6">

<h1 style="text-align:center">My HTML and its Contents</h1>

</font>

<h2 style="text-align:center">Lets Start!</h2>

<font size="5">

<h3>Title Tag</h3>

</font>

<p1> - The (title) tag defines the title of the document. The contents of a page title is very important for
search engine optimization (SEO)! The page title is used by search engine algorithms to decide the order
when listing pages in search results.</p1>

<font size="5">

<h4>Paragraph Tag</h4>

</font>
<p2>we are using the (p) tag that is used for paragraphs in HTML. Paragraphs are defined with the (p)
tag. Paragraph tag is a very basic and typically the first tag you will need to publish your text on the web
pages.</p2>

<font size="5">

<h5>Background Color</h5>

</font>

<p3>To set the background color in HTML, use the style attribute. The style attribute specifies an inline
style for an element. The attribute is used with the HTML <body> tag, with the CSS property
background-color</p3>

<font size="5">

<h6>Body Color</h6>

</font>

<p4> You can specify colors on page level using (body) tag or you can set colors for individual tags using
bgcolor attribute.</p4>

</body>

</html>

You might also like