HTML - Structural Tags: book back answers
24 solved questions from the end of this chapter, Class 11 Computer Applications, Tamil Nadu State Board. Each answer is checked against the textbook, and you can open the page that proves it.
← Notes and quiz for HTML - Structural TagsChoose the correct answer
HTML is acronym for
- (a) Hyper Transfer Markup Language
- (b) Hyper Text Markup Language
- (c) Hyper Transfer Makeup Language
- (d) Hyper Text Makeup Language
Try it, then show the answerAnswer
(b) Hyper Text Markup Language
HTML stands for Hyper Text Markup Language.
From the book: “HTML (Hyper Text Markup Language) is a special markup language used to create web pages”
The coded HTML keywords that indicates how web browser should format and display the content is called…….
- (a) Tags
- (b) Attributes
- (c) Headings
- (d) Body
Try it, then show the answerAnswer
(a) Tags
The chapter identifies HTML commands or keywords as tags that indicate how the browser should format and display content.
From the book: “The tags are coded by HTML commands or keywords that indicate how web browser should format and display the content.”
Which of the following is a special word used inside tag to specify additional information to the tag?
- (a) Tags
- (b) Attributes
- (c) Headings
- (d) Body
Try it, then show the answerAnswer
(b) Attributes
Attributes are special words placed inside a tag to give it additional information.
From the book: “Attributes are special words used inside a tag to specify additional information to a tag.”
HTML tags should be specified within:
- (a) [ ]
- (b) { }
- (c) ( )
- (d) < >
Try it, then show the answerAnswer
(d) < >
HTML tags are written within angle brackets.
From the book: “All HTML tags should be specified within angle brackets (< >).”
An HTML document is bounded within a pair of ….. tags
- (a) <body> ……. </body>
- (b) <title> ……. </title>
- (c) <html> ……. </html>
- (d) <head> …… </head>
Try it, then show the answerAnswer
(c) <html> ……. </html>
The complete HTML document is bounded by the opening and closing html tags.
From the book: “Entire HTML document is bounded within a pair of <html> and </html> tags.”
Which of the following symbol is used to define a closing tag?
- (a) < >
- (b) %
- (c) /
- (d) \
Try it, then show the answerAnswer
(c) /
A closing tag uses the same name as its opening tag, preceded by a slash.
From the book: “closing tag name preceded by a slash ( / ).”
Which section of the browser window displays the main contents?
- (a) Head
- (b) Body
- (c) Title
- (d) Heading
Try it, then show the answerAnswer
(b) Body
The body section displays the main content in the browser window.
From the book: “The body section is used to display the main content on the browser window.”
Which of the following tag is a structural tag?
- (a) <html>
- (b) <h1>
- (c) <br>
- (d) <p>
Try it, then show the answerAnswer
(a) <html>
The chapter lists html, head, title, and body as structural tags.
From the book: “<html>, <head>, <title> and <body> these four tags are known as structural tags.”
In HTML, colours are represented as
- (a) Binary values
- (b) Octal values
- (c) Decimal values
- (d) Hexadecimal values
Try it, then show the answerAnswer
(d) Hexadecimal values
The chapter says HTML colours are generally represented by six-digit hexadecimal values.
From the book: “Generally colors in HTML are represented as six digit hexadecimal values.”
Which of the following symbol is used to prefix with hexadecimal value representing colour in HTML?
- (a) %
- (b) #
- (c) @
- (d) &
Try it, then show the answerAnswer
(b) #
The chapter specifies that a colour code should have a # prefix.
From the book: “Color code should be prefixed with #.”
Which of the following attribute is used to change text colour within body tag?
- (a) bgcolor
- (c) background
- (c) text
- (d) color
Try it, then show the answerAnswer
(c) text
The text attribute within the body tag changes the body text colour.
From the book: “text attribute within body tag is used to change the text colour.”
Within body section, which of the following attribute is used to set top margin?
- (a) margin
- (b) top
- (c) topmargin
- (d) leftmargin
Try it, then show the answerAnswer
(c) topmargin
The topmargin attribute sets the space from the top edge of the browser window.
From the book: “leftmargin or topmargin attributes will be used respectively.”
How many levels of heading tags available in HTML?
- (a) 6
- (b) 4
- (c) 8
- (d) 3
Try it, then show the answerAnswer
(a) 6
HTML provides six heading levels, from h1 to h6.
From the book: “HTML has six levels of headings viz. <h1> to <h6>.”
The tag used to insert a line break:
- (a) <h1>
- (b) <br>
- (c) <html>
- (d) <p>
Try it, then show the answerAnswer
(b) <br>
The br tag is used for a line break.
From the book: “The <br> tag is used for line break.”
The tag used to define a paragraph in HTML:
- (a) <para>
- (b) <p>
- (c) <q>
- (d) <br>
Try it, then show the answerAnswer
(b) <p>
Paragraphs are created using the p tag.
From the book: “In HTML, paragraphs are created using the <p> tag.”
Very Short Answers
1 Sandhiya is creating a webpage. She is entering HTML code on her computer. In between, she keeps pressing “Refersh” / “Reload” button on her browser. What is the purpose?
Try it, then show the answerAnswer
To display the modifications made to the HTML source file in the browser after the file has been edited and saved.
After modifying and saving the source file, refresh or reload the browser to show the changes.
From the book: “Press Ctrl + R or F5 will be used to refresh / reload the modifications.”
Explain with the help of an example the difference between container and empty elements of HTML.
Try it, then show the answerAnswer
Container elements require both an opening and a closing tag; for example, <p>text</p>. Empty elements require only an opening tag; for example, <br>.
A container surrounds content with opening and closing tags. An empty element has no closing tag.
From the book: “The tags which are required opening and closing is known as container elements or tags.”
What is the wrong in the following coding?
Try it, then show the answerAnswer
The code is incorrectly formed: <my web page> is not a valid tag shown in the chapter; the <head> opening tag is missing before <title>; and the closing tags are in the wrong order. The title should be inside <head> and closed with </title> before </head>.
A document should use the structural tags in the correct order, with title inside head. The chapter also states that you cannot create your own tags.
From the book: “You cannot create your own tags to create a new style or feature.”
How do you define comments in HTML?
Try it, then show the answerAnswer
Comments are defined using the tag form <! comments >. The text within it is ignored by the browser and does not appear onscreen.
Comments can be placed anywhere in an HTML document and are not shown by the browser.
From the book: “In HTML, the text what you type within this tag is considered as comments and it is ignored by the browser.”
Short Answers
Explain the attributes available with <body> tag.
Try it, then show the answerAnswer
The body tag has attributes for setting background colour (bgcolor), body text colour (text), a background image (background), and margins (leftmargin and topmargin).
These attributes control the body background, text appearance, image background, and spacing from the left or top edge.
From the book: “The <body> tag defines the document’s body. The contents of an HTML page reside within the <body> tag.”
What are the attributes available in <html> tags?
Try it, then show the answerAnswer
The html tag has two attributes: dir and lang. dir specifies text direction, and lang specifies the language used in the document.
The chapter gives ltr and rtl as direction values and lists language codes such as en and ta.
From the book: “<html> tag has two attributes viz. dir and lang to specify the text direction and language setting respectively.”
How do you view the source file?
Try it, then show the answerAnswer
Right-click the browser and select View Page Source (Firefox and Chrome) or View Source (Internet Explorer), or press Ctrl + U. In Internet Explorer, View → Source can also be used.
These methods display the original HTML source file in the browser; it cannot be edited there.
From the book: “Press Ctrl + U (all browser)”
How do you save a file as HTML file?
Try it, then show the answerAnswer
Choose File → Save or press Ctrl + S. In the Save As dialog, enter a file name with the .htm or .html extension, select “All Files” from “Save as type”, and click “Save”.
The chapter gives these steps for saving the HTML document from a text editor.
From the book: “In “File Name” text box, type a file name with .htm or .html extension.”
Part-IV Explain in Detail
Write the basic structure of a HTML program.
Try it, then show the answerAnswer
An HTML program is a document written with HTML tags that define the structure and appearance of a web page. Its basic structure uses four structural tags: <html>, <head>, <title> and <body>.
- HTML document: The entire document begins with <html> and ends with </html>.
- Head section: The <head> section contains information about the document and is placed inside the HTML document.
- Title: The <title> tag is placed within the head section and specifies the webpage title.
- Body section: The <body> section contains the main content displayed in the browser window.
- Basic program format: Write the title inside the head section and the page content inside the body section, then close the HTML document.
Example: <html> <head> <title> My First Web Page </title> </head> <body> This is my First Web Page </body> </html>
Thus, the four structural tags form the basic structure of an HTML program.
From the book: “Every web document has two sections viz. Heading Section and Body Section.”