Which of the following is/are a valid value for the type attribute of the input tag? a. text. b. icon. c. reset. d. password

Similar documents
HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

Name Related Elements Type Default Depr. DTD Comment

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

Index. CSS directive, # (octothorpe), intrapage links, 26

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0

COPYRIGHTED MATERIAL. Contents. Introduction. Chapter 1: Structuring Documents for the Web 1

Table-Based Web Pages

Chapter 2:- Introduction to XHTML. Compiled By:- Sanjay Patel Assistant Professor, SVBIT.

Certified HTML5 Developer VS-1029

Certified HTML Designer VS-1027

Canvas & Brush Reference. Source: stock.xchng, Maarten Uilenbroek

Oliver Pott HTML XML. new reference. Markt+Technik Verlag

Summary 4/5. (contains info about the html)

Appendix A. XHTML 1.1 Module Reference

Table Basics. The structure of an table

Html basics Course Outline

Chapter 5. Introduction to XHTML: Part 2

CSC Web Technologies, Spring HTML Review

NAME: name a section of the page TARGET = "_blank" "_parent" "_self" "_top" window name which window the document should go in

Advanced HTML Scripting WebGUI Users Conference

Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM Advanced Internet Technology Lab.

HTML BEGINNING TAGS. HTML Structure <html> <head> <title> </title> </head> <body> Web page content </body> </html>

IMY 110 Theme 7 HTML Tables

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

UNIT II Dynamic HTML and web designing

c122sep2914.notebook September 29, 2014

CS105 Course Reader Appendix A: HTML Reference

Web Technologies - by G. Sreenivasulu Handout - 1 UNIT - I

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

HTTP and HTML. We will use HTML as a frontend to our webapplications, therefore a basic knowledge of HTML is required, especially in forms.

HTML: Parsing Library

Programmazione Web a.a. 2017/2018 HTML5

HTML and CSS COURSE SYLLABUS

2.1 Origins and Evolution of HTML

HTML Tags <A></A> <A HREF=" CNN </A> HREF

Website Development with HTML5, CSS and Bootstrap

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

By Ryan Stevenson. Guidebook #2 HTML

Chapter 1 Self Test. LATIHAN BAB 1. tjetjeprb{at}gmail{dot}com. webdesign/favorites.html :// / / / that houses that information. structure?

INFS 2150 / 7150 Intro to Web Development / HTML Programming

11. HTML5 and Future Web Application

The [HTML] Element p. 61 The [HEAD] Element p. 62 The [TITLE] Element p. 63 The [BODY] Element p. 66 HTML Elements p. 66 Core Attributes p.

Basics of Web Design, 3 rd Edition Instructor Materials Chapter 2 Test Bank

WEBSITE PROJECT 2 PURPOSE: INSTRUCTIONS: REQUIREMENTS:

Go.Web Style Guide. Oct. 16, Hackensack Ave Hackensack, NJ GoAmerica, Inc. All rights reserved.

Deccansoft Software Services

CSC Web Programming. Introduction to HTML

Advanced Web Programming C2. Basic Web Technologies

HTML & XHTML Tag Quick Reference

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II

introduction to XHTML

Copyright 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 2 Introduction to XHTML

WML2.0 TUTORIAL. The XHTML Basic defined by the W3C is a proper subset of XHTML, which is a reformulation of HTML in XML.

Table of Contents. MySource Matrix Content Types Manual

HTMLnotesS15.notebook. January 25, 2015

2.1 Origins and Evolution of HTML

Indian Institute of Technology Kharagpur. HTML Part III. Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. I.I.T.

<page> 1 Document Summary Document Information <page> 2 Document Structure Text Formatting <page> 3 Links Images <page> 4

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

NEW WEBMASTER HTML & CSS FOR BEGINNERS COURSE SYNOPSIS

Introduction to using HTML to design webpages

2.1 Origins and Evolution of HTML. 2.3 HTML Document Structure

Creating A Web Page. Computer Concepts I and II. Sue Norris

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

COMSC-030 Web Site Development- Part 1. Part-Time Instructor: Joenil Mistal

Motivation (WWW) Markup Languages (defined). 7/15/2012. CISC1600-SummerII2012-Raphael-lec2 1. Agenda

HTML. HTML Evolution

Internet publishing HTML (XHTML) language. Petr Zámostný room: A-72a phone.:

WTAD Text Editors for HTML. Text Editors: Kate HTML. (HyperText Markup Language)

HTML: Parsing Library

WTAD. Unit -1 Introduction to HTML (HyperText Markup Language)

SYBMM ADVANCED COMPUTERS QUESTION BANK 2013

Chapter 4 Creating Tables in a Web Site Using an External Style Sheet

LAB MANUAL SUBJECT: WEB TECHNOLOGY CLASS : T.E (COMPUTER) SEMESTER: VI

IMY 110 Theme 11 HTML Frames

HTML 5 Tables and Forms

Web Technology. HTML & xhtml

A Brief Introduction to HTML

XHTML & CSS CASCADING STYLE SHEETS

Intro to html. --- define every element, attribute, and entity along with the rules for their use

HTML CS 4640 Programming Languages for Web Applications

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

Creating Web Pages Using HTML

Wireframe :: tistory wireframe tistory.

CSC 121 Computers and Scientific Thinking

CITS1231 Web Technologies. HTML Tables and Page Design Issues

QUICK REFERENCE GUIDE

CITS1231 Midterm Test (A total of 45 marks)

Introduction to Computer Science (I1100) Internet. Chapter 7

Chapter 4 Notes. Creating Tables in a Website

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

Web Publishing with HTML

HTML What is HTML Hyper Text Markup Language is a computer based language used to create WebPages.

HTML: Fragments, Frames, and Forms. Overview

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web

Review of HTML. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

1.264 Lecture 12. HTML Introduction to FrontPage

Transcription:

Which of the following is/are a valid value for the type attribute of the input tag? a. text b. icon c. reset d. password Which of the following is true for the <param> tag in HTML 4.01? a. It does need a closing tag. b. The language attribute cannot be specified with it. c. The name and type attributes are optional. d. The class, id, and title attributes can be specified for it. You do not want the user to resize the frame. The code should be: You are designing a website for one of your clients. You have to use an applet named cal.class to show a scrollable calendar. Which of the following is the recommended way of calling it if you are using HTML 4.01? a. <frame src="mypage.html" name="homepage" scrolling=yes resize="false"> b. <frame src="mypage.html" name="homepage" scrolling=yes resize="true"> c. <frame src="mypage.html" name="homepage" scrolling=yes noresize="true"> d. <frame src="mypage.html" name="homepage" scrolling=yes noresize="noresize"> a. <applet code="cal" width="180" height="180"></applet>

b. <img src="cal"></img> c. <object classid="appid" id="cal" width="180" height="180"></object> d. <sub id="cal"></sub> The tag that is used to pass the parameters to an applet is: a. Appletpar b. Applet c. Param d. Val A computer programming book has to go online. Which of the following tags is ideal for displaying the program snippets? a. <emp> b. <code> c. <dfn> d. <cite> Which of the following is not correct for an action attribute for a form tag? a. The action attribute can be defined at runtime. b. If the value for action is null (action=""), then the form submits user data to itself.

c. If the URL is not provided to the action attribute, the form will not submit user data anywhere. d. None of the above You have the following directory structure. webroot->products->ordered->delivered The products directory has a page called Products.html and the delivered directory has a page called Delivered.html. You want to provide a link to the Products page on Delivered.html. The ideal code should be: a. <a href="././products.html"> All Products </a> b. <a href="../../products.html"> All Products </a> c. <a href=".../.../products.html"> All Products </a> d. <a href="../products.html"> All Products </a> e. <a href="products.html"> All Products</a> Which of the following tags within a table can be used to set the properties of one column or a group of columns? a. colgroup b. col c. cols d. tab Which of the following font styling tag is not valid? a. <small> b. <i> c. <b>

d. <big> e. <large> You have to add a list of products in a drop-down list. What will you use to group the identical products under a category name? a. optgroup b. option c. menu d. var e. There is no way to do this While designing the links page of your website, you want the link to open in a new browser window. How will you implement this with HTML? a. <anchor href="http://www.mailer.com">mailer</anchor> b. <anchor href=http://www.mailer.com target=_blank>mailer</anchor> c. <A HREF="http://www.mailer.com">Mailer </A> d. <a href="http://www.mailer.com" target="_blank">mailer</a> Which of the following statements is correct for a blockquote? a. It makes the text a bit bigger for emphasizing. b. It defines the start of a long quote. c. It makes the text slightly bolder. Which of the following values is/are valid for the valign attribute of a <tr> tag?

a. base b. bottomline c. middle d. baseline e. None of the above On one of your Web pages named Listing.html, you specified a target like this: <a name="target4">old Listing</a> How will you make a link to the above target? a. <a url="#target4">check Old Listing as well</a> b. <a href="#target4">check Old Listing as well</a> c. <link url="target4">check Old Listing as well</link> d. <a href="listing.target4">check Old Listing as well</a> The following link is placed on an HTML webpage. <a href="http://msdn.com/" target="_blank"> MSDN </a> What do you infer from it? a. It will open the site msdn.com in the same window. b. It will open the site msdn.com in a new window. c. It will open the site msdn.com in a frame below. d. It will not be clickable as it is not formed correctly. Which of the following statements is/are correct for DTDs?

a. A strict DTD allows users to use cascading style sheets. b. A transitional DTD displays content in those browsers that don't support CSS. c. A frameset DTD is used to partition the browser window. d. All of the above Which of the following is correct regarding the frame attribute in the <table> tag? a. It is used to add a frame to the table. b. A hsides value for the frame attribute will show the border lines for horizontal sides only. c. A hsides value for the frame attribute will not show the border lines for horizontal sides only. d. A hsides value for the frame attribute will add a scrollable frame on the horizontal sides. What is meant by the cellspacing attribute? a. It makes the cell span more than one column. b. It specifies the space between the cell wall and the contents of the cell. c. It specifies the space between two cells. d. It makes the cell span more than one row. Which of the following tags would assist in creating named groups within a select list? a. opt b. group c. optgroup d. selectgroup

Your website has moved to some other address. What HTML 4.01 code would automatically redirect a user to that address within 3 seconds of landing on the old address? a. <meta http-equiv="refresh" content="3;url=www.newurl.com"> b. <meta http="refresh" url="www.newurl.com"> c. <meta scheme="refresh" name="redirect" http="www.newurl.com"> d. <meta http-equiv="redirect" content="3" http="www.newurl.com"> It is not necessary to give the coordinates for an image or object defined within an area tag, if the value of its shape attribute is: a. circle b. poly c. default d. rect A developer wrote this image tag: <img src ="states.gif" width ="330" height ="406" alt="states" usemap ="#statemap" /> What code should follow this? a. <map id ="statemap" name="statemap"> <area shape ="rect" coords ="0,0,82,126" href="state1.htm" alt="state1" /> </map> b. <map id ="statemap" name="statemap"></map> <area shape ="rect" coords ="0,0,82,126" href="state1.htm" alt="state1" /> c. <map id ="statemap" name="statemap"> <imgarea shape ="rect" coords ="0,0,82,126" href="state1.htm" alt="state1" /></map> d. <map id ="statemap" name="statemap"></map> <imgarea shape ="rect" coords ="0,0,82,126" href="state1.htm" alt="state1" />

For allowing the user to select only one radio button from a group of radio buttons: Which of the following values is not valid for the align attribute of a heading tag? Note: The align attribute was deprecated in HTML 4.01. Use styles instead in new coding. a. The name of an input tag must be same for all the radio buttons. b. The value of an input tag must be same for all the radio buttons. c. The display text of an input tag must be same for all the radio buttons. d. All the radio buttons must be added to same group using <group> tag. a. right b. left c. middle d. center View the following code: <html> <frameset cols = "20%, 20%,*"> <frame src ="a.html"/><frame src ="b.html" /><frame src ="c.html" /> </frameset> </html> What will be displayed on viewing the above in a browser? a. An HTML page with three columns of equal width. b. An HTML page with three rows of equal height. c. An HTML page with the last column occupying 60% space. d. An HTML page with the last column occupying 40% space. Which of the following is true for the <colgroup> tag?

a. The attribute named cols specifies the number of columns in colgroup. b. It is useful for applying similar formatting to the grouped columns. c. It can be used anywhere between the body tags. d. It can be inserted in a <td> tag to include that cell to the group. What is the character-entity representation of the "less than" sign (<)? a. 60;# b. < c. &60#; d. #60&; Which of the following tags can be used in place of a button tag? a. legend b. ol c. input d. dl Within a table cell <td>: a. <p></p> tags cannot be used. b. <ol></ol> tags cannot be used. c. <table></table> tags cannot be used. d. <form></form> tags cannot be used. e. All the above tags could be used. You want to provide a form field to the users for writing lengthy comments on the quality of the services provided by you. Which of the following tags will you use?

a. <textarea rows="8" cols="20"> Your comments...</textarea> b. <textarea row="8" col="20"> Your comments...</textarea> c. <textarea rowcount="8" colcount="20"> Your comments... </textarea> d. <input type="text" maxlength="100" /> Which form event is fired on the click of a button using a button tag with its type attribute value equal to submit? a. onload b. onsubmit c. onunload d. onreset Which attribute(s) of the <table> tag is/are deprecated in HTML 4.01? a. align and cellspacing b. summary c. bgcolor and align d. cellspacing You placed four radio buttons on a web form. You want the users to specify whether they are male or female and whether they are married or single. The code is as follows: Male: <input type="radio" checked name="chk" value="male"> Female: <input type="radio" name="chk" value="female"> Married: <input type="radio" checked="checked" name="chk" value="married"> Single: <input type="radio" name="chk" value="single">

What is wrong with the above code? a. It will allow the user to choose only the male and the married options. b. It will allow the user to choose only the female and single options. c. It will allow the user to choose only one option out of the four. d. It will allow the user to choose all the four options at the same time. Choose the incorrect statement: a. The <em> tag emphasizes the given text by italicizing it. b. The <code> tag indicates that the text inside is an example of typed code. c. The <var> tag indicates that the text inside the tag has been revised. d. The <strong> tag is for strongly emphasizing the text. How will you import a style sheet named basic.css in your Web page? a. <import name="stylesheet" url="basic.css"> b. <link rel="stylesheet" type="text/css" href="basic.css"> c. <style name="stylesheet" url="basic.css"> d. <link item="stylesheet" type="text/css" href="basic.css"> Which of the following is not a valid input type of the form tag? a. checkbox

b. image c. hidden d. button e. All are valid What would you infer from the following code in an HTML 4.01 Web site? <body topmargin=2 leftmargin=2> a. The top margin and left margin of the webpage is 2 pixels. b. The bottom margin and right margin of the web page is 2 pixels. c. Both of the above. d. None of the above. The topmargin and leftmargin attributes are not valid HTML 4.01 body attributes. View the following code: <html> <frameset cols = "20%, 20%,*"> <frame src ="a.html"/><frame src ="b.html" /><frame src ="c.html" /> </frameset> </html> What will be displayed on viewing the above in a browser? a. An HTML page with three columns of equal width. b. An HTML page with three rows of equal height. c. An HTML page with the last column occupying 60% space. d. An HTML page with the last column occupying 40% space. Which of the following shows the basic tag structure of an HTML document? a. <html><head><body></body></html> b. <html><body></body></html>

c. <html><head></head><body></body></html> d. <html><head></head></html> Which of the following statements is correct for a blockquote? a. It makes the text a bit bigger for emphasizing. b. It defines the start of a long quote. c. It makes the text slightly bolder. Which event is fired when an element loses its focus on a form? a. onfocus b. onload c. onblur d. onselect Which of the following tags can be used in place of a button tag? a. legend b. ol c. input d. dl Which of the following is not an attribute of a meta tag? a. name

b. content c. http-equiv d. type What do you infer from the following code? <a href="http://www.expertrating.com">expert Rating</a> a. This href is using absolute path for linking. b. This href is an example of relative path linking. Which of the following tags within a table can be used to set the properties of one column or a group of columns? a. colgroup b. col c. cols d. tab A <!DOCTYPE> defines the document type of any HTML document. It can be of three types: a. Strict, Transitional, or Frameset b. Strict, Transitional, or Loose c. Fixed, Intermediate, or Loose d. Fixed, Intermediate, or Frameset You want to display a table listing out customer names and their contact information. The heading of the table is shown in the figure. What is the code for creating the first line of the table heading? a. <tr> <th>customer Name</th> <th rowspan=3>contact</th>

</tr> b. <tr> <th>customer Name</th> <th colspan=3>contact</th> </tr> c. <tr> <th>customer Name</th> <th cellpadding=3>contact</th> </tr> d. <tr> <th>customer Name</th> <th cellspacing=3>contact</th> </tr> A computer programming book has to go online. Which of the following tags is ideal for displaying the program snippets? a. <emp> b. <code> c. <dfn> d. <cite> Which of the following values is/are valid for the valign attribute of a <tr> tag? a. base b. bottomline c. middle d. baseline e. None of the above Which of the following attributes is/are related to the <img> tag?

a. height b. alt c. src d. All of the above For allowing the user to select only one radio button from a group of radio buttons: a. The name of an input tag must be same for all the radio buttons. b. The value of an input tag must be same for all the radio buttons. c. The display text of an input tag must be same for all the radio buttons. d. All the radio buttons must be added to same group using <group> tag. Which tag is meant for creating inline frames that display other HTML pages? a. img b. frame c. iframe d. url You specified a base tag and anchors as follows: 1. <base target="_blank">

2. <a href="http://www.yahoo.com">yahoo</a> 3. <a href="http://www.google.com" target="_top">google</a> Which of the following is true for the above code? a. Only the Yahoo link will open in a new window. b. Only the Google link will open in a new window. c. Both links will open in a new window. d. Both links will open in the same window. You have the following directory structure. webroot->products->ordered->delivered The products directory has a page called Products.html and the delivered directory has a page called Delivered.html. You want to provide a link to the Products page on Delivered.html. The ideal code should be: a. <a href="././products.html"> All Products </a> b. <a href="../../products.html"> All Products </a> c. <a href=".../.../products.html"> All Products </a> d. <a href="../products.html"> All Products </a> e. <a href="products.html"> All Products</a> Which of the following values for the scrolling attribute for the frame tag is not valid? a. yes b. default c. auto d. no You want to create a link for your website allowing users to email the webmaster. How will you implement this if the webmaster's email address is webmaster@xcompany.com?

a. <a href="mailto:webmaster@xcompany.com">webmaster</a> b. <a href="webmaster@xcompany.com">webmaster</a> c. <a http="mail:webmaster@xcompany.com">webmaster</a> d. <mail http="send:webmaster@xcompany.com">webmaster</mail> e. <a href="mailto://webmaster@xcompany.com">webmaster</a> Which of the following is/are not valid? a. <h2>main Title</h2> b. <h>main Title</h> c. <h3>main Title</h3> d. <h7>main Title</h7> While designing the links page of your website, you want the link to open in a new browser window. How will you implement this with HTML? a. <anchor href="http://www.mailer.com">mailer</anchor> b. <anchor href=http://www.mailer.com target=_blank>mailer</anchor> c. <A HREF="http://www.mailer.com">Mailer </A> d. <a href="http://www.mailer.com" target="_blank">mailer</a> You are designing a website for one of your clients. You have to use an applet named cal.class to show a scrollable calendar. Which of the following is the recommended way of calling it if you are using HTML 4.01?

a. <applet code="cal" width="180" height="180"></applet> b. <img src="cal"></img> c. <object classid="appid" id="cal" width="180" height="180"></object> d. <sub id="cal"></sub> Within a table cell <td>: a. <p></p> tags cannot be used. b. <ol></ol> tags cannot be used. c. <table></table> tags cannot be used. d. <form></form> tags cannot be used. e. All the above tags could be used. Which of the following is correct regarding the frame attribute in the <table> tag? a. It is used to add a frame to the table. b. A hsides value for the frame attribute will show the border lines for horizontal sides only. c. A hsides value for the frame attribute will not show the border lines for horizontal sides only. d. A hsides value for the frame attribute will add a scrollable frame on the horizontal sides.

Where must the styles specified for a CSS internal style sheet be located? a. Inside a table tag b. Inside a div tag c. Inside the head tag d. Anywhere on the webpage Which of the following items should not be used in the address tag? a. physical contact address of the Web site b. contact email address for the Web site c. contact signature d. abbreviations Choose the incorrect statement: a. The <em> tag emphasizes the given text by italicizing it. b. The <code> tag indicates that the text inside is an example of typed code. c. The <var> tag indicates that the text inside the tag has been revised. d. The <strong> tag is for strongly emphasizing the text. Which of the following is incorrect about the relation between HTML and XHTML? a. XHTML is a stricter and cleaner version of HTML. b. XHTML is almost identical to HTML 4.01. c. XHTML and HTML both are used to generate dynamic content.

d. XHTML brings together the elements of HTML and the syntax of XML. How will you import a style sheet named basic.css in your Web page? a. <import name="stylesheet" url="basic.css"> b. <link rel="stylesheet" type="text/css" href="basic.css"> c. <style name="stylesheet" url="basic.css"> d. <link item="stylesheet" type="text/css" href="basic.css"> The tag that is used to pass the parameters to an applet is: a. appletpar b. applet c. param d. val Which of the following would give a yellow background to the web page? Note: The code used in the "correct" answer below was deprecated in HTML 4.01! Use styles instead for new code. a. <body backcolor="yellow"> b. <body background="yellow"> c. <body bgcolor="yellow"> d. <body color="yellow"> Which of the following values is not valid for the align attribute of a heading tag? Note: The align attribute was deprecated in HTML 4.01. Use styles instead in new coding. a. right

b. left c. middle d. center Which of the following attributes is/are not associated with textarea tag in W3C standard HTML 4.01? a. wrap b. cols c. name d. rows e. ref Which of the following attributes comes in handy when borders have to be put between groups of columns instead of every column? a. col b. colgroup c. rowspan d. row What is meant by cellpadding? a. It makes the cell span more than one column. b. It specifies the space between the cell wall and the contents of the cell. c. It specifies the space between two cells. d. It makes the cell span more than one row.

A few lines in an HTML paragraph are to be formatted differently from the rest of the lines. Which tag will assist in this? a. div b. p c. span d. format Which of the following is not correct for an action attribute for a form tag? a. The action attribute can be defined at runtime. b. If the value for action is null (action=""), then the form submits user data to itself. c. If the URL is not provided to the action attribute, the form will not submit user data anywhere. d. None of the above Choose the incorrect statement(s): a. An HTML attribute is additional information included inside a tag. b. HTML is case sensitive. c. All the HTML4.01 tags must be paired. d. Your browser may appear to correctly use newly deprecated code for the present, but its support for deprecated code could be halted at any time after the browser is updated. How will you specify a comment in an HTML document? a. <!!- Here is a comment... -!> b. <-Here is a comment.. ->

Is the following code valid in HTML 4.01 Strict? <ul> <li> <ol> <li>a</li> <li>b</li> <ul> <li>item 1</li> <li>item 2</li> </ul> <li>c</li> </ol> </li> </ul> c. <!-- Here is a comment.. --> d. <! Here is a comment... -!> a. Perfectly valid. b. Invalid because you should not have three levels of nesting in the lists. c. Invalid because you should not have an unordered list within an ordered list. d. Invalid because you should not have an ordered list within an unordered list. e. Invalid because a <ul> tag should not conflict with an <ol> tag at the same list level. Question: While designing the links page of your website, you want the link to open in a new browser window. How will you implement this with HTML? a. <anchor href="http://www.mailer.com">mailer</anchor> b. <anchor href=http://www.mailer.com target=_blank>mailer</anchor> c. <A HREF="http://www.mailer.com">Mailer </A> d. <a href="http://www.mailer.com" target="_blank">mailer</a> Which of the following font styling tag is not valid? a. <small> b. <i> c. <b> d. <big> e. <large>

You are creating several web pages for a website that contain several rather large data tables, many of which are somewhat similar in the number of columns, rows, and in other common table formatting. In addition, CSS will be employed for formatting the tables. Which one of the following types of CSS has the highest priority over the others and typically requires the greatest total amount of code space for the entire website for formatting the various <td> table cells? a. External style sheet b. Inline style c. Internal style sheet d. Browser default You have the following directory structure. webroot->products->ordered->delivered The products directory has a page called Products.html and the delivered directory has a page called Delivered.html. You want to provide a link to the Products page on Delivered.html. The ideal code should be: a. <a href="././products.html"> All Products </a> b. <a href="../../products.html"> All Products </a> c. <a href=".../.../products.html"> All Products </a> d. <a href="../products.html"> All Products </a> e. <a href="products.html"> All Products</a> Which of the following options about the <select> tag is incorrect? a. The name attribute should be specified. b. The disabled attribute disables the drop-down list. c. The multiple attribute allows the user to choose multiple options. d. The text specified in the value attribute is displayed in the drop-down list.

A few lines in an HTML paragraph are to be formatted differently from the rest of the lines. Which tag will assist in this? a. div b. p c. span d. format Within a table cell <td>: a. <p></p> tags cannot be used. b. <ol></ol> tags cannot be used. c. <table></table> tags cannot be used. d. <form></form> tags cannot be used. e. All the above tags could be used. Which of the following values is not valid for the align attribute of a heading tag? Note: The align attribute was deprecated in HTML 4.01. Use styles instead in new coding. a. right b. left c. middle d. center How does a button created by the <button> tag differ from the one created by an <input> tag?

a. An input tag button can be a reset button too. b. A button tag button can be a reset button too. c. An input tag button can include images as well. d. A button tag can include images as well. Which of the following statements is true about the table header, body, and footer tags? a. The table's header, body, and footer tags are <tablehead>, <tablebody>, and <tablefoot>, respectively. b. The table's header, body, and footer tags are <tabhead>, <tabbody>, and <tabfoot>, respectively. c. It is recommended to first specify the table header, followed by the footer, and then the body tags. d. These tags are supported by a wide range of browsers and are commonly used by Web designers. What is the character-entity representation of the "less than" sign (<)? a. 60;# b. < c. &60#; d. #60&; What is meant by cellpadding? a. It makes the cell span more than one column. b. It specifies the space between the cell wall and the contents of the cell. c. It specifies the space between two cells. d. It makes the cell span more than one row.

Which of the following is not a valid input type of the form tag? a. checkbox b. image c. hidden d. button e. All are valid You placed four radio buttons on a web form. You want the users to specify whether they are male or female and whether they are married or single. The code is as follows: Male: <input type="radio" checked name="chk" value="male"> Female: <input type="radio" name="chk" value="female"> Married: <input type="radio" checked="checked" name="chk" value="married"> Single: <input type="radio" name="chk" value="single"> What is wrong with the above code? a. It will allow the user to choose only the male and the married options. b. It will allow the user to choose only the female and single options. c. It will allow the user to choose only one option out of the four. d. It will allow the user to choose all the four options at the same time. Which of the following tags would assist in creating named groups within a select list? a. opt b. group c. optgroup

d. selectgroup Which of the following is correct for an image? a. An image must be resized in an editor to fit in the specified space on a webpage. b. If you have a big image but specify smaller height and width attributes in the <img> tag, only the top-left portion of the image will be displayed in the browser. c. Both of the above are correct. d. The height and width attributes allow resizing the image on the webpage. Which of the following is correct for an image? a. An image must be resized in an editor to fit in the specified space on a webpage. b. If you have a big image but specify smaller height and width attributes in the <img> tag, only the top-left portion of the image will be displayed in the browser. c. Both of the above are correct. d. The height and width attributes allow resizing the image on the webpage. Which of the following values for the scrolling attribute for the frame tag is not valid? a. yes b. default c. auto d. no A <!DOCTYPE> defines the document type of any HTML document. It can be of three types: a. Strict, Transitional, or Frameset b. Strict, Transitional, or Loose

c. Fixed, Intermediate, or Loose d. Fixed, Intermediate, or Frameset The following link is placed on an HTML webpage. <a href="http://msdn.com/" target="_blank"> MSDN </a> What do you infer from it? a. It will open the site msdn.com in the same window. b. It will open the site msdn.com in a new window. c. It will open the site msdn.com in a frame below. d. It will not be clickable as it is not formed correctly. Which of the following items should not be used in the address tag? a. physical contact address of the Web site b. contact email address for the Web site c. contact signature d. abbreviations Which of the following is/are not correct for a <meta> tag in HTML 4.01? a. It is more useful if it is placed in a head element. b. It can be used to specify the keywords for the search engines. c. It can be used to redirect users to other URLs. d. It is mandatory to specify its name or scheme attributes.

Which of the following is/are not true for a paragraph tag in HTML 4.01? a. The text must be enclosed in <p> and </p> tags. b. It creates an empty line above its starting line. c. It cannot be used within a <td> tag. d. It creates an empty line after its ending line. Which of the following statements is correct for a blockquote? a. It makes the text a bit bigger for emphasizing. b. It defines the start of a long quote. c. It makes the text slightly bolder. Which of the following statements is correct for the <blockquote> tag? a. The text under block quote must be enclosed in a block level element in a strict DTD document. b. The attribute named cite must be specified. c. Closing the tag is optional. d. It places an empty line after the text. Which of the following values is/are valid for the valign attribute of a <tr> tag? a. base

b. bottomline c. middle d. baseline e. None of the above Which of the following set of coordinate values refers to an image defined by the area tag with the value of poly for its shape attribute? a. coords="150,217,190,257,150,297,110,257" b. coords="150,190,150,110" c. coords="150,217,190,257,150" d. coords="150,110,190,220,150,150,120" Which of the following is incorrect about the relation between HTML and XHTML? a. XHTML is a stricter and cleaner version of HTML. b. XHTML is almost identical to HTML 4.01. c. XHTML and HTML both are used to generate dynamic content. d. XHTML brings together the elements of HTML and the syntax of XML. Choose the incorrect statement: a. The <em> tag emphasizes the given text by italicizing it. b. The <code> tag indicates that the text inside is an example of typed code. c. The <var> tag indicates that the text inside the tag has been revised.

d. The <strong> tag is for strongly emphasizing the text. For the following items of a <select> list: <option value="89">item 1</option> <option value="90">item 2</option> Which of the following values would be passed on by clicking the submit button on selecting Item 2 from the list? a. 89 b. 90 c. Item 1 d. Item 2 You have to add a list of products in a drop-down list. What will you use to group the identical products under a category name? a. optgroup b. option c. menu d. var e. There is no way to do this A piece of text contains many blank spaces within it. Which of the following tags would be suitable to display the text as it was originally formatted? a. td b. p

c. ls d. pre ou specified a base tag and anchors as follows: 1. <base target="_blank"> 2. <a href="http://www.yahoo.com">yahoo</a> 3. <a href="http://www.google.com" target="_top">google</a> Which of the following is true for the above code? a. Only the Yahoo link will open in a new window. b. Only the Google link will open in a new window. c. Both links will open in a new window. d. Both links will open in the same window. You want to display a table listing out customer names and their contact information. The heading of the table is shown in the figure. What is the code for creating the first line of the table heading? a. <tr> <th>customer Name</th> <th rowspan=3>contact</th> </tr> b. <tr> <th>customer Name</th> <th colspan=3>contact</th> </tr> c. <tr> <th>customer Name</th> <th cellpadding=3>contact</th> </tr> d. <tr> <th>customer Name</th> <th cellspacing=3>contact</th> </tr>

Which of the following is not correct for a div tag? a. It defines a logical division or section of an HTML document. b. It usually leaves empty space before and after the tag. c. We cannot apply style to a div tag. d. All of the above. Which of the following is correct for an image? a. An image must be resized in an editor to fit in the specified space on a webpage. b. If you have a big image but specify smaller height and width attributes in the <img> tag, only the top-left portion of the image will be displayed in the browser. c. Both of the above are correct. d. The height and width attributes allow resizing the image on the webpage. Which of the following attributes is/are related to the <img> tag? a. height b. alt c. src d. All of the above What is meant by the cellspacing attribute?

a. It makes the cell span more than one column. b. It specifies the space between the cell wall and the contents of the cell. c. It specifies the space between two cells. d. It makes the cell span more than one row. A piece of text contains many blank spaces within it. Which of the following tags would be suitable to display the text as it was originally formatted? a. td b. p c. ls d. pre Within a table cell <td>: a. <p></p> tags cannot be used. b. <ol></ol> tags cannot be used. c. <table></table> tags cannot be used. d. <form></form> tags cannot be used. e. All the above tags could be used. A computer programming book has to go online. Which of the following tags is ideal for displaying the program snippets? a. <emp> b. <code>

c. <dfn> d. <cite> Which of the following is incorrect about the relation between HTML and XHTML? a. XHTML is a stricter and cleaner version of HTML. b. XHTML is almost identical to HTML 4.01. c. XHTML and HTML both are used to generate dynamic content. d. XHTML brings together the elements of HTML and the syntax of XML. How does a button created by the <button> tag differ from the one created by an <input> tag? a. An input tag button can be a reset button too. b. A button tag button can be a reset button too. c. An input tag button can include images as well. d. A button tag can include images as well. Which of the following attributes comes in handy when borders have to be put between groups of columns instead of every column? a. col

b. colgroup c. rowspan d. row Choose the incorrect statement(s): a. An HTML attribute is additional information included inside a tag. b. HTML is case sensitive. c. All the HTML4.01 tags must be paired. d. Your browser may appear to correctly use newly deprecated code for the present, but its support for deprecated code could be halted at any time after the browser is updated. Which of the following shows the basic tag structure of an HTML document? You are designing a website for one of your clients. You have to use an applet named cal.class to show a scrollable calendar. Which of the following is the recommended way of calling it if you are using HTML 4.01? a. <html><head><body></body></html> b. <html><body></body></html> c. <html><head></head><body></body></html> d. <html><head></head></html> a. <applet code="cal" width="180" height="180"></applet> b. <img src="cal"></img> c. <object classid="appid" id="cal" width="180" height="180"></object> d. <sub id="cal"></sub> Where must the styles specified for a CSS internal style sheet be located?

a. Inside a table tag b. Inside a div tag c. Inside the head tag d. Anywhere on the webpage You specified a base tag and anchors as follows: 1. <base target="_blank"> 2. <a href="http://www.yahoo.com">yahoo</a> 3. <a href="http://www.google.com" target="_top">google</a> Which of the following is true for the above code? a. Only the Yahoo link will open in a new window. b. Only the Google link will open in a new window. c. Both links will open in a new window. d. Both links will open in the same window. Which event is fired when an element loses its focus on a form? a. onfocus b. onload c. onblur d. onselect Which of the following set of coordinate values refers to an image defined by the area tag with the value of poly for its shape attribute? a. coords="150,217,190,257,150,297,110,257"

b. coords="150,190,150,110" c. coords="150,217,190,257,150" d. coords="150,110,190,220,150,150,120" You want to display a table listing out customer names and their contact information. The heading of the table is shown in the figure. What is the code for creating the first line of the table heading? a. <tr> <th>customer Name</th> <th rowspan=3>contact</th> </tr> b. <tr> <th>customer Name</th> <th colspan=3>contact</th> </tr> c. <tr> <th>customer Name</th> <th cellpadding=3>contact</th> </tr> d. <tr> <th>customer Name</th> <th cellspacing=3>contact</th> </tr> Which of the following is/are not correct for a <meta> tag in HTML 4.01? a. It is more useful if it is placed in a head element. b. It can be used to specify the keywords for the search engines. c. It can be used to redirect users to other URLs. d. It is mandatory to specify its name or scheme attributes. Which of the following tags can be used in place of a button tag? a. legend

b. ol c. input d. dl Which of the following statements is correct for a blockquote? a. It makes the text a bit bigger for emphasizing. b. It defines the start of a long quote. c. It makes the text slightly bolder. For allowing the user to select only one radio button from a group of radio buttons: a. The name of an input tag must be same for all the radio buttons. b. The value of an input tag must be same for all the radio buttons. c. The display text of an input tag must be same for all the radio buttons. d. All the radio buttons must be added to same group using <group> tag. Which of the following is invalid value for the shape attribute of an area tag? a. circle b. tri c. rect d. poly email address is webmaster@xcompany.com?

a. <a href="mailto:webmaster@xcompany.com">webmaster</a> b. <a href="webmaster@xcompany.com">webmaster</a> c. <a http="mail:webmaster@xcompany.com">webmaster</a> d. <mail http="send:webmaster@xcompany.com">webmaster</mail> e. <a href="mailto://webmaster@xcompany.com">webmaster</a> Which of the following is not correct for an action attribute for a form tag? a. The action attribute can be defined at runtime. b. If the value for action is null (action=""), then the form submits user data to itself. c. If the URL is not provided to the action attribute, the form will not submit user data anywhere. d. None of the above Which of the following is not an attribute of a meta tag? a. name b. content c. http-equiv d. type For the following items of a <select> list: <option value="89">item 1</option> <option value="90">item 2</option> Which of the following values would be passed on by clicking the submit button on selecting Item 2 from the list? a. 89 b. 90 c. Item 1

d. Item 2 Your browser supports bidirectional text. Which tag below will you use if you need to display text from right to left? a. <opposite>text should go in opposite direction</opposite> b. <p direction="rtl">text should go in opposite direction</p> c. <body dir="rtl">text should go in opposite direction</body> d. <text dir="rtl">text should go in opposite direction</text> Which of the following is not a valid input type of the form tag? a. checkbox b. image c. hidden d. button e. All are valid Which of the following attributes is/are valid for a select tag contained within a form tag? a. name b. size c. multiple d. All of the above

A developer wrote this image tag: <img src ="states.gif" width ="330" height ="406" alt="states" usemap ="#statemap" /> What code should follow this? a. <map id ="statemap" name="statemap"> <area shape ="rect" coords ="0,0,82,126" href="state1.htm" alt="state1" /> </map> b. <map id ="statemap" name="statemap"></map> <area shape ="rect" coords ="0,0,82,126" href="state1.htm" alt="state1" /> c. <map id ="statemap" name="statemap"> <imgarea shape ="rect" coords ="0,0,82,126" href="state1.htm" alt="state1" /></map> d. <map id ="statemap" name="statemap"></map> <imgarea shape ="rect" coords ="0,0,82,126" href="state1.htm" alt="state1" /> Choose the incorrect statement: a. The <em> tag emphasizes the given text by italicizing it. b. The <code> tag indicates that the text inside is an example of typed code. c. The <var> tag indicates that the text inside the tag has been revised. d. The <strong> tag is for strongly emphasizing the text. Which of the following is correct regarding the frame attribute in the <table> tag? a. It is used to add a frame to the table. b. A hsides value for the frame attribute will show the border lines for horizontal sides only. c. A hsides value for the frame attribute will not show the border lines for horizontal sides only. d. A hsides value for the frame attribute will add a scrollable frame on the horizontal sides.

Which attribute specifies the submit URL in a form tag? a. method b. action c. name d. id Which of the following values is/are valid for the align attribute of a <td> tag? a. left b. right c. center d. offset Which of the following attributes is/are not associated with textarea tag in W3C standard HTML 4.01? a. wrap b. cols c. name d. rows e. ref

You have to add a list of products in a drop-down list. What will you use to group the identical products under a category name? a. optgroup b. option c. menu d. var e. There is no way to do this What is the character-entity representation of the "less than" sign (<)? a. 60;# b. < c. &60#; d. #60&; A <!DOCTYPE> defines the document type of any HTML document. It can be of three types: a. Strict, Transitional, or Frameset b. Strict, Transitional, or Loose c. Fixed, Intermediate, or Loose d. Fixed, Intermediate, or Frameset

Which of the following values is/are valid for the valign attribute of a <tr> tag? a. base b. bottomline c. middle d. baseline e. None of the above Which event is fired when an element loses its focus on a form? Which of the following values is/are valid for the align attribute of a <td> tag? a. left b. right c. center d. offset How does a button created by the <button> tag differ from the one created by an <input> tag? a. An input tag button can be a reset button too. b. A button tag button can be a reset button too. c. An input tag button can include images as well. d. A button tag can include images as well.

Choose the incorrect statement(s): a. An HTML attribute is additional information included inside a tag. b. HTML is case sensitive. c. All the HTML4.01 tags must be paired. d. Your browser may appear to correctly use newly deprecated code for the present, but its support for deprecated code could be halted at any time after the browser is updated. How does a button created by the <button> tag differ from the one created by an <input> tag? a. An input tag button can be a reset button too. b. A button tag button can be a reset button too. c. An input tag button can include images as well. d. A button tag can include images as well. Is the following code valid in HTML 4.01 Strict? <ul> <li> <ol> <li>a</li> <li>b</li> <ul> <li>item 1</li> <li>item 2</li> </ul> <li>c</li> </ol> </li> </ul> a. Perfectly valid. b. Invalid because you should not have three levels of nesting in the lists. c. Invalid because you should not have an unordered list within an ordered list. d. Invalid because you should not have an ordered list within an unordered list. e. Invalid because a <ul> tag should not conflict with an <ol> tag at the same list level.

A computer programming book has to go online. Which of the following tags is ideal for displaying the program snippets? a. <emp> b. <code> c. <dfn> d. <cite> Which of the following would give a yellow background to the web page? Note: The code used in the "correct" answer below was deprecated in HTML 4.01! Use styles instead for new code. a. <body backcolor="yellow"> b. <body background="yellow"> c. <body bgcolor="yellow"> d. <body color="yellow"> Which of the following shows the basic tag structure of an HTML document? a. <html><head><body></body></html> b. <html><body></body></html> c. <html><head></head><body></body></html> d. <html><head></head></html>

Which of the following is correct for an image? a. An image must be resized in an editor to fit in the specified space on a webpage. b. If you have a big image but specify smaller height and width attributes in the <img> tag, only the top-left portion of the image will be displayed in the browser. c. Both of the above are correct. d. The height and width attributes allow resizing the image on the webpage. On one of your Web pages named Listing.html, you specified a target like this: <a name="target4">old Listing</a> How will you make a link to the above target? a. <a url="#target4">check Old Listing as well</a> b. <a href="#target4">check Old Listing as well</a> c. <link url="target4">check Old Listing as well</link> d. <a href="listing.target4">check Old Listing as well</a> Which of the following values is/are valid for the valign attribute of a <tr> tag? a. base b. bottomline c. middle d. baseline e. None of the above

What is meant by the cellspacing attribute? a. It makes the cell span more than one column. b. It specifies the space between the cell wall and the contents of the cell. c. It specifies the space between two cells. d. It makes the cell span more than one row. Which of the following is not correct for an action attribute for a form tag? a. The action attribute can be defined at runtime. b. If the value for action is null (action=""), then the form submits user data to itself. c. If the URL is not provided to the action attribute, the form will not submit user data anywhere. d. None of the above You are designing a website for one of your clients. You have to use an applet named cal.class to show a scrollable calendar. Which of the following is the recommended way of calling it if you are using HTML 4.01? a. <applet code="cal" width="180" height="180"></applet> b. <img src="cal"></img> c. <object classid="appid" id="cal" width="180" height="180"></object> d. <sub id="cal"></sub>

Where must the styles specified for a CSS internal style sheet be located? a. Inside a table tag b. Inside a div tag c. Inside the head tag d. Anywhere on the webpage Which attribute specifies the submit URL in a form tag? a. method b. action c. name d. id Your browser supports bidirectional text. Which tag below will you use if you need to display text from right to left? a. <opposite>text should go in opposite direction</opposite> b. <p direction="rtl">text should go in opposite direction</p> c. <body dir="rtl">text should go in opposite direction</body> d. <text dir="rtl">text should go in opposite direction</text>

Which of the following items should not be used in the address tag? a. physical contact address of the Web site b. contact email address for the Web site c. contact signature d. abbreviations Which of the following values is not valid for the align attribute of a heading tag? Note: The align attribute was deprecated in HTML 4.01. Use styles instead in new coding. a. right b. left c. middle d. center Which tag is meant for creating inline frames that display other HTML pages? a. img b. frame c. iframe d. url

You have the following directory structure. webroot->products->ordered->delivered The products directory has a page called Products.html and the delivered directory has a page called Delivered.html. You want to provide a link to the Products page on Delivered.html. The ideal code should be: a. <a href="././products.html"> All Products </a> b. <a href="../../products.html"> All Products </a> c. <a href=".../.../products.html"> All Products </a> d. <a href="../products.html"> All Products </a> e. <a href="products.html"> All Products</a> Which of the following statements is/are correct for DTDs? a. A strict DTD allows users to use cascading style sheets. b. A transitional DTD displays content in those browsers that don't support CSS. c. A frameset DTD is used to partition the browser window. d. All of the above Which of the following tags can be used in place of a button tag? a. legend b. ol c. input d. dl

You want to display a table listing out customer names and their contact information. The heading of the table is shown in the figure. What is the code for creating the first line of the table heading? a. <tr> <th>customer Name</th> <th rowspan=3>contact</th> </tr> b. <tr> <th>customer Name</th> <th colspan=3>contact</th> </tr> c. <tr> <th>customer Name</th> <th cellpadding=3>contact</th> </tr> d. <tr> <th>customer Name</th> <th cellspacing=3>contact</th> Which of the following attributes is/are related to the <img> tag? a. height b. alt c. src d. All of the above Which of the following is not an attribute of a meta tag? a. name b. content c. http-equiv d. type

Which of the following options about the <select> tag is incorrect? a. The name attribute should be specified. b. The disabled attribute disables the drop-down list. c. The multiple attribute allows the user to choose multiple options. d. The text specified in the value attribute is displayed in the drop-down list. View the following code: <html> <frameset cols = "20%, 20%,*"> <frame src ="a.html"/><frame src ="b.html" /><frame src ="c.html" /> </frameset> </html> What will be displayed on viewing the above in a browser? a. An HTML page with three columns of equal width. b. An HTML page with three rows of equal height. c. An HTML page with the last column occupying 60% space. d. An HTML page with the last column occupying 40% space. Which of the following tags within a table can be used to set the properties of one column or a group of columns? a. colgroup b. col c. cols d. tab

Within a table cell <td>: a. <p></p> tags cannot be used. b. <ol></ol> tags cannot be used. c. <table></table> tags cannot be used. d. <form></form> tags cannot be used. e. All the above tags could be used. Your website has moved to some other address. What HTML 4.01 code would automatically redirect a user to that address within 3 seconds of landing on the old address? a. <meta http-equiv="refresh" content="3;url=www.newurl.com"> b. <meta http="refresh" url="www.newurl.com"> c. <meta scheme="refresh" name="redirect" http="www.newurl.com"> d. <meta http-equiv="redirect" content="3" http="www.newurl.com"> It is not necessary to give the coordinates for an image or object defined within an area tag, if the value of its shape attribute is: a. circle b. poly c. default d. rect

Which of the following is/are not valid? a. <h2>main Title</h2> b. <h>main Title</h> c. <h3>main Title</h3> d. <h7>main Title</h7> Which event is fired when an element loses its focus on a form? a. onfocus b. onload c. onblur d. onselect Choose the incorrect statement(s): a. An HTML attribute is additional information included inside a tag. b. HTML is case sensitive. c. All the HTML4.01 tags must be paired. d. Your browser may appear to correctly use newly deprecated code for the present, but its support for deprecated code could be halted at any time after the browser is updated.

Which of the following tags would assist in creating named groups within a select list? a. opt b. group c. optgroup d. selectgroup You do not want the user to resize the frame. The code should be: a. <frame src="mypage.html" name="homepage" scrolling=yes resize="false"> b. <frame src="mypage.html" name="homepage" scrolling=yes resize="true"> c. <frame src="mypage.html" name="homepage" scrolling=yes noresize="true"> d. <frame src="mypage.html" name="homepage" scrolling=yes noresize="noresize"> The tag which is used to show monospaced text is: a. <td> b. <th> c. <tt> d. <b>