Saturday, 11 January 2014

attribute example2

<!--this is
my first html
program -->
<html>
 <head>
  first html
</head>
<body bgcolor="blue">
 hello world
</body>
</html>

Attributes: example 1

<html>
 <head>
  <title> attributes</title>
 </head>
 <body bgcolor="#00ffff" text="#ff0000">
  hello welcome to html
 </body>
</html>

example prog for paragraph


<!DOCTYPE html>
<html>

<body>
<p>This is my first paragraph.</p>
</body>

</html>

anchor tag exampl

<!HTML Links>

<html>
 <title>anchor tag</title>
<body>

<a href="http://improvejava.blogspot.in">This is a link</a>
</body>
</html>

Heading example

<!DOCTYPE html>
<html>
 <title>First html </title>
<body>

<h1>My First Heading</h1>

<p>My first paragraph.</p>

</body>
</html>

example program

<!--this is
my first html
program -->
<html>
 <head>
  first html
</head>
<body>
 hello world
</body>
</html>

Tuesday, 15 January 2013

header tags

<!DOCTYPE html>
<html>
<head>
<style type="text/css">
h1 {color:red;}
h2 {color:blue;}
p {color:green;}
</style>
</head>

<body>

<h1>All header 1 elements will be red</h1>
<h2>All header 2 elements will be blue</h2>
<p>All text in paragraphs will be green.</p>

</body>
</html>