Web Essentials and Mark-up Language- HTML
Web Essentials and Mark-up Language- HTML
Mark-up language-
HTML
UNIT 1
Basic internet protocols
The World Wide Web (WWW or simply the Web) is an information system that
enables content sharing over the Internet through user-friendly ways meant to
appeal to users beyond IT specialists and hobbyists.[1] It allows documents and
other web resources to be accessed over the Internet according to specific rules
of the Hypertext Transfer Protocol.
WWW can be defined as the collection of different websites around the world,
containing different information shared via local servers
The Web was invented by English computer scientist Tim Berners-Lee while at
CERN in 1989 and opened to the public in 1991.
It was conceived as a "universal linked information system".[3][4] Documents
and other media content are made available to the network through web
servers and can be accessed by programs such as web browsers
The Web has become the world's dominant information systems platform. It is
the primary tool billions of people worldwide use to interact with the Internet.
HTTP requests
Status line
The status line is the first line in the response message. It consists of three items:
The HTTP version number, showing the HTTP specification to which the server has
tried to make the message comply.
A status code, which is a three-digit number indicating the result of the request.
A reason phrase, also known as status text, which is human-readable text that
summarizes the meaning of the status code.
An example of a response line is:
HTTP/1.1 200 OK
In this example:
the HTTP version is HTTP/1.1
the status code is 200
the reason phrase is OK
HTTP responses
HTTP headers
The HTTP headers for a server's response contain information that a client
can use to find out more about the response, and about the server that
sent it. This information can assist the client with displaying the response
to a user, with storing (or caching) the response for future use, and with
making further requests to the server now or in the future.
Message body
The message body of a response may be referred to for convenience as a
response body.
Message bodies are used for most responses. The exceptions are where a
server is responding to a client request that used the HEAD method (which
asks for the headers but not the body of the response), and where a server
is using certain status codes.
Web Client
The web client is the front end or the user side of the web architecture. It
can be a web browser or a web application that communicates through
hypertext transfer protocol (HTTP) to format and transmit data such as
documents, images, videos and audio files from a web server to the end-
user.
It requests for data or web content through HTTP and the web server
responds to the web client using the same protocol. Some of his key
features are accessibility to all users, load content faster, mobile
compatibility, efficient error handling, and effective navigation.
The popular web browsers such as Google Chrome, Internet Explorer,
Opera, Firefox and Safari are examples that allow users to access any
website through the Internet.
Zoom is another example that allows users to create and join meetings
and web conferences through the Internet.
Web Server
Paragraphs (<p>):
Defines a paragraph of text.
Example: <p>This is a paragraph.</p>
Line Break (<br>):
Inserts a line break within text.
Example: <p>This is a line of text.<br>This is a new line.</p>
CSS, or Cascading Style Sheets, is a styling language used to describe the presentation
and layout of a document written in HTML or XML. It allows web developers to control the
appearance of web pages by defining styles for various elements on the page. CSS
enables separation of content and presentation, making it easier to maintain and update
the styling of a website.
body {
background-color: lightblue;
}
h1 {
color: white;
text-align: center;
}
p{
font-family: verdana;
font-size: 20px;
}
`Features Of CSS
CSS (Cascading Style Sheets) is a powerful styling language used to control the
presentation and layout of HTML and XML documents.
Selectors: CSS selectors allow you to target specific HTML elements or groups of
elements to apply styles to. There are various types of selectors, including:
Element selectors: Target specific HTML elements by their tag name.
Class selectors: Target elements with a specific class attribute.
ID selectors: Target a unique element by its ID attribute.
Attribute selectors: Target elements based on their attributes.
Pseudo-classes and pseudo-elements: Target elements based on their state or position
in the document structure.
Box Model: CSS defines a box model for HTML elements, which includes
properties such as width, height, padding, border, and margin. Understanding
and manipulating the box model is essential for controlling the layout and
spacing of elements on a webpage.
Box Model:
CSS defines a box model for HTML elements, which includes properties such as
width, height, padding, border, and margin. Understanding and manipulating the
box model is essential for controlling the layout and spacing of elements on a
webpage.
Layout:
CSS provides various techniques for creating different layout structures,
including:
Floats: Floating elements to the left or right within their parent container.
Flexbox: A one-dimensional layout model for arranging items within a
container, providing more control over alignment, distribution, and order.
Grid: A two-dimensional layout model for creating complex grid-based layouts
with rows and columns.
Responsive Design: CSS supports responsive web design, allowing
you to create websites that adapt to different screen sizes and
devices. Media queries are used to apply styles based on factors such
as screen width, height, and device orientation.
Typography: CSS provides properties for styling text, including font-
family, font-size, font-weight, font-style, text-align, text-decoration,
and line-height. It also supports web fonts for custom typography.
Transitions and Animations: CSS3 introduces properties for
creating smooth transitions and animations, allowing you to change
the style of an element gradually over time or create complex
animations with keyframes.
Flexibility: CSS allows for flexible and modular stylesheets through
features like inheritance, cascading, and specificity. Styles can be
applied globally, scoped to specific elements, or overridden as
needed.