Professional Documents
Culture Documents
Government College of Engineering, Nagpur: Vishal Suresh Kesharwani 2021-2022
Government College of Engineering, Nagpur: Vishal Suresh Kesharwani 2021-2022
Government College of Engineering, Nagpur: Vishal Suresh Kesharwani 2021-2022
Subject:
COMPUTER WORKSHOP- I
Branch : CSE { DIRECT SECOND YEAR }
Name: Vishal Suresh Kesharwani Enrolment No.
Batch: 2021-2022 Subject Teacher: Chandrayani Rokde
PRACTICAL NO.01
AIM:-- Develop an HTML document for a web page using Character and Page formatting
elements
RESOURCES REQUIRED:
THEORETICAL BACKGROUND:
HTML : The HyperText Markup Language, or HTML is the standard markup language for
documents designed to be displayed in a web browser. It can be assisted by technologies such
as Cascading Style Sheets (CSS) and scripting languages such as JavaScript. ... HTML elements
are the building blocks of HTML pages.
HTML Text Formatting
HTML contains several elements for defining text with a special meaning.
Example
<strong>This text is important!</strong>
HTML <i> and <em> Elements
The HTML <i> element defines a part of text in an alternate voice or mood. The content inside
is typically displayed in italic.
Tip: The <i> tag is often used to indicate a technical term, a phrase from another language, a
thought, a ship name, etc.
Example
<i>This text is italic</i>
The HTML <em> element defines emphasized text. The content inside is typically displayed in
italic.
Tip: A screen reader will pronounce the words in <em> with an emphasis, using verbal stress.
Example
<em>This text is emphasized</em>
HTML <small> Element
The HTML <small> element defines smaller text:
Example
<small>This is some smaller text.</small>
HTML <mark> Element
The HTML <mark> element defines text that should be marked or highlighted:
Example
<p>Do not forget to buy <mark>milk</mark> today.</p>
HTML <del> Element
The HTML <del> element defines text that has been deleted from a document. Browsers will
usually strike a line through deleted text:
Example
<p>My favorite color is <del>blue</del> red.</p>
HTML <ins> Element
The HTML <ins> element defines a text that has been inserted into a document. Browsers will
usually underline inserted text:
Example
<p>My favorite color is <del>blue</del> <ins>red</ins>.</p>
HTML <sub> Element
The HTML <sub> element defines subscript text. Subscript text appears half a character below
the normal line, and is sometimes rendered in a smaller font. Subscript text can be used for
chemical formulas, like H2O:
Example
<p>This is <sub>subscripted</sub> text.</p>
HTML <sup> Element
The HTML <sup> element defines superscript text. Superscript text appears half a character
above the normal line, and is sometimes rendered in a smaller font. Superscript text can be used
for footnotes, like WWW[1]:
Example
<p>This is <sup>superscripted</sup> text.</p>
There are different types of HTML tags are used to format the appearance of the text on your
web page.
Any document starts with a heading. You can use different sizes for your headings. There are 6
levels of headings available, from h1 for the largest and most important heading, down to h6 for
the smallest heading. Here is an example of the code for all the headline sizes:
<h1>Level 1 Headline</h1>
<h2>Level 2 Headline</h2>
<h3>Level 3 Headline</h3>
<h4>Level 4 Headline</h4>
<h5>Level 5 Headline</h5>
<h6>Level 6 Headline</h6>
Whenever you use the <br /> element, anything following it starts on the next line. This tag is
an example of an empty element, where you do not need opening and closing tags, as there is
nothing to go in between them.
Note: The <br /> element has a space between the characters br and the forward slash. If you
omit this space, older browsers will have trouble rendering the line break.
<html>
<body>
Hello<br />
This is an example of Line break.<br />
Thank you<br />
</body>
</html>
Hello
Thank you
Size: To change the font size of the text on your web pages, you simply embed the text in the
FONT element and add the SIZE attribute with a value between 1 (very small) and 7 (very big)
to the opening font tag.
Color: To change the text color you need to add the attribute COLOR to the opening FONT tag
and assign it a value for the color. The color value can be any of the following 16 color names:
black, silver, white, gray, maroon, red, blue, green, yellow, purple, fuchsia, cyan, lime, olive,
navy, teal, aqua.
Instead of the color names, you can also use the hexadecimal numbers for the colors, which are
specified according to the RGB value for each color. The hexadecimal numbers must be
prefixed by the "#" sign. Examples: #000099 for dark blue or #FFFF99 for a faint yellow.
Face: To change the font style from the default (Times New Roman) to a different style, simply
add the attribute FACE to the opening FONT tag. As value for the FACE attribute you can use
any specific font name such as "verdana", "arial", "georgia", "bookman old style", "comic sans
ms" and many more.
PROGRAM CODE:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Black Goose Bistro</title>
</head>
<body style="background-color:powderblue;">
<marquee><h1 style="font-family:verdana;">Black Goose Bistro</h1></marquee>
OUTPUT:
RESULTS : Develop an HTML document for a web page using Character and Page formatting elements
implemented successfully.