Long answer questions. Ch.
7
1. Explain HTML
HTML stands for Hyper Text Markup Language. It is a markup language used to prepare
document (web page) on the World Wide Web. HTML is a method of converting ordinary
text into hypertext by using the special codes, called tags. HTML is a text oriented
language and is supported on almost every browser.
2. What are tags? Explain its two types.
HTML tags are keywords which defines that how web browser will format and display the
content. With the help of tags, a web browser can distinguish between an HTML content
and a simple content. It defines the elements in an HTML file such as headings, images,
paragraphs and list.
Two type of tags are :- container tag and Empty tag.
Container tag :- Container tags in HTML are composed of three parts: the opening tag, the
content inside the tag, and the closing tag. Container tag always comes with
content. Container tag consists of opening tag+content+closing tag. They are used to
enclose texts and images.
Empty tag:-Tags which have only the opening tags are called Empty Tags. Empty tags do
not require a closing. These tags represent formatting constructs. Empty tags can be
used inside the container tags.
3. What are attributes?
HTML attributes provide additional information about HTML elements. Attributes allow
you to specify how web browsers should treat a particular tag. An attribute is included
within the actual tag either within an opening tag or an Empty tag. Closing tags should
not contain attributes.
4. Explain the structure of an HTML document.
An HTML Document is mainly divided into two parts:
• HEAD: This contains the information about the HTML document. For Example, the Title of
the page, version of HTML, Meta Data, etc.
• BODY: This contains everything you want to display on the Web Page.
<HTML>
<HEAD>
<TITLE> page title </TITLE>
</HEAD>
<BODY>
<P> paragraph content</P>
</BODY>
</HTML>
5. Differentiate between a container tag and an empty tag.
Container tags
Container tags in HTML are composed of three parts: the opening tag, the content inside
the tag, and the closing tag. Container tag always comes with content. Container tag
consists of opening tag+content+closing tag. They are used to enclose texts and images.
Empty tags
Tags which have only the opening tags are called Empty Tags. Empty tags do not require
a closing. These tags represent formatting constructs. Empty tags can be used inside the
container tags.
6. Differentiate between the Text editor and the Word Processor.
Text Editor
Text Editor is used to write & edit text. It includes CSS, PHP, HTML, JS and other
languages. It helps the user to compare between syntax and normal text. Text editor will
use for programming purpose.
Word Processor
It allows to edit text with multiple other functions like formatting of text.
The famous word processers are WordPad, notepad apple works etc. It is difficult to
compare between syntax and normal text. Word processor we use to store and create
the typed document in a new way.