Академический Документы
Профессиональный Документы
Культура Документы
Web Designing
Semester - III
• Introduction to HTML
• HTML Document Structure
• Main HTML Elements
• Creating Hypertext Links
• Adding Images to documents
• Building Tables
• Creating Forms
• Form Controls
• Building Frames
• Special HTML
• Other Elements
• <HTML>
• <HEAD>
• <TITLE> Web Page </TITLE> </HEAD>
• <BODY>
• <h1> Web Shoppe </h1>
• <p>So how will we do this. Well we do the
following
• </BODY>
• </HTML>
Copyright @ Amity University
Extension
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>
1. <p>This is a paragraph.</p>
<a href="http://www.amity.edu">This is a
link</a>
The < img> tag has several attributes to inform the source, height of the
picture, width of the picture alignment etc. The following are its
important attributes.
• Src
• Height
• Width
• Align
• alt
The SRC attribute specifics the location of an image that you would like
incorporated into your HTML document.
<a href="http://www.amity.edu">This is a
link</a>
The following HTML code shows the basic HTML body tags in action.
<HTML>
<HEAD>
<TITLE>Hello World</TITLE>
</HEAD>
<BODY>
This is a very simple web page. Notice that
the browser does not pay attention too spaces that
we
add to our document unless you specify what type of
spacing you want
<P>
Like when you use a paragraph tag or a <BR>
break line tag
<P>
And here is a hard rule
<P>
<HR ALIGN = "CENTER" SIZE = "10" WIDTH = "50%“
COLOR = "AA0000" NOSHADE>
</BODY>
</HTML>
<body style="background-color:yellow">
<h2 style="background-color:red">This is a
heading</h2>
<p style="background-color:green">This is
a paragraph.</p>
</body>
</html>
Copyright @ Amity University
Cont…
• <table border="1">
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
• <form>
.
input elements
.
</form>
• <form>
First name: <input type="text"
name="firstname" /><br />
Last name: <input type="text"
name="lastname" />
</form>
• First name:
Last name:
• <form>
Password: <input type="password"
name="pwd" />
</form>
OUTPUT
Password:
• <form>
<input type="radio" name="sex"
value="male" /> Male<br />
<input type="radio" name="sex"
value="female" /> Female
</form>
• Male
• Female
Copyright @ Amity University
Checkboxes
• <form>
<input type="checkbox" name="vehicle"
value="Bike" /> I have a bike<br />
<input type="checkbox" name="vehicle"
value="Car" /> I have a car
</form>
• I have a bike
• I have a car
</body>
</html>
Copyright @ Amity University
List Box
• cols="20"></textarea>
• </body>
• </form>
Give suggestions
• </html>
• <form>
• <input type="submit" value="Submit" />
</form>
• Username: Submit
Frame
3
Frame
2
• Address Tag
• <address>
Written by W3Schools.com<br />
<a href="mailto:us@example.org">Email
us</a><br />
Address: Box 564, Disneyland<br />
Phone: +12 34 56 78
</address>
Copyright @ Amity University
Output
• Written by W3Schools.com
Email us
Address: Box 564, Disneyland
Phone: +12 34 56 78