Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Short and easy notes

Rating
-
Sold
-
Pages
9
Uploaded on
09-02-2025
Written in
2024/2025

The web designing notes is more helpful for BCA BTech students it increases your knowledge in IT department thankyou,☺️

Institution
Course

Content preview

1. Write a HTML program to illustrate body and pre tags.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML Body and Pre Tags Example</title>
</head>
<body>
<h1>Example of Body and Pre Tags</h1>

<p>The <code>&lt;body&gt;</code> tag contains the main content of the HTML
document.</p>

<h2>Using the &lt;body&gt; tag</h2>
<p>This section is wrapped in the &lt;body&gt; tag, which defines the visible part of the
web page.</p>

<h2>Using the &lt;pre&gt; tag</h2>
<p>The <code>&lt;pre&gt;</code> tag is used to display preformatted text, maintaining
white spaces and line breaks as they are in the source code.</p>

<pre>
This is a block of preformatted text.
Line breaks are preserved here,
and multiple spaces are shown as is.
</pre>

<p>The <code>&lt;pre&gt;</code> tag is useful for displaying code or ASCII art where
formatting needs to be preserved.</p>

</body>
</html>

2. Write a HTML program to illustrate text font tags.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Text Font Tags Example</title>
</head>
<body>

<h1>Illustration of Font Tags in HTML</h1>

<h2><font color="blue">Using the <code>&lt;font&gt;</code> Tag</h2>

, <p>The <code>&lt;font&gt;</code> tag allows you to specify font size, color, and face
(type). <br>Example:</p>
<font face="Arial" color="green" size="4">
This is a text with <b>Arial</b> font, <i>green</i> color, and size 4.
</font>

<h2><font color="red">Using <code>&lt;b&gt;</code>, <code>&lt;i&gt;</code>, and
<code>&lt;u&gt;</code> Tags</h2>
<p>HTML also provides the following tags to change the style of text:</p>
<ul>
<li><b><font color="red">Bold Text</font></b>: Makes the text bold.</li>
<li><i><font color="purple">Italic Text</font></i>: Makes the text italic.</li>
<li><u><font color="orange">Underlined Text</font></u>: Underlines the text.</li>
</ul>

<h2>Example of Different Text Styles</h2>
<p><font color="blue" size="5"><b>This is a bold text.</b></font></p>
<p><font color="green" size="4"><i>This is an italic text.</i></font></p>
<p><font color="purple" size="3"><u>This is an underlined text.</u></font></p>

<h2>Deprecated <code>&lt;font&gt;</code> tag in HTML5</h2>
<p>Note that the <code>&lt;font&gt;</code> tag is considered obsolete in HTML5. It's
recommended to use CSS to style text instead. For example:</p>
<pre>
<code>
<style>
.custom-text {
font-family: Arial;
color: blue;
font-size: 20px;
}
</style>
<p class="custom-text">This is styled using CSS.</p>
</code>
</pre>

</body>
</html>

3. Write a HTML program to illustrate comment, header and div tags.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Comment, Header, and Div Tags Example</title>
</head>
<body>

Written for

Institution
Course

Document information

Uploaded on
February 9, 2025
Number of pages
9
Written in
2024/2025
Type
Class notes
Professor(s)
Faculty staff
Contains
All classes

Subjects

$8.69
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
yashipundhir

Get to know the seller

Seller avatar
yashipundhir Sanskriti University chhata Mathura
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 year
Number of followers
0
Documents
4
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions