WE Lab 1 - Huzaifa - 015
WE Lab 1 - Huzaifa - 015
LAB JOURNAL# 01
BAHRIA UNIVERSITY
ISLAMABAD CAMPUS
Lab Tasks
Task 1:
Discuss about different Web Servers.
A web server is a computer that stores HTML documents, otherwise known as web pages, and
waits for connections from web browsers. When a web browser connects to a web server, the
web server sends the requested document, if it exists, back to the web browser for display.
At the most basic level, whenever a browser needs a file that is hosted on a web server, the
browser requests the file via HTTP. When the request reaches the correct (hardware) web
server, the (software) HTTP server accepts the request, finds the requested document, and
sends it back to the browser, also through HTTP. (If the server doesn't find the requested
document, it returns a 404 response instead.)
Apache HTTP Server is open-source. Being open-source means it is available for free,
and can easily be accessed through online communities. Thus, a lot of online support is
available in case of a problem or an error. This also enables the user to modify the server
as per his requirements. Apache’s latest version is much more flexible than the previous
Microsoft IIS is not open source. This means that it has some development limitations, and the
users cannot modify it as per their project requirements. The project has to be modified around
it. It works with every Windows OS gadget. Microsoft provides ‘customer care and helps’ to its
Apache and IIS, however, its small CPU load and speed optimizations stand it apart from its
competitors. It can run a large number of connections at the same time and even provides
facilities like Auth, URL rewriting, flexible virtual hosting, servlet support (AJP), HTTP proxy
All these features along with being lightweight make Lighttpd suitable for servers suffering from
load problems.
Nginx Web Server:
Just like Lighttpd, it is also an open-source web server, well known for the performance that it
provides at low resource and configuration. It is mainly used for caching, media streaming, load
balancing, handling of static files, auto-indexing, etc. Instead of creating new processes for each
request made by the user, Nginx handles the requests in a single thread, using an asynchronous
approach.
Nginx has started to get some recognition in the market nowadays, and about 7.5% of the
and reliability to the enterprises. It also provides data security and command-line interface CLI
support. The newest version of this webserver (7.0) uses a newly introduced CLI called ‘wadm’.
The 7.0 version web server does not support HttpServerAdmin. However, it comes with a built-in
migration tool that helps in migrating apps, websites, and it’s configurations from the older to a
Create an index.html
Open VS Code if you have it, otherwise open notepad application and save file as
index.html.
Add <html></html> tags, these tags are used to inform the browser that the text
between these tags is formatted according to HTML Guidelines.
Insert Title of the web page by adding <title>Your Title</title> tags between
<head></head> tags, just like shown below.
Add text in the web page that you’re building by adding body tags <body></body> and
then add paragraph tags <p></p> into body tag, just like shown below:
Add line break by introducing <br> tag between paragraph tags.
Task 3:
Create your CV in HTML Format. Use the tags studied in this lab. You can also include additional
HTML formatting tags.
What to Include in a CV?
A CV should at least include the following:
<div class="education">
<h5>Education</h5>
<ol>
<li><strong>Fedral Govt. School</strong><br>Done Matriculation</li>
<li><strong>Punjab College</strong><br>Done Pre-Engineering</li>
<li><strong>Bahria University</strong><br>Doing Software Engineering
</li>
</ol>
</div>
</body>
</html>
Index.css File:
.name__info{
display: flex;
justify-content: space-around;
align-items: flex-start;
}
.personal__profile{
margin-bottom: 2px solid gray;
}
h5{
color:deepskyblue;
}
img{
border-radius: 50%;
height: 100px;
width :100px;
}
Output Screenshot:
Conclusions:
In this lab, we studied about the foundations of Websites, Web servers and Perform given task
using HTML.