Basic Web Development
Basic Web Development
t
CONTENTS
Getting Started..
What is HTML?
How to create and View an HTML document?
Basic HTML Document Format
The HTML Basic tags
HTML Tags Attributes
Creating sample website
2
IMPORTANT TERMS:
4
What is HTML?
Hyper Text Markup Language
A markup language designed for the creation of web
pages and other information viewable in a browser
The basic language used to write web pages
File extension: .htm, .html
It tells the browser what to do, and what properties
to use.
A series of tags that are integrated into a text docu
ment.
5
HTML Tags
Tags are ;
surrounded with angle brackets like this
<B> or <I>.
The first tag turns the action on, and the second turns
it off.
6
The second tag(off switch) starts with a forward slash.
For example ,<B> text </B>
It is not case sensitive.
<html> or <HTML> or <hTmL>
Many tags have attributes. Attributes are additional informatio
n used to modify or enhance an element.
For example, <P ALIGN=“CENTER”> centers the parag
raph following it.
Note: The value assigned to an attribute may be enclos
ed in either single quotes or double quotes.
It follows the “first in, last out” rule
<HEAD><TITLE> Your text </HEAD></TITLE> it won't
work.
The correct order is <HEAD><TITLE> Your text </TITL
E></HEAD>
Some browsers don't support some tags and some attributes.
7
Basic HTML Document Format
<HTML>
<HTML> See what it
<HEAD>
<HEAD> looks like:
<TITLE>WENT'99</TITLE>
<TITLE>WENT'99</TITLE>
</HEAD>
</HEAD>
<BODY>
<BODY>
Went'99
Went'99
</BODY>
</BODY>
</HTML>
</HTML>
8
How to Create and View an HTML document?
9
7.You may now switch back and forth between the S
ource and the HTML Document
switch to Notepad with the Document Source
make changes
save the document again
switch back to your browser
click on RELOAD and view the new HTML Document
switch to Notepad with the Document Source......
10
TAGS IN HEAD
<body>
content goes here
</body>
</html>
BODY ATTRIBUTES
Bgcolor Background
Specifies a background-col Specifies a background-im
or for a HTML page. age for a HTML page
<body bgcolor="#000000"> <body background="clouds
<body bgcolor="rgb(0,0, .gif">
0)"> <body bgcolor="blac <body background="http:/
k"> /www.w3schools.com/clou
ds.gif">
ENHANCING TEXT
Put text on a webpage
<p>Today is my first day at my new job, I’m so excited!</
p>
Output: Today is my first day at my new job, I’m so excit
ed!
Put text in center of a page
<center>Hello</center>
Output: Hello
Put text on the right of a page
<p align=“right”>Hello</p>
Output: Hello
ENHANCING TEXT
Put text in bold
<b>Hello</b>
Output: Hello
Put text in italics
<i>Hello</i>
Output: Hello
Put text in underlined
<u>Hello</u>
Output: Hello
Font Attributes
To change text size
<font size=“+3”>Hello</font>
Output: Hello
Tag attribute
To change text color
<font color=“red”>Hello</font>
Output: Hello
Using all
<font size=“+3” color=“red” face=“arial”> >Hello</font>
Output: Hello
To insert line break
<br>
The <A> tells where the link should start and the </
A> indicates where the link ends. Everything bet
ween these two will work as a link.
<A HREF="http://www.yahoo.com">Yahoo!/A>
Internal Links
Internal Links : Links can also be created inside large documents to si
mplify navigation. Today’s world wants to be able to get the info
rmation quickly. Internal links can help you meet these goals.
Select some text at a place in the document that you would like to cre
ate a link to, then add an anchor to link to like this:
<A NAME=“bookmark_name”></A>
The Name attribute of an anchor element specifies a location in
the document that we link to shortly. All NAME attributes in a d
ocument must be unique.
Next select the text that you would like to create as a link to the locati
on created above.
<A HREF=“#bookmark_name”>Go To Book Mark</A>
E-Mail (Electronic Mail)
mailto:kmf@yahoo.com