Professional Documents
Culture Documents
NET
UNIT-I
HTML (HYPERTEXT
MARKUP
LANGUAGE)
INTERNET:
INTERNET CONTINUE..
APPLICATION OF INTERNET:
WEB DESIGNING:
Web browser
Editor
Web page
Web site
Home page
Language(html,js,css)
WEB BROWSER:
User Interface
ARCHITECTURE OF WEB
BROWSER
data
persistence
Browser Engine
Rendering Engine
Networking
js interpreter
XML Parser
Display backend
10
11
12
WEB SERVER:
13
HYPERTEXT :
14
HYPERMEDIA :
15
INTRODUCTION TO HTML :
HTML 2.0 (IETF, 1994): tried to standardize these & other features
in 1994-96, Netscape & IE added many new, divergent features
16
VERSIONS OF HTML :
17
VERSIONS :
Heading
This HTML element is used to determine headings
on a webpage.
Images
The image element can be used to add images, to
your webpage.
Links
The link element can be used to link different
pages of the website.
18
ELEMENT OF HTML :
<HTML>
<HEAD>
<TITLE>--------</TITLE>
</HEAD>
<BODY>
----------</BODY>
</HTML>
19
WHERE WE EXECUTE :
1.Double Click that HTML File. (or)
2.Right click Open With Internet
Browser
20
21
HTML TAGS:
22
ATTRIBUTES
<html></html>
All markup must be placed within HTML tags
<head></head>
Contains information about the page as well as other
non-display content
<body></body>
All display content should go inside these tags
<h1></h1>
This is a heading the number can range from 1 to 6
for different sizes.
Prepared by Mr.Javed sayyad
23
<p></p>
Tells the browser that the enclosed text should be set
off in a paragraph.
<b></b> or <strong></strong>
Bolds the tagged text
<em></em> or <i></i>
Italicizes the tagged text
<br>
Inserts a line break
This is an empty tag it does not have a closing tag.
Prepared by Mr.Javed sayyad
24
<hr>
Inserts a horizontal rule (line)
This is another empty tag
An HTML Comment which is NOT displayed in the
page is done like this:
<!-- This is a comment -->
Hyperlinks
Hyperlinks are created using the <a> tag, which stands
for anchor. The format looks like this:
<a href=url_to_document>Content to click on for
the link</a>
Prepared by Mr.Javed sayyad
25
Tables
Tables require three different tags:
<table></table>
Defines the table itself
<tr></tr>
Defines a table row
<td></td>
Defines a table cell (table data)
26
<th></th>
<th> is similar to <td> but displays heading centered in
bold.
Colspan:
If you want data spans more than one column then colspan.
<td colspan="2">
Rowspan:
similarly, can span more than one row then rowspan
<td rowspan="2">
Prepared by Mr.Javed sayyad
27
Font
You can modify more exactly the way text looks by using the
<font></font> tag:
<font color=red size=3 face=Garamond>
This is red, size 3, and in Garamond!
</font>
Lists
Two main types:
Unordered list
<ul></ul>
Ordered List
<ol></ol>
28
Image
include images using img tag.
by default, browsers can display GIF and JPEG files.
other image formats may require plug-in applications
for display.
Syntax:
img src="URL (or filename)" height="n" width="n"
alt="text" title= "text" />
29
30
HTML FORM :
METHODS
1.$_GET:
The built-in $_GET function is used to collect values
from a form sent with method="get".
Information sent from a form with the GET
method is visible to everyone (it will be displayed
in the browser's address bar) and has limits on the
amount of information to send (max. 100
characters).
When using method="get" in HTML forms, all
variable names and values are displayed in the
URL.
METHODS
2.$_POST:
Information sent from a form with the POST
method is invisible to others and has no limits on
the amount of information to send.
because the variables are not displayed in the
URL, it is not possible to bookmark the page.
3.$_REQUEST:
Contains the values of both the $_GET and
$_POST arrays combined, along with the values of
the $_COOKIE super global array.
36
A password field:
<input type="password" name="textfield3" value="secret">
37
BUTTONS
A submit button:
<input type="submit" name="Submit" value="Submit">
A reset button:
<input type="reset" name="Submit2" value="Reset">
A plain button:
<input type="button" name="Submit3" value="Push Me">
38
CHECKBOXES
A checkbox:
<input type="checkbox" name="checkbox
value="checkbox" checked>
type: "checkbox"
name: used to reference this form element from JavaScript
value: value to be returned when element is checked
39
RADIO BUTTONS
Radio buttons:<br>
<input type="radio" name="radiobutton" value="myValue1">
male<br>
<input type="radio" name="radiobutton" value="myValue2" checked>
female
40
A menu or list:
<select name="select">
<option value="red">red</option>
<option value="green">green</option>
<option value="BLUE">blue</option>
</select>
Additional arguments:
size: the number of items visible in the list (default is "1")
multiple: if set to "true", any number of items may be selected
(default is "false")
41
HIDDEN FIELDS
42
43
INTRODUCTION
INLINE:
In html tag if style attribute is given then it is
called inline.
INTERNAL:
In html file if Css code is given using style tag
then it is called internal.
EXTERNAL:
calling Css file in html file
INLINE CSS:
In html tag if style attribute is given then it is
called inline.
Example:
<html>
<body style=background: yellow;>
<h1 style=background:red;textalign=center;>Maulana azad college</h1>
</body>
</html>
HTML SELECTOR:
It is used for specific html tag. It is created with html tag
name.
Example:
<html>
<style>
Body{Background:cyan;}
H1{background:green;color=yellow;text-align:center}
p{background:red;font-family:arial;font-size:30px}
</style>
CONTINUE
<body>
<h1>Maulana azad college</h1>
<p>Dr. rafiq zakaria campus aurnagabad</p>
</body>
</html>
CLASS SELECTOR:(.)
It is used for any html tag.
Example:
<html>
<style >
.Abc
{
Background:cyan;color:blue;borderstyle:dashed;border-color:red;border-width:3px;textalign:center;font-family:arial black; font-size:20px;
}
</style>
CONTINUE
<body>
<div class=abc>
<h1>Maulana azad college</h1>
<p>Dr. rafiq zakaria campus aurnagabad</p>
<h2 class=abc>PG department of computer
science</h2>
</body>
</html>
ID SELECTOR:(#)
It can be used for any html tag, it is mainly used
for layouts in css.
Example:
<html>
<style type=text/css>
#abc
{Background:cyan;color:blue;bordertyle:dashed;border-color:red;borderwidth:3px;text-align:center;font-family:arial black;
font-size:20px;}</style>
CONTINUE
<body>
<h1 id=abc>Maulana azad college</h1>
<p>Dr. rafiq zakaria campus aurnagabad</p>
<h2 id=abc>PG department of computer
science</h2>
</body>
</html>
EXTERNAL CSS:
calling css file in html file.
Example:
File name=style.css
Body
{Background:cyan;}
H1{color:blue;text-align:center;}
Class1{border-style:groove; borderwidth:2px;border-color:green}
CONTINUE
<html>
<link ref=stylesheet href=style.css>
<body>
<h1 class=class1>Maulana azad college</h1>
<p class=class1>Dr. rafiq zakaria campus
aurnagabad</p>
<h2 class=class1>PG department of computer
science</h2>
</body>
</html>