Unit I - Website Basics, HTML, Css-1
Unit I - Website Basics, HTML, Css-1
CLIENT:
Initiate the request(HTTP request)
server.
SERVER:
Why FTP?
two systems may have different file conventions.
Two systems may have different ways to represent
text and data.
Two systems may have different directory structures.
FTP protocol overcomes these problems by
establishing two connections between hosts. One
connection is used for data transfer, and another
connection is used for the control connection.
HYPER TEXT TRANSFER PROTOCOL(HTTP)
It is a protocol used to access the data on the World
Wide Web (www).
The HTTP protocol can be used to transfer the data in
the form of plain text, hypertext, audio, video, and so
on.
Features of HTTP:
Connectionless protocol:
Media independent:
Stateless:
HTTP messages are how data is exchanged between a
server and a client.
There are two types of messages:
requests - sent by the client to trigger an action on the
server
responses - the answer from the server.
SIMPLE NETWORK MANAGEMENT
PROTOCOL(SNMP)
It is a protocol which enables network
administrators to manage network devices and to
diagnose network problems.
SIMPLE MAIL TRANSFER PROTOCOL(SMTP):
SMTP is a set of communication guidelines that
allow software to transmit an electronic mail over the
internet
SMTP:
TAG DESCRIPTION
</img>
HTML Links - Hyperlinks
You can click on a link and jump to another
document.
TAG MEANING
102 BBBB IT
First
THIRD
Third
SECOND
SECOND
HTML Table - Cell Padding
• Cell padding is the space between
the cell edges and the cell content.
• By default the padding is set to 0.
HTML Table - Cell Spacing
• Cell spacing is the space between each cell.
• By default the space is set to 2 pixels.
HTML FRAMES
• HTML Frames are used to divide the web
browser window into multiple sections.
• A frameset tag is the collection of frames in the
browser window.
Target in another frame
Sample.html
<html>
<frameset rows="50%,50%">
<frame src="a.html" name="lf">
<frame src="" name="rf">
</frameset>
</html>
a.Html
<html>
<body>
<a href="b.html" target="rf">click meeeeeeeee</a>
</body>
</html>
b.html
<html>
<body>
<a href="b.html" target="rf">click meeeeeeeee</a>
</body>
</html>
HTML FORMS
An HTML form is used to collect user input.
The user input is most often sent to a server for
processing.
ELEMENTS
ELEMETS MEANING
<form>….. </form> to create an HTML form
<input type="text"> Displays a single-line text input field
CSS saves a lot of work. It can control the layout of multiple web pages all at once.
TYPES
To use an external style sheet, add a link to it in the <head> section of each
HTML page
Sample.html style.css
body {
background-color: powderblue;
}
h1 {
color: blue;
}
p {
color: red;
}
CSS Selectors
• Simple Selector
• Universal Selector
• Grouping Selector
• Class selector
• Id selector
Simple selector
Universal selector
Grouping Selector
Class selector
Id selector
RULE CASCADING
When two rules from the same cascade layer , the one that
is defined last in the stylesheet is the one that will be used.
INHERITANCE
some CSS property values set on parent elements are inherited by
their child elements, and some aren't.
background-color: any color
background-image: url("paper.gif")
background-position: center
background-attachment: fixed
background-repeat: repeat-y
background-size: 300px 100px
BACKGROUND-COLOR
BACKGROUND-IMAGE
BACKGROUND-REPEAT
BACKGROUND-ATTACHMENT
Border-style:dotted/dashed/solid/double/hidden/none
Border-top-style:
Border-color:
Border-width: px/thick/medium
Border-image:url(‘’)
BORDER-STYLE & BORDER-COLOR
BORDER-WIDTH
BORDER-IMAGE
BORDER-IMAGE
BORDER-IMAGE
COLOR
Text-align:center/left/right/justify
Direction:rtl/ltr
Text-decoration-line: underline/overline;
Text-decoration-color: red;
Text-decoration-style : double/solid/dashed/dotted
Text-decoration-thickness:5px
Text-transform: lowercase/uppercase/capitalize
Text-indent:50px
Letter-spacing:
Word-spacing:
Line-height:
Text-shadow:
Text-orientation:
CSS Shadow Effects
With CSS you can add shadow to text and to elements.
text-shadow
box-shadow
CSS Text Shadow
The CSS text-shadow property applies shadow to text.
In its simplest use, you only specify the horizontal shadow
(2px) and the vertical shadow (2px)
CSS box-shadow Property
The CSS box-shadow property is used to apply one or more shadows to an
element.
Specify a Horizontal and a Vertical Shadow
In its simplest use, you only specify a horizontal and a vertical shadow.
The default color of the shadow is the current text-color.
CSS TRANSITIONS
CSS Transitions
CSS transitions allows you to change
property values smoothly, over a given
duration.
To create a transition effect, you must specify two
things:
◦ the CSS property you want to add an effect to
◦ the duration of the effect
◦ transition
◦ transition-delay
◦ transition-duration
◦ transition-timing-function
transition-timing-function