HTML Chapter 7
HTML Chapter 7
PRACTICAL EXCERCISE :
1. Create an HTML document on “SAVE ENVIRONMENT - SAVE EARTH”.
Save the file with .html or .htm extension and analyse it in the web browser.
Ans: <HTML>
<HEAD>
<TITLE> SAVE ENVIRONMENT - SAVE EARTH </TITLE>
</HEAD>
<BODY>
Going green is easier than you think. There are little things you can do every day to help
reduce greenhouse gases and make a less harmful impact on the environment. Taking
care of the Earth is not just a responsibility -- it’s a privilege. You may not be able to
reduce global warming, end pollution and save endangered species single-handed, but
by choosing to live an earth-friendly lifestyle you can do a lot every day to help achieve
those goal.
And by making wise choices about how you live, and the amount of energy and natural
resources you consume, you send a clear message to business, politicians and government
agencies that value you as a customer, constituent and citizen.
</BODY>
</HTML>
EXTRA QUESTIONS
Q1. What are the two major parts of an HTML ?
Ans: The two major parts of an HTML are:
(i) Hypertext, and (ii) Markup
Q2. Write the advantages of HTML.
Ans: # It is used with all the browsers.
# It does not require prior knowledge of any programming language.
# It does not require any additional software to execute any code.
Q3. Define a tag in HTML document.
Ans: The instruction given in HTML in the form of text characters can be defined as
a tag.
Q4. What do you unserstand while writing a tag ?
Ans: When we write a tag in HTML document it should not include extra spaces between
any characters (tag name).
Q5. What are three physical text style ?
Ans: The three physical text styles are B (Bold), I (Italic) and U (Underline).
Q6. What are the two distinct parts of an HTML document ?
Ans: An HTML document has two distinct part - a heand and a body.
Q7. What does URL stand for ?
Ans: It stands for Uniform/Universal Resource Locator.
Q8. In what file format are HTML pages saved ?
Ans: In ASCII text file format all the HTML pages are saved.
Q9. What file extension should be used for an HTML document ?
Ans: .html ot .htm
Q10. What are the three basic document tags ?
Ans: The three basic document tags are:
(i) <HEAD> (ii) <TITLE> (iii) <BODY>
Q11. Write the importance of HTML.
Ans: 1. HTML can be used to display any type of document on the host computer
which can be on any computer (anywhere in the world).
2. It is a versatile language and can be used on any platform (Macintosh,
Unix, Window, etc.)
3. HTML is used to make the text look attractive.
4. It has the additional feature of linking one document with another.
Q12. Write the steps to start Notepad.
Ans: To start Notepad, select
Start - All Programs - Accesories - Notepad
The Notepad window will appear.
Type the HTML document.
Q13. Write the steps to save the HTML document.
Ans: To save the document, click File - Save.
The Save As dialog box will appear.
Give the Filename as Example.htm and click Save button.
Q14. Fill in the blanks:
(a) HTML stands for Hypertext Markup Language.
(b) An HTML document has two distinct parts: head and body.
(c) In HTML document, the tags that have both an opening tag and a closing tag are
called container elements.
(d) <HR> is an empty element.
(e) <HTML> tag identifies the document as an HTML document.
(f) The <TITLE> element is the only element that is required in the head of a document.
(g) The <HR> element draws a horizontal line across the page.
Q15. Define the following terms used in HTML with one example each:
(a) Tag (b) Attribute
Ans: (a) Tag : The instruction given in HTML in the form of text characters.
e.g. < B > Here, left and right angle bracket are the tags.
(b) Attribute : Attributes provudie additional information about a tag such as
alignment, font colour, size of the text,
etc.
e.g. <FONT ALIGN=”CENTRE” SIZE=”10” >
Here, ALIGN and SIZE are the attributes