Class 7 Choose the correct answer: 1. The most popular services of the Internet is a) Network b) WWW c) HTML d) None of these 2. The language used for designing web page is a) BASIC b) JAVA c) HTML d) C++ 3. Commands in HTML are known as a) tags b) keywords c) Reserved words d) All of these 4. A tag that requires an opening as well as a closing tag is a) container tag b) empty tag c) keyword d) none of these 5. The special keyword used inside the tag to specify additional information is a) <HR> b) BGCOLOR c) TEXT d) attribute 6. The tag used to specify the title of a web page is a) b) c) <TITLE> d) None of these 7. The tag that defines the content of a web page is a) <BODY> b) c) <TITLE> d) <HTML> 8. The tag that does not require a closing tag is a) b) Empty tag c) attribute d) None of these 9. Which of the following is a web browser? a) Notepad b) Internet Explorer c) Photoshop d) Word pad Fill in the Blanks : 1. WWW is a collection of interconnected web pages. 2. HTML stands for Hyper Text Markup Language. 3. A coded HTML command that defines the structure and appearance of a web page is called a tag. 4. Web pages written using a special language is called HTML. 5. All HTML tags are enclosed within angle brackets (<>). 6. Tim Berners Lee was the primary author of HTML. 7. A web browser is a software that lets you view the output of the HTML page. 2 mark questions: 1. Write a note on WWW. WWW is a collection of interconnected web pages. A web page is a page containing text, images, audio, videos, and links to other web pages.
2. Define HTML. HTML is a language used for designing web pages. It is a language that describes the content, format and layout in which a web page should be displayed over the World Wide Web. 3. Write a note on HTML tags. Commands in HTML are known as tags. A tag is a coded HTML command that defines the structure and appearance of a web page. All HTML tags are enclosed within the angle brackets (<>). 4. Define Container tag. A Container tag is a tag that requires an opening as well as a closing tag. A tag is closed u placing a forward slah (/) in front of a tag name. They are always used in pairs. 5. What do you mean by attribute in HTML? An attribute is a special keyword used inside the tag to specify additional information about the tag. For example : <H1 Align= center > 6. Write a note on HTML editors. To create a HTML document, you require an HTML editor. An HTML editor is a software program that enables you to easily create HTML document. There are two types of editors namely WYSIWYG editor and TEXT editor. 7. What is WYSIWYG editor? WYSIWYG stands for What You See Is What You Get. These editors provide an in-built interface wherein you can quickly design web pages without writing any HTML tags as well as preview the web pages. 8. Differentiate between and <BODY> tag. The tag is used to provide some additional information including title, scripts used, etc. about a web page. It is a container tag. <BODY> The <BODY> tag defines the content of a web page. It is also a container tag. All the tags that display text, images or links as a part of a web page are written between the opening and the closing BODY tags. 9. List the tags that form the basic structure of a HTML document. <HTML> Tag : It identifies the document as a HTML document. Tag : It is used to provide some additional information including title, script etc. <TITLE> Tag : It specifies the title of a web page. <BODY> Tag : It defines the contents of a web page. 10. Differentiate between container tags and empty tags. Container Tags It requires an opening as well as a closing tag. <H1> is an opening tag and </H1> is a closing tag. Empty Tags It does not require a closing tag. <HR> and <BR> are the examples of Empty tags. 5 mark questions: 1. Explain the structure of a HTML document. 2. List out the steps to create a HTML document using Notepad. 3. How do you view a HTML document?
Class 7 Choose the correct answer: 1. Which of the following is not an attribute of the <HR> tag? a) Align b) Thickness c) Width d) Color 2. Which of the following is not a container tag? a) <HR> b) <BODY> c) <CENTER> d) <FONT> 3. The attribute of the <BODY> tag used to specify the color of the text displayed on a web page is a) BGCOLOR b) TEXT c) COLOR d) BACKGROUND 4. The attribute of the <BODY> tag used to specify the background color of a web page is a) BGCOLOR b) TEXT c) COLOR d) BACKGROUND 5. The Hexadecimal code for RED is a) #FFFF00 b) #FF0000 c) #0000FF d) #FF00FF 6. The Hexadecimal code for Gray is a) #808080 b) #8000FF c) #0000FF d) #FF0080 7. The tag that shifts the text following it to the next line is a) <LBREAK> b) <LINEBREAK> c) <BREAK> d) <BR> 8. The heading tags have just one attribute called a) TEXT b) BACKGROUND c) ALIGN d) SIZE 9. The attribute used to change the font type is a) FACE b) FONTTYPE c) TYPE d) None of these 10. The tag used to align the text or image in the centre of the browser is a) <MIDDLE> b) <CENTER> c) <CENTRE> d) None of these Fill in the Blanks : 1. You can insert many <BR> tags in the HTML code to include multiple line breaks in the output. 2. When heading tags are used, a blank line gets automatically added before and after the heading. 3. The tag used to italicize a given text is <I>. 4. The <P> tag inserts a blank line before and after the text. 5. The <FONT> tag is used to change the appearance of the text on a web page. 6. The hexadecimal code for Black is #000000. 2 mark questions: 1. Write a note on <BODY> tag. The <BODY> tag is a container tag which encloses all the tags that describe the content and the layout of a web page. Any text, images links etc. that need to be shown as a part of the web page are included within the opening and closing <BODY> tags.
2. Write a note on Hexadecimal RGB. Hexadecimal RGB values are used to specify the colors. All colors are made up of three primary colors Red, Green and Blue. The first two digits represent the amount of Red (R), the second two digits represent the amount of Green (G) and the last two digits represent the amount of Blue (B) that a color contains. 3. What is the use of <BR> tag? To explicitly force a line break between two lines in the output, you use the Line Break <BR> tag. It shifts the text following it to the next line. It is an empty tag. It does not have any attributes. 4. How do you use Paragraph <P> tag? The Paragraph <P> tag marks the beginning of a paragraph. It is a container tag. When a tag is included within the opening and the closing <P> tag, a blank line is inserted before and after the enclosed text. It has only one attribute called ALIGN. 5. What are heading tags? Heading tags display text in larger as well as bolder font than the normal body text. HTML provides six levels of headings - <H1> to <H6>, with 1 being the largest and 6 being the smallest size. The Heading tags have just one attribute called align. 6. What is the use of <HR> tag? The <HR> tag stands for Horizontal Rule. This tag inserts a straight horizontal line across the web page. By default, the horizontal line appears shaded and spans the width of the browser window. 7. What are the tags used to emphasize text in HTML? It contains the following tags : All the tags are container tags. <CENTER> Tag : You can align the text in the centre of the browser window using the opening and closing <CENTER> tags. <B> Tag : It is used to make the text appear in bolder font compared to the normal body text. <U> Tag : It is used to underline the text. <I> Tag : It is used to make the text appear italicized. 8. What is the purpose of BGCOLOR and TEXT attribute of the <BODY> tag? In the <BODY> tag, the attribute BGCOLOR is used to specify the background color of a webpage and the TEXT attribute is used to specify the color of the text to be displayed on a webpage. 9. What is the difference between <P> and <BR> tags? The paragraph tag (<P>) marks the beginning of a paragraph. It is a container tag. The Line Break tag <BR> is used to explicitly force a line break between two lines in the output. 10. How would you specify the thickness and length of the horizontal line in HTML? In HTML, the <HR> tag inserts a straight horizontal line across the webpage. To specify the thickness of the horizontal line, we can use the size attribute of the <HR> tag and length of the horizontal line can be specified using the width attribute of the <HR> tag. 11. Name the attributes of the <FONT> tag. The attributes of <FONT> tag are: Size to specify size of text, Color to specify colour to be used to display text and Face to change font type. 5 mark questions: 1. Tabulate the attributes of the <BODY> tag. 2. Tabulate the attributes of the Horizontal Rule <HR> tag. ******************************
Lab Exercises HTML 1. Write HTML code to display your name and address. (Use BGCOLOR and TEXT attributes) <HTML> <TITLE>My Name and Address</TITLE> <BODY BGCOLOR="yellow" TEXT="red"> R. Andrew,<BR> # 13, Casa Major Road,<BR> Egmore, Chennai - 8. </BODY> </HTML> 2. Design a web page according to the following specifications : The title of the page should be Great Dance School. The background colour of the page should be crimson. The heading Great Dance School should appear in white, underlined, size 6 and font type Gloudy Stout. The subheading Indian Classical Dance School should appear in white, Italicised and as a level 3 heading. Rest of the text on the web page should appear in aqua colour with size 4. The horizontal line should be yellow with thickness 8. <HTML> <TITLE>Great Dance School</TITLE> </HEAD> <BODY BGCOLOR="crimson" TEXT="white"> <FONT FACE="Goudy stout" SIZE="6"> <CENTER><H1><U>Great Dance School</U></H1></FONT> <H3><I>Indian Classical Dance School</I></H3></CENTER> <HR SIZE="8" NOSHADE COLOR="yellow"> <FONT FACE="Arial" SIZE="3" COLOR="aqua"> We teach the following 7 forms of famous Classical Dances.<BR> Kathakali<BR> Kuchipudi<BR> Bharathanatyam<BR> Mohiniyattam<BR> Odissi<BR> Kathak<BR> Manipuri<BR> </BODY> </HTML>