You are on page 1of 4

Chapter 7: Introduction to HTML

BOOK AND ASSIGNMENT BOOKLET QUESTIONS

Q1.Write a short note on HTML.


Ans. HTML was invented by Tim Berners Lee in 1990 and its first version
called HTML 1.0 was released in 1991.
Hyper Text Markup Language or HTML is the computer language used to
create documents called web pages, on the World Wide Web.

Q2.Explain the tools required to create an HTML document.


Ans.
a) HTML editor
Ans. For creating and saving a web page we need an HTML Editor
We will use Notepad editor for HTML coding.
b) Web Browser
Ans. For viewing HTML code we need a web browser.

Q3.Explain the 3 main components of HTML.


Ans.
1. Html Tags
HTML tags are used to identify HTML elements. A tag is a piece of code that
instructs the Browser how to display a particular text or image.
<tag name> content </tag name>
For example,
<b> WEB DESIGNING </b>
2. HTML Element
An HTML element is everything between the start and the end tag,
including the tags.
3. HTML attributes
Attributes provide additional information about the elements. These
attributes are always specified in the start tag.

Q4.What are the two types of tags? Explain.


Ans. The first tag in the pair is called the start tag.
The second tag is preceeded by a forward slash (/) before its name and is
called the end tag.
Q5. Write the basic structure of an HTML document.
Ans. The basic structure of an HTML document is given by the following
<HTML>
<HEAD>
---------------
</HEAD>
<BODY>
--------------------
</BODY>
</HTML>

Q6.What are the points to remember while writing HTML


Code.
Ans.
1. The tag names and attribute names are not case sensitive.
2. There is no relevance of spaces between the tags.
3. The HTML elements can be nested.

Q7.Explain the attributes of the<BODY> tag.


Ans.
1. BGCOLOR-This attribute is used to set the background colour of the
document.
2. BACKGROUND- It places an image in the background of an HTML
document .
3. TEXT-This attribute is used to set the text colour of the document.

Q8.Differentiate between container and empty elements


Ans
Container Elements 1. Empty Elements
1. These elements have both start 2. These elements have start
and end tags. tag but do not have an end
tag.
2. Container elements contains 3. Empty elements have no
parameters parameters.
Parameters of an element are
given between the start and end
tag.
3. For example, <b>, </b>, <u>, </u>, 4. For example, <br> <hr>
<font></font>, etc. are container <img> etc are empty
elements. elements

Q9.Define :
i. Title -The <title> element is a container element. This title is displayed
in the title bar of the browser window.
ii. BODY -This section contains the main content of the web page which
includes text and graphics
iii. HEAD - The <head> provides information about the document page and
is the first element contained inside the <html>element.

Q10.Define
i. <Br>- element is used to give line break in the HTML code. It is an
empty element.
ii. < Hn> </Hn>-heading element is used to give section heading. The
heading element is written as <Hn>.....</Hn>, where n is the level of the
heading and can have values from I to 6.
iii. <Center> </Center> element center’s the content mentioned in
the start and end tag.
iv. <P> </P> element is needed to break a line at a specific place, and
also insert some extra space between the lines.
Q11. Question 14 of textbook pg74.
Ans
a) <HTML>
<HEAD> </HEAD>
<BODY >
<H1>My First Heading</H1>
<P>My first paragraph
</BODY>
</HTML>
_____________________________________________________________
b) <HTML>
<HEAD>
<TITLE>My New Web Page </TITLE>
</HEAD>
<BODY >
<H1>Welcome to my WebPage !</H1>
<P>This page illustrates how you can write proper HTML using only a text
editor,<br>such as Windows Notepad. You can also download a free text
editor,such as <br>Crimson Editor ,which is better than Notepad.
</P>
</BODY>
</HTML>

*******************************

You might also like