Computer Science
Class-VII
Chapter- 5 HTML- The Language of Web Pages
Section-1
A. Answer these questions orally:
1. What are tags?
Answer: Commands in HTML is called Tags.
2. What are Web Sites?
Answer: Collection of web pages is called Website.
3. Why do we use Text attribute?
Answer: Text attribute is used to set color of the text.
B. Tick the correct options:
1. The HTML code is interpreted and displayed by a:
a. web browser b. server c. monitor d. document
Answer: Web browser
2. ____ element identifies the main part.
a. HEAD b. TITLE c. BODY d. EMPTY
Answer: BODY
3. The BG color attribute is used to set the color of the:
a. background b. playground c. text d. title bar
Answer: Background
Section-2
A. Fill in the blanks:
1. HTML stands for .......................................
Answer: Hyper Text Markup Language
2. HTML elements that include both an ON tag and an OFF tag are called____ elements.
Answer: Container
3. HTML elements that include only an ON tag and no OFF tag are called___ tag.
Answer: Empty
4. An HTML document can have______ or ________ as its extension.
Answer: .html, .htm
5. HTML documents have two distinct parts, _________ and ___________.
Answer: HEAD, BODY
6. The ______ attribute allows you to specify a color to be used background in the web page.
Answer: BG Color
B. State True or False:
1. The Web pages are HTML documents.
Answer: T
2. HTML is a scripting language.
Answer: T
3. An HTML document can not be viewed on a Macintosh computer.
Answer: F
4. Tags can be used to specify the exact font size, line spacing, indents, etc., in a web page.
Answer: T
5. A web page can be viewed in a word processing software.
Answer: F
6. Container elements have an opening tag and a closing tag.
Answer: T
7. Document tags are used to describe the overall structure of a Web page.
Answer: T
8. Text attribute in Body element is used to set the color of the text in the document.
Answer: T
C. Answer the following questions:
1. What is HTML? How does it differ from programming languages?
Answer: A computer language used for creating web pages.
2. Discuss the importance and features of HTML?
Answer: HTML is a cross-platform language. Its documents can be used on any type of computer.
Features:
. HTML documents can be downloaded, interpreted and displayed on web browsers.
. HTML 5.0 is the recent version of HTML.
3. Differentiate between container elements and empty elements in HTML.
Answer: Container Element have both ON tag and OFF tag.
Empty Element have only one tag i.e. ON tag.
4. What are document tags? Define the four basic document tags.
Answer: Document tags are needed for every HTML document. These tags are used to describe the overall structure of the page.
There are four basic document tags.
1. HTML element.
2. HEAD element.
3. TITLE element.
4. BODY element.
5. What do you understand by tag attributes? Mention any five attributes that the Body tag can have. Explain any one of these attributes with an example.
Answer: Some tags have attributes that further provide options for the tag, e.g. the font tag has a color attribute that allows you to specify a color for the particular text.
Five tags:
1. Background
2. BG Color
3. Text
4. Link
5. Left margin
BG Color: The BG Color attribute is used to set the color of the background.
No comments:
Post a Comment