and to format text. An example program displays formatted text using tags like for bold, for italic, and
for line breaks. Common tags are also used for paragraphs, headings, striking text, and subscripts."> and to format text. An example program displays formatted text using tags like for bold, for italic, and
for line breaks. Common tags are also used for paragraphs, headings, striking text, and subscripts.">
Nothing Special   »   [go: up one dir, main page]

HTML

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 1

HTML

- Voice of Web
Introduction
Hyper Text Markup Language is the heart of web. It is so very easy to learn that it takes hardly 1
hour of our time and sweats us the least. The primary advantage with HTML is that we need not require
any extraordinary programming skills to master it. All we need to remember is set of tags and that’s all!!

Fundas
HTML files are first composed in notepad and then saved with the extension as .html. These files
can always be edited by opening with notepad and opening with browser shows the result. Every HTML tag
is of the form < keyword > and every tag ends as < / keyword > (Don’t worry about spaces and all other
formatting criteria because HTML does’nt bother them). These tags can be viewed as functions in C.

Example
Simple program to display a message on browser:
<head>
<title>First webpage in HTML</title>
</head>
<body>
<font face = “Comic Sans MS” size = 3 color = black>
<b>Computer </b>
<i>Science</i><br/>
<u>Engineering</u>
</font>
</body>
In above example, <head> tag is used to control the headings. Title is given to webpage using
<title> tag. <body> tag is used to display the text in the page. Here Computer is enclosed between <b>
tag indicating that the text should be bold (same as orkut). Similarly, Science would appear as italic.
<br/> is used to make a line break. The <u> tag is used to underline the text enclosed within the tags.
The font tag is used to set the font style. Face sets the type of font and size, color are used respectively
to adjust the size and color of text. (Color can be any name from predefined set of colors or its
hexadecimal code)
Thus the output of the above code would be
Computer Science
Engineering

Some other important tags are:

<p> </p> The enclosed text shall be displayed in a paragraph


<big> </big> The enclosed text will appear big in the browser
<h1> </h1> Used to write first level headings
<s> </s> Striking the text
<sub> </sub> Used for subscripting the text

M Kishan
4th year

You might also like