Monday, March 23, 2015

HTML comment and headings for beginers





Untitled Document




HTML comment and headings.

 

Comments in HTML

Comments will add to increase the readability of your HTML code as well as details about your code.Browser will not display your comment.

we want to set a comment in HTML we use <!—comment--> tag.

The comment tag includes the actual comment text. Any instance of --> ends the comment. Whitespace may be included between the -- and the > but not between the <! and the first --.

EX :-

<!--this is comment-->

Set a Headings in HTML web page.




There are 6 styles to add a heading to your HTML web page.

When set Headings using <h1> , <h2> ,<h3> ,<h4>, <h5> ,<h6> tags.

Each tag has each font sizes. Do following activity for understand behaviors of this tags.

<html>

<head><title>My first web page</title>

</head>

<H1>HTML is Easy</H1>

<h2>HTML is Easy</h2>

<h3>HTML is Easy</h3>

<h4>HTML is Easy</h4>

<h5>HTML is Easy</h5>

<h6>HTML is Easy</h6>

</html>

Set alignment to the headings.

For set alignment to the heading using align option. When choose alignment of heading, It can be 3 types.

  1. Left
  2. Right
  3. Center

Now lets see how to set alignment to the heading.

<html>

<title>My first web page</title>

<H1 align="center">HTML is Easy</H1>

<h2 align="right">HTML is Easy</h2>

<h3 align="left">HTML is Easy</h3>

</html>

Lets refer next tutorial



1 comments:

 

ICT SKILL © 2015 - Designed by Templateism.com, Plugins By MyBloggerLab.com