0% found this document useful (0 votes)
21 views

IWD Unit 3 Assignment

CSS

Uploaded by

Rajesh Ambrose
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

IWD Unit 3 Assignment

CSS

Uploaded by

Rajesh Ambrose
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Unit 3 Assignment

1.Define the following terms


i) ISP ii) HTTP
ISP
The term Internet service provider (ISP) refers to a company that provides access
to the Internet to both personal and business customers. ISPs make it possible for
their customers to surf the web, shop online, conduct business, and connect with
family and friends—all for a fee. ISPs may also provide other services including
email services, domain registration, web hosting, and browser packages. An ISP
may also be referred to as an information service provider, a storage service
provider, an Internet service provider (INSP), or any combination of these three
based on the services the company offers.

HTTP
(HyperText Transfer Protocol) The communications protocol used to connect to
Web servers on the Internet or on a local network (intranet). The primary function
of HTTP is to establish a connection with the server and send HTML pages back to
the user’s browser. It is also used to download data from the server either to the
browser or to any requesting application that uses HTTP.
Addresses of websites begin with an http:// prefix; however, Web browsers
typically default to the HTTP protocol. For example, typing www.yahoo.com is the
same as typing http://www.yahoo.com. In fact, only yahoo.com has to be typed in.
The browser adds the rest.

2.What is formatting text in HTML?


HTML Formatting basically refers to the enhancing of text in order to increase the
visual appeal. HTML provides a range of formatting tags that can be used to make
the text attractive to the users. There are many options available that can be used
for formatting, just like any other text editor.
HTML Formatting Tags
There are two types of HTML tags:

1
Unit 3 Assignment

Physical tags- These tags provide a visual appeal to the document. For example,
bold, italic, underlined, etc.
Logical tags- These tags provide a logical meaning to the text. For example, the
<strong> tag.

Formatting Text in HTML


Now, we shall discuss some of the major formatting text in HTML.
1. HTML Headings
HTML headings range from 1 to 6. The heading defined within <h1> is the more
important i.e. larger font-size and font-weight whereas <h6> is the least important
i.e. least font-size. These headings can be judiciously used to format the text.
<html>
<head>
<title>DataFlair</title>
</head>
<body>
<h1>DataFlair Heading 1</h1>
<h2>DataFlair Heading 2</h2>
<h3>DataFlair Heading 3</h3>
<h4>DataFlair Heading 4</h4>
<h5>DataFlair Heading 5</h5>
<h6>DataFlair Heading 6</h6>
</body>
</html>

2
Unit 3 Assignment

Output:

2.HTML Bold Text


This is defined by the <b> tag. This is a physical tag which is used to display the
text in Bold. For example,
<!DOCTYPE html>
<html>
<head>
<title>DataFlair</title>
</head>
<body>
<p><b>Welcome to DataFlair!</b></p>
</body>
</html>
Output:

3
Unit 3 Assignment

3. HTML Strong Element


It displays the content in a manner such that it appears as important.

<!DOCTYPE html>
<html>
<head>
<title>DataFlair</title>
</head>
<body>
<p><strong>Welcome to DataFlair!</strong></p>
</body>
</html>
Output:

4. HTML Underlining the text


In HTML, the text can be underlined using the <u> element, in order to emphasize
on its importance. For example,

<!DOCTYPE html>
<html>
<head>
<title>DataFlair</title>
</head>
<body>
<p>Welcome to DataFlair!</p>
<p><u>Welcome to DataFlair!</u></p>
</body>
</html>
Output:

4
Unit 3 Assignment

5. HTML Highlight
In HTML, the <mark> element is used to highlight the text. For example,

<!DOCTYPE html>
<html>
<head>
<title>DataFlair</title>
</head>
<body>
<p><mark>Welcome to DataFlair!</mark></p>
</body>
</html>
Output:

3.What is CSS and define its uses in HTML?


HTML (the Hypertext Markup Language) and CSS (Cascading Style Sheets) are
two of the core technologies for building Web pages. HTML provides the structure
of the page, CSS the (visual and aural) layout, for a variety of devices. Along with
graphics and scripting, HTML and CSS are the basis of building Web pages and
Web Applications.
CSS is the language for describing the presentation of Web pages, including
colors, layout, and fonts. It allows one to adapt the presentation to different types
of devices, such as large screens, small screens, or printers. CSS is independent of
HTML and can be used with any XML-based markup language. The separation of
HTML from CSS makes it easier to maintain sites, share style sheets across pages,
and tailor pages to different environments. This is referred to as the separation of
structure (or: content) from presentation.

4.What are the colours and backgrounds used in HTML?


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. HTML5 do not support the

5
Unit 3 Assignment

<body> tag bgcolor attribute, so the CSS style is used to add background color.
The bgcolor attribute deprecated in HTML5.
Just keep in mind, the usage of style attribute overrides any style set globally. It
will override any style set in the HTML <style> tag or external style sheet.

You might also like