Page 68 - CA 165 ver 1.0 Class 10
P. 68
COMMENTS
Comments are used to add remarks to the programs created in any language. The comments are not
executed by the compilers or browsers of the programs but are displayed in the source programs as they
are. They provide additional information about the program. Comment can also be written in an HTML
document. It is viewed only in source code of HTML.
The main reason to include the comments in HTML is that it helps the new user or reader to understand
the use of HTML codes in a document.
The exclamatory sign (!) followed by (-) is used to denote comments used in HTML document. The text
matter written after ‘!-’ within angular bracket< > is not executed by the web browser. It can be viewed
only in source program with the added information. It is not mandatory to specify comments in an HTML
document. Syntax to use the comments in HTML is as follows:
<! -REMARKS CAN BE ADDED HERE->
For example:
1. <!- This comment is given by Mr. Albert ->
2. <!- The program displays the information about Orange Education, India ->
3. <!- This code will change the background colour and font colour ->
<!- This Program is Developed by ORANGE EDUCATION ->
Comments <!- Creaon Date: 12/08/2021 ->
in HTML <! Last Modified Date: 10/09/2021 ->
Document <!- Purpose of these codes is to work with ->
<!- background colour ->
<HTML>
<HEAD>
<TITLE> COLOR: Lime AND Maroon </TITLE>
</HEAD>
<BODY BGCOLOR = “Lime” TEXT = “Maroon”>
HTML is not a Programming Language like C, C++, JAVA, etc.
</BODY>
</HTML>
<H1>...<H6> HEADING TAGS
Heading tags are container tags. The heading tags ( from<H1> to <H6>) are used to add headings in the
HTML document. Headings are displayed in larger and bolder fonts, than the normal text size. Headings
are also used to organize the contents of the text.
There are six levels of the heading tags, the first level i.e.<H1> tag displays the largest size of text and the
sixth level i.e.<H6> tag displays the smallest size of text and the other heading tags are with text sizes in
between <H1> to <H6>.
The ‘align’ attribute is used with these tags and it helps the headings to appear in left/ right/ center
alignment. Syntax to use the heading tags is as follows:
<H ALIGN = “LEFT” / “RIGHT” / “CENTER”> ... ... ... </H >
n n
66 Touchpad Computer Applications-X

