pdf for theory part
pdf for theory part
WEB TECHNOLOGY
A Report about the partial fulfillment of the requirements of the internal evaluation
of Grade XI under NEB in
Computer science
of
Section : MA1
ID Number 32473
TRINITY INTERNATIONAL SS & COLLEGE
Dillibazar Height, Kathmandu, Nepal
Date: 04/22/2025
Letter of Declaration
I hereby declare that the work presented in this project report has been done by
myself under the supervision of Mr. Sanjay Phuyal and has not been submitted
elsewhere for any examination.
LETTER OF APPROVAL
The project work submitted to Trinity International SS, by Swaraj Subedi entitled
“A Website for a Restaurant ”
has been approved as the partial fulfillment of the requirements of the internal
evaluation.
First, I would also like to thank Sir Dayaram Yadav for a clear guidance throughout
the theoretical syllabus, providing the basis for a clear understanding.
I would like to express heartfelt gratitude to my teacher, Sir Sanjay Phuyal for his
guidance and support throughout the competition of this lab report on “HTML”.
His valuable advice and encouragement helped me gain a deeper understanding of
the topic.
I also appreciate my classmates for their support and feedback during this project.
-Swaraj Subedi
Table of Contents
HTML
HTML, or HyperText Markup Language, is the foundational language used to create and
structure content on the web. Developed by Tim Berners-Lee in 1991, HTML has evolved
through multiple versions, with HTML5 being the current standard. It is not a programming
language but a markup language, meaning it uses tags and elements to annotate and
organize content for display in web browsers.
At its core, HTML describes the structure of a web page. It does this through a series of
elements, each defined by tags. These elements tell the browser how to interpret and display
different parts of the content. For example, headings, paragraphs, links, images, and lists are
all specified using different HTML tags. The browser reads these tags and renders the
content accordingly, but the tags themselves are not visible to users.
A basic HTML document follows a specific structure. It begins with the <!DOCTYPE
html> declaration, which tells the browser that the document uses HTML5. The <html> tag
wraps all content, acting as the root element. Inside <html>, the <head> section contains
meta-information such as the page title (shown in the browser tab), character encoding, and
links to stylesheets or scripts. The <body> section holds all the visible content, including
headings (<h1>, <h2>, etc.), paragraphs (<p>), images (<img>), links (<a>), tables, and
more.
In this example, each element is defined by a start tag (like <h1>), content, and an end tag
(like </h1>). Some elements, such as <br>, are empty and do not require an end tag14.
HTML is designed to be both human-readable and machine-readable. Its semantic elements,
such as <header>, <footer>, <nav>, and <article>, help describe the purpose of different
sections, improving accessibility and search engine optimization4. HTML also supports
embedding multimedia content, such as images, audio, and video, and can be combined with
Cascading Style Sheets (CSS) for styling and JavaScript for interactivity.
Web browsers like Chrome, Firefox, Safari, and Edge interpret HTML documents and
display them as web pages. While HTML provides the structure and content, CSS is used to
control the appearance, and JavaScript adds dynamic behavior.
In summary, HTML forms the backbone of every website. It organizes and labels content so
that browsers can present it in a structured and meaningful way. Learning HTML is the
essential first step for anyone interested in web development, as it lays the groundwork for
creating visually appealing and interactive web experiences
CSS
CSS was first proposed in 1994 by Håkon Wium Lie at CERN, as the web was growing
more complex and the limitations of HTML for styling became apparent. Originally, HTML
was intended only to describe the structure and semantics of content, not its appearance. As
web developers began using HTML tags for formatting, maintaining large websites became
time-consuming and inefficient. CSS was introduced to solve this problem by externalizing
all style information, allowing developers to control the look and feel of multiple web pages
from a single stylesheet.
CSS operates by applying style rules to HTML elements. Each rule consists of a selector,
which targets specific HTML elements, and a declaration block, which contains one or more
property-value pairs that define how those elements should be styled.
CSS can control a wide range of visual properties, including colors, fonts, spacing,
alignment, borders, backgrounds, and even complex layouts using features like Flexbox and
Grid.
Conclusion
CSS is an essential tool for web designers and developers, enabling the creation of visually
engaging, responsive, and maintainable websites. By mastering CSS, you gain the ability to
transform plain HTML content into polished, professional web pages that provide a better
user experience across all devices.
Software and hardware requirements:-
1. Duckett, J. (2011). HTML and CSS: Design and build websites. Wiley.
2. https://www.w3schools.com/tags/
3. https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_display/Visual_formatting_model
4. https://codestitch.app/app