Q. 194201 What do we need to do to have a flat, 2D rule? Write the HTML code line.
A. < hr >. B. < line >. C. < horizontal line >. D. < tr >.
Right Answer is:
SOLUTION
To have a flat, 2D rule just add noshade to < hr >.
For example, < hr size = 34 noshade >.
Q. 194202 Write the expansions and the use of the following tags used in HTML:
a) < hr >
b) < br > c) < p >
A. < hr >. B. < line >. C. < horizontal line >. D. < tr >.
Right Answer is:
SOLUTION
a) < hr > - horizontal line. It is used to draw a horizontal dividing line completely across the screen.
b) < br > - break line. It is a single tag requiring no end tag. It starts a new line within the current paragraph, but it does not start a new paragraph.
c) < p > - paragraph. It marks a block of text as a paragraph. The tag < p > marks the beginning of the paragraph, while the tag < /p > marks the end of a paragraph.
Q. 194203 Write a sample HTML code to display the lines in exactly the same way as given here:
Aman Verma
< J2 >, Sanskriti Appartment,
Delhi – 110021
A. < hr >. B. < line >. C. < horizontal line >. D. < tr >.
Right Answer is:
SOLUTION
< html > < head > < /head > < body > Aman Verma < br > < J2 > , Sanskriti Appartment, < br > Delhi – 11--21 < /html >
Q. 194204 Write the HTML code to display text in a particular font-type.
A. < hr >. B. < line >. C. < horizontal line >. D. < tr >.
Right Answer is:
SOLUTION
< html > < head > < title > Font Faces < /title > < /head > < body > < font size = 4 face = Book Antiqua, Arial, Garamond > Font face displayed by the browser depends upon which fonts are available on user’s system. < br > < /font > The browser scans the list of font names, one after the other, until it matches one with a font name supported by the user’s system < /body > < /html >
Q. 194205 Write the HTML code to display a paragraph in blue color in size 4 but its first letter should be of size 6 and of red color.
A. < hr >. B. < line >. C. < horizontal line >. D. < tr >.
Right Answer is:
SOLUTION
< html > < head > < title > Base Font < /title > < /head > < body > < font size = 6 color = red>T < /font > < font size = 4 color = blue > his is a story of a girl. < /font > < /body > < /html >
Q. 194206 Fill in the blanks:
i. The anchor tag _________ marks the text as hypertext link.
ii. HTML tags are enclosed in ______________.
iii. Anything inside the actual ________ statement needs to remain intact.
iv. The root element is the ___________ of the structure in an XML document.
v. A DTD begins with a ___________ declaration.
vi. The ___________ attribute tells the browser how much space to give data elements away from the walls of the cell.
vii. The ___________ tag is used to establish a hypertext relationship between the current document and another URL.
A. < hr >. B. < line >. C. < horizontal line >. D. < tr >.
Right Answer is:
SOLUTION
i. < A > ii. Angle braces iii. < A HREF >
iv. top-level v. !DOCTYPE vi. cell padding vii.< LINK >
Q. 194207 State True and False:
i. You use the XML keywords as root element in XML document.
ii. The default coloring of VLINK attribute is PURPLE (#400040).
iii. BORDER is an attribute of < A > tag.
iv. The format of anchor tag is
< A HREF=’URL’ > Text describing link < /A >
v. An XML document can have only limited number of child elements.
vi. HTML does not support to display table captions.
vii. Align and Valign are the attributes used with < TD > tag to set the alignment of data in a table.
A. < hr >. B. < line >. C. < horizontal line >. D. < tr >.
Right Answer is:
SOLUTION
i. False ii. True iii. False iv. True v. False vi. False vii. True
Q. 194208 Write the HTML code to generate the following output:
Note the following points while generating the Webpage:
• Link color is green, active link color is blue and visited link color is magenta.
• Title of the page is "Social Networking"
• Heading of the page is blue
• Image used is "network.gif"
• Paragraph color is purple and size is 2
• Use Caption tag for the table
• Table border is of size 2.
• The 4 links are one.html, two.html, three.html and four.html and
• The email id for contact us is abc@xyz.com
(½ mark for correct use of < HTML > tag)
(½ mark for correct use of < BODY > tag)
(½ mark for correct use of < TITLE > tag)
(1 mark for attributes of < BODY > tag)
(½ mark for correct use of < P > tag)
(½ mark for displaying the heading correctly in center)
(½ mark for correct use of < IMG > tag with the ALIGN attribute)
(1 mark for changing table border to 2 pixel thick and border color blue)
(1 mark for giving table < CAPTION > with correct colour)
(1 mark for correctly making the table)
(1 mark for correctly making the bulleted list)
(1 mark for correct use of < A > tag for creating first 3 links)
(1 mark for correctly creating the email link)
A. < hr >. B. < line >. C. < horizontal line >. D. < tr >.
ii. Write the HTML code to generate the following output of a table with the content exactly in the same format as shown within the table:
(½ mark for correct usage of < HTML > tag)
(½ mark for correct usage of < BODY > tag)
(½ mark for correct usage of < TABLE > tag)
(1 mark each for correct usage of < TR >, < TH > and < TD > tags)
(½ mark for correct usage of BORDER attribute) [5+5=10]
A. < hr >. B. < line >. C. < horizontal line >. D. < tr >.
Right Answer is:
SOLUTION
Ans i.
Ans ii.
Q. 194210 Carefully study the Webpage given below. Identify 10 tags (structural as well as formatting tags) that have been utilized in creating this webpage and write the usage of each of them.
(½ mark for identifying each tag and 1 mark each for their usage)
A. < hr >. B. < line >. C. < horizontal line >. D. < tr >.
Right Answer is:
SOLUTION
The 10 tags that have been utilized in creating the above webpage along with their expansion and usage are as follows: 1. < HTML > - It is a structural tag used to mark the beginning and end of an HTML
document. 2. < BODY > - It is a structural tag that encloses all the visible content of a webpage. 3. < P > - It is a formatting tag used to mark the beginning of a new paragraph. 4. < U > - It is a formatting tag used to underline text on a webpage. 5. < CENTER > - It is a formatting tag used to centralize text on a webpage. 6. < H1 > - It is a formatting tag used to mark text as biggest heading. 7. < IMG > - It is a formatting tag used to add inline images on a webpage. 8. < OL > - It is a formatting tag used to add numbered lists on a webpage. 9. < LI > - It is a formatting tag used to mark list items in a numbered list on a webpage. 10. < A > - It is a formatting tag used to add hyperlinks on a webpage.
Q. 194211 MAILTO function is called using an anchor, known as
A. alt.
B. start.
C. href.
D. type.
Right Answer is: C
SOLUTION
MAILTO function allows other users to communicate with us via email. MAILTO is called using an anchor just like standard links to other documents, i.e., using href attribute. The mailto function creates a link that, when clicked on, displays a separate window which allows users to write and send an email message to the specified email address (es).
Q. 194212 The alignment of images can be changed using
A. alt attribute.
B. href attribute.
C. align attribute.
D. start attribute.
Right Answer is: C
SOLUTION
HTML images by default appear inline with a single line of the text. However, the image alignment can be controlled through align attribute. The five image-alignment attribute values are left, right, top, middle and bottom.
Q. 194213 We use linking so that
A. it makes the user able to go to any of the desired documents.
B. we can change the text style of the document.
C. we can change the functioning of the document.
D. we can change the output on the browser.
Right Answer is: A
SOLUTION
Links allow users to click their way from page to page. A hyperlink is a word or image that we can click on to jump to a new document or a new section within the current document.
Q. 194214 Identify the error(s) in the following HTML code. Also write the correct code.
< OL > type = ‘a’ start =‘d’
A. it makes the user able to go to any of the desired documents. B. we can change the text style of the document. C. we can change the functioning of the document. D. we can change the output on the browser.
Right Answer is:
SOLUTION
The < OL > tag attributes should be placed in between < and >. In < OL > list, the TYPE attribute starts with a number and TYPE attribute specifies “A”, “a”, “I”, “i” or “1”.The start attribute sets the starting value of the item integer counter at the beginning of an ordered value.So, the correct format is: < OL start = 4 type = ‘i’ >
Q. 194215 Explain the role of using ‘type’ attribute in Lists?
A. it makes the user able to go to any of the desired documents. B. we can change the text style of the document. C. we can change the functioning of the document. D. we can change the output on the browser.
Right Answer is:
SOLUTION
In a list, the ‘type’ attribute specifies the type of numbering ( “A”, etc. ) or bulleting ( “circle”, “disc”, “square”, etc ) depending on whether the LI is inside an OL or UL list.
Q. 194216 Name the attributes for < ul > tag. Also, identify the error(s) in the following coding.
< ul type = “a” start = 4 >
A. it makes the user able to go to any of the desired documents. B. we can change the text style of the document. C. we can change the functioning of the document. D. we can change the output on the browser.
Right Answer is:
SOLUTION
The < ul > tag contains type attribute. The < ul > tag is used to define unnumbered lists, i.e., no number or letter is attached with list items. Therefore, we cannot use start attribute with < ul >. Also, the valid values for type attribute of < ul > disc, circle and square. Thus, we cannot give it a value like “a”.
Q. 194217 Differentiate between < ul > and < ol > tags.
A. it makes the user able to go to any of the desired documents. B. we can change the text style of the document. C. we can change the functioning of the document. D. we can change the output on the browser.
Right Answer is:
SOLUTION
The < ul > tag is used for defining unnumbered lists (or unordered lists). They have a special bullet symbol in front of each item. The < ol > tag, on the other hand, is used for defining ordered or numbered lists. In these lists, a number or letter appears in front of each list item.
Q. 194218 Explain in detail about the function that allows other users to communicate with us via email with the help of an example. Also, write its syntax.
A. it makes the user able to go to any of the desired documents. B. we can change the text style of the document. C. we can change the functioning of the document. D. we can change the output on the browser.
Right Answer is:
SOLUTION
MAILTO function allows other users to communicate with us via email. MAILTO is called using an anchor just like standard links to other documents, i.e., using href attribute. The mailto function creates a link that, when clicked on, displays a separate window which allows users to write and send an email message to the specified email address (es). We can send email to multiple addresses by separating all email addresses with a comma and space. The syntax is: < a href = mailto:emailaddress >email address < /a >.
Example:
< html >
< head >
< title > Example of mailto < /title >
< /head >
< body >
< a href = mailto:richa@extramarks.com?subject=Details & body = “The revision section is good > Write to me < /a >
< /body >
< /html >
Q. 194219 Differentiate between internal linking and external linking. Give example for each.
A. it makes the user able to go to any of the desired documents. B. we can change the text style of the document. C. we can change the functioning of the document. D. we can change the output on the browser.
Right Answer is:
SOLUTION
Internal linking is used to link to another section of the document on the same web page. The internal linking links various sections of the same document. In other words, when a hyperlink is clicked, a different section of the same document becomes visible in the browser window.
Q. 194220 Create an HTML code using various types of unordered lists.
A. it makes the user able to go to any of the desired documents. B. we can change the text style of the document. C. we can change the functioning of the document. D. we can change the output on the browser.
Right Answer is:
SOLUTION
< html >
< body >
< h4 > Circle Bullets List : < /h4 >
< ul type = “circle” >
< li > Maths < /li >
< li > Physics < /li >
< li > Computers < /li >
< /ul >
< h4 > Disc Bullets List : < /h4 >
< ul type = “disc” >
< li > Maths < /li >
< li > Physics < /li >
< li > Computers < /li >
< /ul >
< h4 > Square Bullets List : < /h4 >
< ul type = “square” >
< li > Maths < /li >
< li > Physics < /li >
< li > Computers < /li >
< /ul >
< /body >
< /html >
Q. 194221 State True and False: i. The NAME attributes is used to create the actual section within the current HTML document.
ii. In the case of hyperlinked text, the underlined and change in color in graphical browsers take precedence.
iii. The default value of border attribute is 2.
iv. Anchor tag cannot be acted on by other HTML tags.
v. XML is a meta tag.
vi. XML stands for Extensive Markup Language.
A. it makes the user able to go to any of the desired documents. B. we can change the text style of the document. C. we can change the functioning of the document. D. we can change the output on the browser.
Right Answer is:
SOLUTION
i. True ii. True iii. False iv. False v. True vi. False
Q. 194222 Write HTML code to generate web page in the style and format shown below: Cosider the following while writing the HTML code:
• Title of page is “Hurricanes Hunters”
• Headings “Hurricanes” and “Hurricanes - Explorers” are center aligned and with levels 1&2 respectively
• Background color is “Light blue”. Color of text is blue.
• Use “TREBUCHET” for text font. Size of text is 5.
• Use Horizontal Rule wherever required.
• Image used is from the file “airplane.gif”
• Link color of page is Green. Visited link is displayed in Magenta, and Active link in Blue.
• The pages are linked as follows:
• Home As home.htm
• Katrina Hurricane As Katrina.htm
• Hurricanes in Past As Old.htm
• Faqs about Hurricanes As Faqs.htm
Contact us : email link to hurricanes@abc.com
A. it makes the user able to go to any of the desired documents. B. we can change the text style of the document. C. we can change the functioning of the document. D. we can change the output on the browser.
Right Answer is:
SOLUTION
Q. 194223 Write the HTML code to generate the following output:
Note the following points while generating the Webpage:
· The title of the page is ‘Recycle’.
· The Background color of the page is ‘Yellow’.
· The Font used for the Heading is Tahoma, size is 6 and color
is Blue.
· The sub heading in veranda font and the color is Blue. Rest of the text is in Arial Black font.
· Image used is from the file ”Recycle.gif”, Images align to the right.
· The links are provided in the unordered list, used in between.
· The pages are linked follows:
· What is Garbage: Garbage.htm
· Meaning of Reduce, Recycle:Recycle.htm
· Weekly Activites:Activ.htm
· Recycle City: RCity.htm
· Contact Us: Join us
A. it makes the user able to go to any of the desired documents. B. we can change the text style of the document. C. we can change the functioning of the document. D. we can change the output on the browser.
Right Answer is:
SOLUTION
< HTML > < Body > < head > < title > Recycle < /title > < /head > < body bgcolor = "Yellow" LINK= "Green" ALINK = "Black" VLINK = "Magnenta"
< font face = "Tahoma" style="BOLD" color = "Blue" size = "6" > < p align = "CENTER" > REDUCE, REUSE, RECYCLE < font face="Verdana" style="Bold" color= "Red" size="5" > < CENTER > PROJECT ENIVRONMENT < /CENTER > < /p > < /font >
< H2 > < U > How can we help? < /U > < /H2 > < font face = "Arial" style="bold" color="BLACK" size = "3" >
< IMG SRC ="recycle.png" ALIGN=Right width="200" height="150" > The waste that we create has to be carefully controlled to be sure that it does not harm our environment and health.
< UL type=disc > < LI > < A Href="Garbage.htm#" > What is Garbage? < /A > < /LI > < LI > < A Href="Recycle.htm#" > Meaning of Reduce, Recycle & ReuseA> LI> < B > Kids Club < /B > < OL type=1 > < LI > < A Href= "Active.htm#" > Weekly Acitives < /A > < /LI > < LI > < A Href = "RCity.htm" > Recycle City< /A > < /LI > < /OL > < /UL > < /font > < HR NOSHADE Heigth =80 width = 820 size ="2" > < font size ="4" > Contact Us: < AHref="mailto:RecycleClub @xyz.com >Join us < /Body > < /HTML >
Q. 194224 Carefully study the Webpage given below. Identify 10 tags (structural as well as formatting tags) that have been utilized in creating this webpage and write the usage of each of them.
A. it makes the user able to go to any of the desired documents. B. we can change the text style of the document. C. we can change the functioning of the document. D. we can change the output on the browser.
Right Answer is:
SOLUTION
< HTML > - It is a structural tag used to mark the beginning and end of an HTML document.
< body > - It is a structural tag that encloses all the visible content of a webpage.
< title > - It is a structural tag that encloses the title of the page.
< H2 > - It is a formatting tag used to mark text as biggest heading.
< table > - A table is a structural tag which is divided into rows (< tr > tag), and each row is divided into data cells (< td > tag). td stands for "table data," and holds the content of a data cell. A < td > tag can contain text, links, images, lists, forms, other tables, etc.
< i m g > - It is a formatting tag used to add inline images on a webpage.
< U > - It is a formatting tag used to underline text on a webpage.
< font > - It is a formatting tag used to change the colour, style, size of the font.
< Center > - It is a formatting tag used to centralize text on a webpage.
< A Href > - It is a formatting tag used to add hyperlinks on a webpage.
Q. 194225 Answer the following questions:
(a) What is an HTML table? What are the basic commands for creating a table?
(b) What is cellspacing? Explain with an example.
(c) What is the use of TR tag in an HTML table? Give a suitable example.
(d) Explain the command< a href=”transport.htm” >Click here for transport< la >
(e) What is an empty element?
(f) The following code is written to align the image in centre in the browser’s window. However, the desired result is not achieved. Why?
< IMG SRC = “house.gif” ALIGN = Center >
(g) What is the use of ALT Attribute with IMG tag?
(h) What do you understand by LINK? Give an example.
[2+2+2+2+2+2+2+2 = 16]
A. it makes the user able to go to any of the desired documents. B. we can change the text style of the document. C. we can change the functioning of the document. D. we can change the output on the browser.
Right Answer is:
SOLUTION
(a) HTML table consist of a number of rows and columns. These are the basic commands :-
• < table>…< /table > this starts and closes a table.
• < tr >…< /tr> this starts and closes a row.
• < td >…< /td > this starts and closes a standard cell.
• < th >…< /th > this starts and closes header cell.
• < caption >…< /caption > this starts and closes a caption.
(b) Cellspacing attribute specifies how much space should be given between the left side of the table and the left-hand side of the leftmost column, the top of the table and the top side of the topmost row and for the right and bottom of the table. The attribute also specifies the amount of space to be given between cells. For example:
< TABLE cellspacing= “20” cellpadding = “20%”>
< TR >
< TD > Element 1< /TD >
< TD > Element 2 < /TD >
< TD > Element 3< /TD >
< /TR >
< /TABLE >
(c) The TR element creates a table row in an HTML table. A table must have at least one row, but may have as many table rows as you choose. A table row is divided into table cells. A table must have at least one table cell per table row. For example,
< table border = “2” cellpadding=”4” >
< tr >
< th > Games < /th >
< th > Cricket < /th >
< th > Batsman < /th >
</tr >
< tr >
< td > Sachin Tendulkar < /td >
< td > M.S. Dhoni < /td >
< td > Rahul Dravid < /td>
< /tr >
< /table >
(d) It is an attribute for the < A > tag, which is displayed in a browser. The work text describing link would appear underlined and in another order to indicate that clicking that text initiates the hypertext link. The address of the referenced document can be specified by an absolute or partial URL:
< A HREF= “URL” > anchor < /A>
Thus, “Transport.htm” is an URL or Web page address and Click here for transport is the anchor.
(e) An empty element is one without a closing tag. For example, in HTML, the < br/ > and image tags are empty elements. We can define an empty elementas as follows:
< !ELEMENT element_name EMPTY >
(f) the code written is incorrect, because Center is not an attribute of IMG Align.
(g) The ALT attribute is used to define an “alternate text” for an image. The “ALT” attribute tells the reader what is missing on a page if the browser can’t load images. The browser will then display the alternate text instead of the image.
(h) The < LINK > tag is considered to establish a hyperlink relationship between the current document and another URL. For example, < LINK HREF = ‘URL’ REL = ‘Relationship’ >
Q. 194226 Tidy is a
A. XML parser.
B. DTD.
C. XML Validator.
D. HTML Parser.
Right Answer is: C
SOLUTION
XML Validators are the software packages that check the XML document as per the specified DTD and give us feedback about the document. Some XML validators on the web are – W3C XML validator, Tidy, XML.com’s etc.
Q. 194227 A software that validates XML document is known as
A. XML Parser.
B. well-formed document.
C. valid document.
D. XML Validator.
Right Answer is: D
SOLUTION
XML validator checks whether a well-formed document is as per the specifications laid by a DTD or schema.
Q. 194228 XML data within HTML file is known as
A. Data Island.
B. Data Definition.
C. Data description.
D. Data encapsulation.
Right Answer is: A
SOLUTION
XML can keep data separated from HTML code. However, XML data can also be stored inside HTML pages using a tag < xml >. This XML data within HTML file is known as Data Island.
Q. 194229 All attribute values must be enclosed in
A. curly brackets.
B. square brackets.
C. dollar sign.
D. quotation marks.
Right Answer is: D
SOLUTION
Attributes are the property settings of element, given through name-value pairs. All attribute values must be enclosed in quotation marks, single and double both are acceptable.
Q. 194230 ADML stands for
A. Architecture Description Markup Language.
B. Acquired Descriptive Markup Language.
C. Acquired Descriptive Marked Language.
D. Architecture Descriptive Marked Language.
Right Answer is: A
SOLUTION
XML is a meta-language, which means it can be used to create new languages. A number of languages as per the needs or requirements of the specific domain have been created. Some of them are – ADML (Architecture Description Markup Language), BrainML (Brain Markup Language), ChessGML (Chess Game Markup Language), CML (Chemical Markup Language) etc.
Q. 194231 Software packages that are a part of bigger applications that provide XML support are known as
A. XML Compilers.
B. XML Parsers.
C. XML Processors.
D. XML Validators.
Right Answer is: B
SOLUTION
XML Parsers are the software packages that are a part of bigger applications that provide XML support. The role of an XML parser is to dissect a valid XML document to obtain actual data from the XML document. For example, SAX, expat, TclExpal etc.
Q. 194232 Software packages that check XML document as per the specified DTD and give feedback are known as
A. XML Compilers.
B. XML Parsers.
C. XML Processors.
D. XML Validator.
Right Answer is: D
SOLUTION
XML Validators are the software packages that check XML document as per the specified DTD and give feedback about the document. Some XML validators on the web are: W3C XML validator, Tidy, XML.com’s etc.
Q. 194233 To manipulate a selector’s style, we use
A. traces.
B. elements.
C. grouping.
D. properties.
Right Answer is: D
SOLUTION
A property is assigned to a selector in order to manipulate its style. Examples of properties include colour, margin and font.
Q. 194234 The tag to include a background image is
A. < body style=”background-image:filename.gif” >.
B. < image>filename.gif< /image >.
C. < body background = “filename.gif” >.
D. < body bgimg=”filename.gif” >.
Right Answer is: C
SOLUTION
The background attribute sets the background to an image. The value of this attribute is the URL of the image you want to use. For example, < body background= "clouds.gif” >.
Q. 194235 How do we declare comments in HTML code. What is it used for?
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
Comments are given between special < !- - - and --- > markup elements. They are a type of textual content which appears in the HTML code. But these are not rendered by the user’s browser. For example, < !- - - This is a comment - - - >.
Q. 194236 What is < font > tag used for in HTML code? Give any two options used with this tag?
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
The < font > tag lets us change the size, color and typeface of text on an HTML page. The < font > tag uses options likes face, size etc.
Q. 194237 Write the correct HTML tag for the largest heading?
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
HTML has six levels of heading, numbered through 1 to 6, with 1 being the largest.
< H1 > Level 1 Heading < /H1 >
Q. 194238 What is the HTML syntax for adding a background color as green?
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
To display a background color HTML uses < BODY bgcolor= “green” >.
Q. 194239 Which attribute is used to set the background color of your web page with < body > tag?
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
The bgcolor attribute is used to set the background color of the web page with < body > tag.
Q. 194240 What are the types of elements used in html?
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
There are two types of elements used in html. They are: container elements and empty elements.
Q. 194241 What is an HTML document?
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
HTML documents describe web pages. It contains html tags and plain text.
Q. 194242 Where is HR tag used?
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
The < HR > tag is used to create a horizontal rule, or line on your page.
Q. 194243 What is the correct HTML tag for inserting a line break?
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
To end a line and jump to the next , HTML uses a line break(< BR >).
Q. 194244 Where is the head of the HTML document?
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
The head of the HTML document is where we enter the title of the page.
Q. 194245 What do you mean by ‘tag’ in html?
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
A tag is a coded HTML command that indicates how part of web page should be displayed.
Q. 194246 What all do we need to have to work with HTML?
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
To work with HTML, we need an editor (Notepad, Gedit), browser (Internet Explorer, Firefox, etc.) and Image editing package.
Q. 194247 What is the head tag used for?
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
The head tag is used to define the document header.
Q. 194248 What is the length of an attribute value?
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
The length of an attribute value is 1024 characters.
Q. 194249 What is the difference between < p > tag and < br > tag?
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
< p > stands for ”Paragraph”. Typing < p > says that you are starting a new paragraph, and typing < /p > says that you are ending one.
< br > stands for “line break”. It starts a new line within the current paragraph, but it does not start a new paragraph.
Q. 194250 What does the body tags enclose?
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
The body tags enclose the main part of the document. Any text, links or pictures, etc. should be enclosed within the body tags.
Q. 194251 What is the title tag used for? Give an example.
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
The title element contains document title. It is used to display the title bar message with the web browsers like Firefox or Internet Explorer. For example, < title > First HTML Code < /title >.
Q. 194252 What is the purpose of using the tags < H1 >…< H6 >?
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
Headings are displayed in larger and/or bolder fonts than normal body text. HTML has six levels of heading, numbered 1 to 6, with 1 being the largest.
Q. 194253 Write the HTML codes to make body text appear 75 pixels away from the top edge of page and 100 pixels away from left edge of page.
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
< body topmargin = 75 leftmargin = 100 >
Q. 194254 Name the attribute for < dl > tag.
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
Compact attribute.
Q. 194255 Name the possible values of the type attribute for < ul > tag?
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
The type attribute of < ul > tag may have three values as follows: a.Disc. b.Square. c. Circle.
Q. 194256 Name the attributes of < ul > tag.
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
The attributes of < ul > tag is: The type attribute.
Q. 194257 Name the attributes of < ol > tag.
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
The two attributes of < ol > tag are: a.The type attribute. b. The start attribute.
Q. 194258 Define definition list.
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
A definition list is an indented list without any bullet symbol or any number in front of each item. A definition list consists of alternating a definition term (< dt >) and a definition description (< dd >).
Q. 194259 Define numbered list.
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
A numbered list (also called an ordered list) is an indented list that has numbers or letters in front of each item. It is marked by < ol > and < ol > tags.
Q. 194260 Define unnumbered list.
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
The unnumbered or unordered lists are bulleted lists. They are marked by < ul > and < /ul > tags.
Q. 194261 What are the three basic types of lists in HTML?
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
The three basic types of lists in HTML are: a. Ordered or numbered lists. b. Unordered or unnumbered lists. c. Definition lists.
Q. 194262 Identify the error(s) in the following coding and write the correct code:
< ol type = “a” start = e >
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
The value of start attribute should be a number. If we want to start the above list from ‘e’, i.e., 5th letter, we should write it as:
< ol type = “a” start = 5 >
Q. 194263 Define alt attribute. Give its syntax.
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
The alt attribute specifies an alternate text for an image if the image cannot be displayed. The value for the alt attribute is a text string of upto 1024 characters enclosed in quotation marks if we include spaces or other punctuation.
Syntax:
< img alt = “value” >
Q. 194264 What do we use to specify the dimensions of an image?
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
The height and width attributes are used to specify the dimensions of an image. This way, the browser reserves space before actually downloading an image, speeding document rendering and eliminate content shifting.
Q. 194265 What do we use to horizontally center an image? Give an example.
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
To horizontally center an image we use < center >…< /center > tags.
For example,
< center >
< img src = “flowers.gif” >
< /center >
Q. 194266 What do we use to link to another document? Define it.
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
We use external linking to link to another document. We make a hyperlink to another document with the < a > tag and its href attribute, which defines the URL of the target document. We should also add a title attribute, while linking to another document.
Q. 194267 What do we use to link to another section of the document on the same web page? Define it.
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
We use internal linking to link to another section of the document on the same web page. The internal linking links various sections of the same document. In other words, when a hyperlink is clicked, a different section of the same document becomes visible in the browser window.
Q. 194268 How many attribute values does an image alignment has? Name them.
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
There are five image-alignment attribute values. They are left, right, top, middle and bottom.
Q. 194269 What do you mean by inline image?
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
Inline image means image display in line with the text, i.e., the specified image is loaded separately and placed into the text flow as if the image were some special character.
Q. 194270 What is the function of start attribute for < ol > tag? Give an example.
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
The start attribute for the < ol > tag, lets us change the beginning value. For example, to start numbering a list at 4, we will write:
< ol start = 4 >
< li >…
< li >… < /ol >
Q. 194271 Create an HTML code using any two types of ordered lists. It should include three list items, namely, cricket, tennis and soccer.
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
< html >
< body >
< h4 > Letters List : < /h4 >
< ol type = “A” >
< li > cricket < /li >
< li > tennis < /li >
< li > soccer < /li >
< /ol >
< h4 > Lowercase Roman Numbers List : < /h4 >
< ol type = “i” >
< li > cricket < /li >
< li > tennis < /li >
< li > soccer < /li >
< /ol >
< /body >
< /html >
Q. 194272 Akriti has learnt about hyperlinks. She wants to create a hyperlink by the name ‘My Page’ on her web page. Write the HTML code for her.
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
< html >
< body >
< p >
< a href = “mypage.html” > My Page < /a > is my first web page.
< /p >
< /body >
< /html >
Q. 194273 What does a definition list consist of? Create a list of definitions using < dl >, < dt > and < dd >.
flame
an ugly argument in a newsgroup
spam
annoying unrequested email
troll
someone who start flames by posting stupid things
A. < body style=”background-image:filename.gif” >. B. < image>filename.gif< /image >. C. < body background = “filename.gif” >. D. < body bgimg=”filename.gif” >.
Right Answer is:
SOLUTION
A definition list consists of alternating a definition term (< dt >) and a definition description (< dd >).
The code for the above definition terms and descriptions is as follows:
The < dl > tag defines a definition list. A definition list is a list of items, with a description of each item. It starts with a < dl > tag (definition list). Each term starts with a < dt > tag (definition term). Each description starts with a < dd > tag (definition description). The < dl > tag has an attribute known as compact, which is used when the definition terms are very short.
Q. 194275 Ordered list is also known as
A. unordered list.
B. unnumbered list.
C. numeric list.
D. numbered list.
Right Answer is: D
SOLUTION
An ordered list (also known as numbered list) is an indented list that has numbers or letters in front of each item. These lists are marked by < ol > and < /ol > tags.
Q. 194276 The other name for unordered list is
A. unnumbered list.
B. numeral list.
C. numbered list.
D. ordered list.
Right Answer is: A
SOLUTION
The unordered list is also known as unnumbered list. It is identified as < ul >. It is a bulleted list. It starts with an opening list < ul >. It then uses the < li > tag to denote the beginning of each new list item.
Q. 194277 The < ol > tag stands for
A. office list.
B. ordered list.
C. open list.
D. online list.
Right Answer is: B
SOLUTION
An ordered list (also known as numbered list) is an indented list that has numbers or letters in front of each item. These lists are marked by < ol > and < /ol > tags.
Q. 194278 The < ul > tag stands for
A. unidentified list.
B. unknown list.
C. unordered list.
D. unique list.
Right Answer is: C
SOLUTION
An unnumbered or unordered list is identified as < ul >. It is a bulleted list.
Q. 194279 The tag used for definition list is
A. < dl >.
B. < definition >.
C. < list >.
D. < dd >.
Right Answer is: A
SOLUTION
A definition list is a list of items, with a description of each item. It starts with a < dl > tag (definition list).
Q. 194280 < dd > stands for
A. data description.
B. data definition.
C. definition description.
D. definition data.
Right Answer is: B
SOLUTION
A definition list is a list of items, with a description of each item. It starts with a < dl > tag (definition list). Each term starts with a < dt > tag (definition term). Each description starts with a < dd > tag (definition description).
Q. 194281 < dt > stands for
A. data term.
B. definition term.
C. description term.
D. definition tag.
Right Answer is: B
SOLUTION
A definition list is a list of items, with a description of each item. It starts with a < dl > tag (definition list). Each term starts with a < dt > tag (definition term). Each description starts with a < dd > tag (definition description).
Q. 194282 The < dl > tag stands for
A. data list.
B. definition list.
C. define list.
D. description list.
Right Answer is: B
SOLUTION
A definition list is a list of items, with a description of each item. It starts with a < dl > tag (definition list). Each term starts with a < dt > tag (definition term). Each description starts with a < dd > tag (definition description).
Q. 194283 The attribute/s that a < ul > tag has, is/are
A. start and type.
B. start.
C. type.
D. null.
Right Answer is: C
SOLUTION
The browser automatically bullets each < ul >- tagged item in an ordered list. By default, a solid circle is used for the bullets. However, we can change the bullet style using type attribute. This attribute may have a value of either disc, circle or square. For example, < ul type = square >. The disc is the default bullet, i.e., a solid circle. Attribute value circle displays a hollow circle as the bullet and the value square displays a solid square as the bullet.
Q. 194284 The list that is marked by bullets is known as
A. list.
B. unordered list.
C. ordered list.
D. numbered list.
Right Answer is: B
SOLUTION
An unnumbered or unordered list is identified as < ul >. It is a bulleted list. It starts with an opening list < ul >. It then uses the < li > tag to denote the beginning of each new list item.
Q. 194285 The other name for numbered list is
A. list item.
B. unordered list.
C. ordered list.
D. unnumbered list.
Right Answer is: C
SOLUTION
An ordered list (also known as numbered list) is an indented list that has numbers or letters in front of each item. These lists are marked by < ol > and < /ol > tags.
Q. 194286 The other name for unnumbered list is
A. list item.
B. numbered list.
C. unordered list.
D. ordered list.
Right Answer is: C
SOLUTION
An unnumbered or unordered list is identified as < ul >. It is a bulleted list. It starts with an opening list < ul >. It then uses the < li > tag to denote the beginning of each new list item.
Q. 194287 The attribute that is used to specify the source of an image is
A. < img >.
B. < href >.
C. < a >.
D. < src >.
Right Answer is: D
SOLUTION
Images can be inserted in text using < img > tag. Its source is specified with src attribute, alternate text with alt attribute, alignment with align attribute and size with height and weight attributes.
Q. 194288 Number of attribute values that image alignment has is
A. 2.
B. 3.
C. 4.
D. 5.
Right Answer is: D
SOLUTION
The HTML standard specifies five image– alignment attribute values: left, right, top, middle and bottom. But HTML images by default appear inline with a single line of text.
Q. 194289 The attribute for < dl > tag is
A. start.
B. type.
C. compact.
D. href.
Right Answer is: C
SOLUTION
The compact attribute is used when definition terms are very short. It tells the browser to squeeze the list when possible.
Q. 194290 In < ol > and < ul >, the style of bullet or number is defined by
A. type attribute.
B. start attribute.
C. style attribute.
D. alt attribute.
Right Answer is: A
SOLUTION
The < start > attribute for the < ol > tag lets us change the beginning value. While, the type attribute, sets the actual numbering style. For example, < ol type = “a” start = 7 >, will display the list starting from the 7th letter, that is, ‘g’. Subsequent items are numbered with the same style, each value incremented by 1.
Q. 194291 The tags that are used to create numbered lists are
A. < ul > and < ol >.
B. < ol > and
.
C. < ul > and < li >.
D. < li > and < /li >.
Right Answer is: B
SOLUTION
An ordered list (also known as numbered list) is an indented list that has numbers or letters in front of each item. These lists are marked by < ol > and < /ol > tags. It then uses the < li > tag to denote the beginning of each new list item.
Q. 194292 The tags that are used to create unnumbered list are
A. < ul > and < ol >.
B. < ol > and < li >.
C. < ul > and < li >.
D. < li > and < /li >.
Right Answer is: C
SOLUTION
An unnumbered or unordered list is identified as < ul >. It is a bulleted list. It starts with an opening list < ul >. It then uses the < li > tag to denote the beginning of each new list item.
Q. 194293 For internal linking, the section names are provided by
A. href
B. title.
C. name.
D. alt.
Right Answer is: C
SOLUTION
Page jumps are links that point to a certain part of a document. This is done by assigning names to parts of our page, and then making the link by referring to that section. Page jumps are done by using the name attribute of the ‘a’ element. For example, if we want a link to the top of our page, we will add an anchor like this near the top of our document : < a name = “top” > < /a >.
Q. 194294 XBM stands for
A. Xtra Bit Map.
B. X Bit Map.
C. Xtra Byte Map.
D. X Byte Map.
Right Answer is: B
SOLUTION
Browsers can display images in the document if they are in either GIF (Graphics Interchange Format), XBM (X Bit Map) or JPEG format.In computer graphics, the X Window System uses X BitMap (XBM), a plain text monochrome image format, for storing cursor and icon bitmaps used in the X GUI.
Q. 194295 GIF stands for
A. Graphics Interchange Frame.
B. Graphical Interchange Format.
C. Graph Inheritance Format.
D. Graph Interchange Frame.
Right Answer is: B
SOLUTION
Browsers can display images in the document if they are in either GIF (Graphics Interchange Format), XBM (X Bit Map) or JPEG format.
Q. 194296 To change the Font Face we use the attribute called
A. Font
B. Face
C. Color
D. bgcolor
Right Answer is: C
SOLUTION
You can also change font type of the text you are displaying. This can be done by using FACE attribute. The syntax is
Q. 194297 Rekha wants to start a list at the count of 7. She should use
A. < ol begin = “7” >.
B. < ol start = “7” >.
C. < ol list = “7” >.
D. < ol count = “7” >.
Right Answer is: B
SOLUTION
The < start > attribute for the < ol > tag lets us change the beginning value. While, the type attribute, sets the actual numbering style. For example, < ol type = “a” start = 7 >, will display the list starting from the 7th letter, that is, ‘g’. Subsequent items are numbered with the same style, each value incremented by 1.
Q. 194298 To change the size of an image in HTML, we use
A. bottom alignment.
B. top alignment.
C. height and width attribute.
D. left and right alignment.
Right Answer is: C
SOLUTION
To specify an image’s dimensions, we use height and width attributes of < img >. The browser reserves space before actually downloading an image, speeding document rendering and eliminating the content shifting. Both attributes require an integer value that indicates the image size in pixels.
Q. 194299 To create a bulleted list, we should use
A. < il >.
B. < ul >.
C. < ol >.
D. < dl >.
Right Answer is: B
SOLUTION
An unnumbered or unordered list is identified as < ul >. It is a bulleted list. It starts with an opening list < ul >. It then uses the < li > tag to denote the beginning of each new list item.
Q. 194300 Image links can show a text label if we add the property
A. str.
B. atr.
C. alternative.
D. alt.
Right Answer is: D
SOLUTION
The alt attribute specifies an alternative text for an image, if the image cannot be displayed. It provides alternative information for an image if a user for some reason can view it. The value for the alt attribute is a text string of 1024 characters.