Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
What is HTML?
Dynamic Web Page: Web Pages where the content of the web
page depend on user input. So interaction with the user is
required in order to display the web page.
A Sample HTML document
Example-1
<HTML>
<!-- This is html comment -->
<HEAD>
<TITLE> BCA </TITLE>
</HEAD>
<BODY>
This is my first html document.
</BODY>
</HTML>
A Tag tells the browser to do something. They are instructions
that are embedded in HTML documents. Tags can be:
Paired: Container tag i.e. <h1> ……. </h1>
Singular: Empty tag i.e. <hr/>, <br/>
Tag Attributes:
Additional Information applied to an HTML Tag.
Attributes are written immediately following the tag,
separated by space.
Multiple attributes can be given with a tag.
BODY Tag
All the content to be displayed on the web page has to be written
within the body tag.
Example-2
<html>
<head>
<title>BCA</title>
</head>
<body bgcolor="yellow" text="red">
This is a sample <br/>
html document.
</body>
</html>
The BODY tag has following attributes:
Example-3
<html>
<head>
<title>BCA</title>
</head>
<body bgcolor="#00ff00" text="#ff0000">
BASIC CONCEPTS OF WEB DESIGN
</body>
</html>
Tags for Basic Text Formatting
<html>
<head>
<title>BCA</title>
</head>
<body>
<font size="3" color="red">BCA Web Design</font><br/>
<font face="arial" size="5" color="green">BCA Web
Design</font><br/>
<font face="monotype corsiva" size="7" color="blue">BCA Web
Design</font>
</body>
</html>
Special Characters
They have special meaning in HTML.
It has 3 parts:
An Ampersand (&)
An Entity Name
A semicolon (;)