Professional Documents
Culture Documents
1.What is HTML?
Ans: Hyper text markup language is used to
create a web pages .It allows plain text to be
formatted like bold, italic etc., We can also
insert images, hyperlinks on a web page
2. What are the main requirements to run html
programme?
1. Internet Browser
2. Html editor – notepad
3.What is the structure or syntax of an Html
programme?
Ans: <html>
<head>
</head>
<body>
</body>
</html>
4. What are the file extensions used by html?
Ans: The file extensions are .html, .htm
5.What are the Head and Body section
Ans: The html document is divided into two
categories
(i) Head Section: <Head> and </head>
tags are used to identify the headings or
titles of document <title>.....</title> to
appear the title in browser
(ii) Body section: The body of html
document contains the text that will
show upon the webpage.The body
section enclosed in between
<body>.....</body>
Example1:
<html>
<head>
<title> My first html document
</title>
</head>
<body>
Welcome to my first html page
</body>
</html>
Example2: for background color
<html>
<head>
<title> My first html document
</title>
</head>
<body bgcolor=’green’>
Welocme to my first html page
</body>
</html>
Example3: <br/> tag
<html>
<head>
<title> My first html document
</title>
</head>
<body >
WelcOme to my first html page
<br/>
my page under construction</body>
</html>
Example 4: paragraph tag
<html>
<head><title> THIS IS HTML PAGE
</TITLE>
</HEAD>
<BODY><P> Computer is an electronic
device .It accepts data as input process the
data and displays the result as output
</body>
</html>
Example 5: for bold italic and underline
<html>
<head><title> THIS IS HTML PAGE
</TITLE>
</HEAD>
<BODY><br/>
<U><I><B>WELCOME TO COMPUTER
LAB</B></I></U>
</BODY>
</HTML>
Example 6:
<html>
<head><title> THIS IS HTML PAGE
</TITLE>
</HEAD>
<BODY>
<MARQUEE> Welcome to my web page ..
My page under construction
</marquee>
</body>
</html>
Example 7:
<html>
<head>
<title> THIS IS HTML PAGE
</TITLE>
</HEAD>
<BODY>
<font size="3" color="red">This is some
text!</font>
<font face="verdana" color="green">This is
some text!</font>
<font size="2" color="blue">This is some
text!</font>
</BODY>
</HTML>
ADVANCED HTML
HTML ATTRIBUTES
1. What are HTML Attributes?
Ans: Attributes provide additional
information about html elements
i) HTML elements can have attributes
ii) Attirbutes are always specified in
the start tag
iii) Attributes come in pairs like
name=’value’
2. What is HTML Hyperlinks
Ans: The HTML <a> tag defines a
hyperlink or link is word or group of
words, or image that you can click on to
jump to another document.
3. Write the syntanx for hyperlink
Ans: HTML links are defined with < a>
tag. The link address is specified in the
href attribute.
Syntax:
< a href= “default.htm”>
Example:
<a href=http://www.google.com> this is
a link </a>
4. What does the href attribute contain?
Ans: The HREF is an attribute of
the anchor tag, which is also used to
identify sections within a document. The
HREF contains two components: the
URL, which is the actual link, and the
clickable text that appears on the page,
called the "anchor text."
Tag Description
<th> Defines a header cell in a table
<tr> Defines a row in a table
Defines a cell in a table
<td>
<tc> Defines table caption