WD Lab file Sample copy
WD Lab file Sample copy
LAB FILE
(2024-25)
THIRD SEMESTER
Index
1
Page
Sr. No. Name of the experiment Date
No.
1 Write a program to demonstrate headings <h1> to <h6>. 9
2
Website
A group or collection of interlinked web pages is referred to as a website. A website
is located on the web or internet under a domain. Every website has a unique web
address called URL (Uniform Resource Locator) of the website. Again, in order to
open and access the content of website, a web browser is required.
The first page of a website which displayed by the browser when the website is
opened is called the "homepage" of the website. The homepage contains links to all
the webpages of the website and can be visited by clicking on them. Website must
be hosted on a web server so that they can be accessed through the Internet.
Web Page
A web page is text file written using HTML and save with htm or html extension. A
typical web page comprises information related to the title of the web page and
hyperlinks to other related webpages. The URL of a webpage has an extension. The
URL of a web page depends upon the URL of the website of which it is a part.
A web page may contain information in different formats like text, audio, image,
video, hypertext, etc. A special application software called "web browser" is used to
display the content of a web page. In addition to HTML, many other web
programming languages like PHP, Python, Perl, etc. are used to create a webpage.
Based on the design used, the web pages can be of two types namely – static web
page and dynamic web page. A webpage is the most elementary document of a
website.
1. Static web page: is delivered exactly as stored, as web content in the web
server's file system. Contents cannot be changed.
2. Dynamic web page: is generated by a web application that is driven by
server-side software or client-side scripting. Dynamic web pages help the
browser (the client) to enhance the web page through user input to the server.
Contents can be changed as evolution over time.
3
Client and Server model
o A client and server networking model is a model in which computers such as
servers provide the network services to the other computers such as clients to
perform a user based tasks. This model is known as client-server networking
model.
o The application programs using the client-server model should follow the given
below strategies:
Servers: Similarly, when we talk the word Servers, It mean a person or medium
that serves something. Similarly in this digital world a Server is a remote
computer which provides information (data) or access to particular services.
4
Browsers and their types :
Web browsers are software applications that allow users to access and view websites
on the World Wide Web. They render and display HTML, CSS, JavaScript, and other
web technologies, enabling users to interact with web content. There are several
web browsers available, each with its unique features and characteristics. Here are
some of the most popular web browsers and their types:
Google Chrome:
Characteristics: Microsoft Edge is designed to be faster and more secure than its
predecessor, Internet Explorer. It is tightly integrated with Windows and includes
features like Cortana integration and a reading mode. It is available for Windows and
macOS.
Apple Safari:
Characteristics: Safari is the default browser for Apple devices. It is known for its
speed and energy efficiency. It features privacy controls, reader mode, and is
integrated with other Apple services.
Opera:
Brave:
5
Type: Open-source, freeware
Characteristics: Brave is built with a strong focus on privacy and security. It includes
a built-in ad blocker and tracking protection. Users can earn cryptocurrency tokens
(BAT) for viewing ads if they choose to opt in.
Vivaldi:
Tor Browser:
Characteristics: The Tor Browser is built on the Tor network and is designed to
provide a high level of anonymity and privacy. It routes web traffic through multiple
servers to conceal a user's identity and location.
UC Browser:
Type: Proprietary
Characteristics: Internet Explorer was the default browser for older versions of
Windows but has been largely replaced by Microsoft Edge. It is no longer actively
developed or recommended for use.
6
HTML Tags
HTML stands for HyperText Markup Language. It is used to design web pages using
a markup language. HTML is a combination of Hypertext and Markup language.
Hypertext defines the link between web pages. A markup language is used to define
the text document within the tag which defines the structure of web pages. This
language is used to annotate (make notes for the computer) text so that a machine
can understand it and manipulate text accordingly. Most markup languages (e.g.
HTML) are human-readable. The language uses tags to define what manipulation has
to be done on the text.
HTML is a markup language and makes use of various tags to format the content.
These tags are enclosed within angle braces <Tag Name>. Except few tags, most of
the tags have their corresponding closing tags.
For example, <html> has its closing tag </html> and <body> tag has its closing
tag </body> tag etc.
1. <!DOCTYPE...> This tag defines the document type and HTML version.
2. <html> This tag encloses the complete HTML document and mainly
comprises of document header which is represented by <head>...</head>
and document body which is represented by <body>...</body> tags.
3. <head> This tag represents the document's header which can keep other
HTML tags like <title>, <link> etc.
4. <title> The <title> tag is used inside the <head> tag to mention the
document title.
5. <body> This tag represents the document's body which keeps other HTML
tags like <h1>, <div>, <p> etc.
6. <h1> This tag represents the heading.
7. <p> This tag represents a paragraph.
Features of HTML:
7
<!DOCTYPE html>
<html>
<head>
</head>
<body>
</body>
</html>
8
Simple steps to create a basic HTML document:
1. Open notepad or another text editor.
2. At the top of the page type <html>
3. Add the opening header tag <head>
4. On the next line type <title> give title for page </title>
5. Go to next line and type closing header tag </head>
6. Go to next line and type opening body tag<body>
7. Go to next line and type closing body tag</body>
8. Finally, go to next line and type</html>
9. Visit file menu choose save as option.
10. Save as type option box choose all files.
11. Name the file file_name.html
12. Click save.
9
Program-1
<!-- Write a program to demonstrate headings <h1> to <h6> -->.
Procedure:
<!DOCTYPE html>
<html>
<head>
<title>Headings h1 to h6</title>
</head>
<body>
</body>
</html>
10
************************Output*******************************
11