HTML Test

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

What is a CSS selector?

Any element to which designated styles are applied.

When creating your Web pages, you should consider the site's structure because your files will be uploaded to a server eventually. How are Web site files typically structured?

HTML pages are placed in a directory, and all images and files used in that page are stored in subfolders with the same name.

What happens when you place a CSS rule between the /* and */ characters?

/* STYLE SHEET FOR SYB.HTML */ /* A comment is added here */

You are embedding a video in your Web page and want to incorporate the play, pause, rewind, fast forward and volume video controls. Which attribute is needed to accomplish this?

controls="controls"

In an HTML form, the <input> tag is used to:

create text boxes, radio buttons and Submit buttons. The <textarea> tag creates a text box in which users can write longer comments. The <select> tag is used to create lists of selections.

what's the difference between gif87a and gif89a?

gif87a is not an internet ready format that supports animation.

When you create an internal hyperlink, you create the link that points to the bookmark using the anchor tag with which attribute?

href

To alleviate language concerns when designing Web pages that will be viewed globally, you should:

specify Unicode support for all of your site's Web pages.

What is the relationship between hot spot coordinates and the pixel size of an image?

Coordinates are dependent upon the pixel size of an image; if an image is resized, you must change the coordinates.

You are embedding a video in your Web page. What three formats should you specify in the <source> element to ensure that most browsers and devices can access your video?

MP4, WebM and Ogg

How many colors are specified in the browser-safe color palette?

216

What is RGB?

255,0,0 stuff like that

Consider the following HTML code from a page that resides on a Web server: <a href="/pages/index.html"> CCYP Home </a> According to this code, where does the file named index.html reside on the server?

In the "pages" directory, which resides off of the server's root directory

Consider the following HTML code on a page that resides on a Web server: <a href="pages/index.html"> CCYP Home </a>

In the "pages" subdirectory, which resides beneath the page being currently edited.

Consider the following HTML code: <a href="#targetArea1"> Top of the FAQ </a> Which of the following properly establishes the internal link anchor for the given code?

In this example, the following code creates the correct internal link anchor: <a id="targetArea1"> <h1> FAQ </h1> </a>. Creating an internal link requires two steps. You must first use the anchor element, <a>, with the id attribute to define an area as a target (the bookmark or anchor). Then, in another portion of the page, you create the link that points to the bookmark using the anchor element with the hypertext reference (href) attribute.

In hexadecimal code, the number 16 is represented as:

10

Which line of code creates a text box in a Web form that will validate as HTML5?

<input type="text" name="UserName"/>

How do you create a list of selections?

<select>

What is the term for a hardware-based or software-based system that mediates between a merchant and an acquirer?

Payment gateway

Which attribute is shared by all Web form field elements?

The name attribute

Which features are commonly found in a Web site management editor?

Web site management editors have many features, including the ability to assign tasks to team members. Additional features include workflow integration with other tools (e.g., Microsoft Office or Web applications) and task automation (e.g., automatic validation for coding and accessibility issues).

Why should you avoid adding spaces or hard returns within an <img> tag?

With HTML, if you add a space or use the ENTER key to create a return within the <img> tag, the additional space will not be rendered in a browser. In XHTML, however, sometimes adding spaces or hard returns within or even between <img> tags will cause white space to appear and affect the placement of the image on the page.

Which of the following occurs when you specify the wrap="soft" attribute and value for the <textarea> tag?

You can use a text area box to gather more than one line of text from a user. The <textarea> tag provides a scrolling text box into which a user can enter multiple lines of text. The wrap attribute of the <textarea> tag specifies whether user-entered text can wrap to new lines in the text box. If "soft" is specified, text continues on one line beyond the scrolling text box border, so the user must scroll horizontally to read his or her entry. If "hard" is specified, text will wrap to a new line as it approaches the box border.

Why use a GUI HTML editor?

You don't have to know HTML at all.

You are developing Web pages for your company's site. Which of the following can you expect as a result of developing Web pages using SEO?

You will create Web pages that rank highly for search engines that use spiders.

What will happen if you neglect to include a <!DOCTYPE> tag in your HTML document?

Your page will not validate with a markup validator.

A flat file is a database in which information:

is stored in a single table. There are several database types: flat file, in which information is stored in a single table, often in a simple text file; non-relational, in which information is stored statically (information can be searched, but cannot be reorganized or placed into another database); and relational, in which information can be sorted, altered and placed into other databases for retrieval.

An interlaced image format is read from:

left to right

Which of the following is a valid HTML referenceto a CSS file?

link=rel

The term "pixel" is short for:

picture element

The HTML5 canvas API supports only which shape?

rectangle. Canvas only supports one primitive shape, the rectangle. To draw a rectangle, you must specify the x and y coordinates as well as the width and height of the object you want to draw.

what is an alternative to https?

ftps as in ftps.google.com

When a user with a slow Internet connection downloads a non-interlaced image, the top of the image will appear when the browser has read:

50 percent of the image.

Which of the following lines of HTML code will create a link to the text that reads "FAQ"?

<a href="#targetArea1"> Top of the FAQ </a>

Which of the following is a valid HTML reference to a CSS file?

<link rel="stylesheet" type="text/css" href="syb/syb.css" title="stylesheet"/>

You have been assigned to work with a Web developer to troubleshoot the output of a CGI application. Your job is to type commands into a terminal, and the Web developer will read the output. You cannot see what you are typing into the terminal. The Web developer directs you to enable echo in your application. What is echo?

A command that repeats the terminal input you type

Consider the following code from a CSS document: body {color: teal; font: white;} This code is an example of what?

A rule

In a CSS document, within what must you enclose properties and values when you define a rule for a specified selector?

Curly braces ( { } )

Which of the following is a proprietary technology that manipulates vector-based graphics to create animated sequences?

Flash

CSS allows you to change the size of text. Which of the following statements about the font-size property is true?

Headings (h1 through h6) should be used whenever possible instead of the font-size property. The font-size property takes values in pixels, with 16px being the normal size of default text. Headings (h1 through h6) should be used whenever possible instead of the font-size property.

Consider the following HTML code from a page that resides on a Web server: <a href="/pages/index.html"> CCYP Home </a> According to this code, where does the file named index.html reside on the server?

In this example, the file named index.html resides in the "pages" directory, which resides off of the Web server's root directory. The initial forward slash ( / ) instructs the browser to look for a directory named "pages" that is off of the root directory.

In an HTML form, what is the purpose of the name attribute in an <input> tag?

It identifies the form input received in a name=value pair by the site's administrator.

Question 20 : The HTML code < and > are examples of:

Non-keyboard characters

Which term describes a style of programming that links data to the processes that manipulate it, rather than using subprograms to accomplish tasks?

Object-oriented is a style of programming that links data to the processes that manipulate it. An object-oriented language may include procedural elements, but instead of using subprograms to accomplish a task, the object-oriented language will create an object that can then be manipulated throughout the program. A procedural language relies on subprograms to accomplish a task in an application. A compiled program consists of code in a standard text file that has been converted into an executable application by a compiler. A client-side language runs on the user's computer after the page is downloaded.

Which of the following can be considered a disadvantage of using FormMail?

Older versions of FormMail could be fooled into sending e-mail to anyone.

Which of the following is proprietary to Windows-based operating systems and is used to update database files?

Open Database Connectivity (ODBC)

The most common form field used in designing Web forms is the:

Text Box

Which of the following is an accepted branding concept in business?

The brand that a business establishes for itself can be extremely helpful in increasing the public's awareness of its product or service, and can help sustain and increase the growth of the business. A brand should be simple. Easy-to-remember logos or graphics make very good brands. People tend to remember simple things and ignore or forget complex things.

Which of the following is characteristic of two-tier computing?

The client is responsible for presentation and business logic, and a server houses only the data.

Which of the following should you use to specify the width in characters of a scrolling text box?

The cols attribute

When you are ready to publish your Web site files to your Web host, which choice lists all the information you must specify in order to publish your files?

The destination server's name or IP address, authentication information, and the file location on the remote server

What is HTML?

The file format for documents viewed using a browser, such as documents on the Web. Hypertext Markup Language (HTML) is used to format Web pages for display.

In Microsoft Internet Explorer, what occurs on a Web form if you omit the closing </form> tag?

The form fields will render but users will not be able to submit any information.

What occurs when you surround an image tag with opening and closing anchor tags?

The graphic image defined by the image tag will become a hyperlink.

<a href="http://www.habitat.org"> Habitat </a> In this example, to what does "Habitat" refer?

The page text that will be affected by the anchor element

What is the primary purpose of a business Web site?

The primary purpose of a business Web site is to provide a way for a business's customers to find that business over the Internet. A Web site is part of a business's marketing effort and is the company's first form of advertising. Marketing is essentially presenting the business's product to potential customers so that they want to buy it from that company instead of from someone else.

Radio buttons are reserved for two or more mutually exclusive options on a Web form. How do you ensure this exclusivity?

The radio buttons must share the same name attribute.

Consider the following HTML code: <select name="Countries" multiple="multiple" size="8"> What does the size attribute control?

The size attribute of the <select> tag controls the number of items that will appear in a scrolling list box. Users must scroll down to see additional items.

With which CSS table property can you specify values of top, bottom and middle?

The vertical-align property

What are the two types of GUI editors?

There are two types of GUI editors: Page editors Site management editors Both are What You See Is What You Get (WYSIWYG) programs. Adobe Dreamweaver and Microsoft Expression Web are examples of GUI editors.

HTML5 APIs are used to create apps for:

mobile devices

Which of the following is an XML-based protocol used by credit card companies to add security to online credit and debit card transactions?`

3-D Secure is an XML-based protocol used by credit card companies to add security to online credit and debit card transactions. It is often listed as "Verified by VISA" or "MasterCard Secure Code." 3-D Secure has replaced the Secure Electronic Transactions (SET) protocol.

Which line of HTML creates a valid internal hyperlink to the target named "targetArea2"?

<a href="#targetArea2"> Top of the FAQ </a>

Which line of code represents a valid way to use an image as a hyperlink, and will validate in an HTML5 page?

<a href="http://www.habitat.org"> <img src="questions.jpg" id="questions" alt="Questions" border="0"/> </a>

Which line of HTML code uses the correct syntax to define an image map's regions?

<area shape="rect" coords="0,0,75,75" href="home.htm" alt="home"/> The <area> tag defines the shape, coordinates and hyperlink target for each hot spot area in an image map. The <area/> tag is an empty tag contained within the <map> </map> tags. Alternative text must be provided using the alt attribute whenever the href attribute is used. The example code defines a rectangular area.

You want to create a horizontal rule on your Web page that is 10 pixels high and occupies 20 percent of the screen. You also want to ensure that the page validates as HTML5. Which line of HTML code will fulfill these requirements?

<hr style="height:10px; width:20%;"/> (Use :)

Your company Web site uses a Web form to collect data from a user. The user has entered data into the form fields and will soon click the Submit button, then the data will be sent to a database. Which of the following passes information from the Web form to the database server?

A CGI script passes information from the Web form to the database server. A CGI script can be created using various languages, from Perl to Java.

What does the <ol> element create?

A list with numbers

What is the term for a logical construct in programming that allows you to control the way information flows in the application?

A statement is a logical construct in programming that allows you to control the way information flows in the application. An interpreter is software used to read and process code in standard text files. A function is a line of code that allows you to refer to an entire series of steps or commands. An echo is a command that repeats the input you type back to a terminal or an application window.

What is the term for the Web 2.0 programming methodology that enables Web applications to interact with users in much the same way they do with desktop applications?

Ajax (Asynchronous JavaScript and XML) is a Web 2.0 programming methodology that enables Web applications to interact with users in much the same way they do with desktop applications. Ajax allows you to create interactive Web applications using XHTML, CSS, the Document Object Model, JavaScript and XMLHttpRequest (an application programming interface [API] that is used to transfer XML and other text data between a Web server and browser).

The HTML <area> tag, which defines the coordinates of an image map, uses which of the following attributes?

Attributes of the <area> tag include href, alt and shape.The name attribute is contained within the <map> tag and provides a reference name for the image map. The "rect" value (as well as "circle" and "poly") can be used with the shape attribute.

Why should you avoid placing paragraph breaks around heading styles in your HTML code?

Because headings are block-level elements, they are automatically preceded and followed by paragraph breaks, regardless of the relative position of the element to other text in the source code. It is important to note that you cannot place any header elements within a set of <p> </p> tags. If you do, your code will not validate as HTML5 and it may not render properly.

Which choice correctly describes the relationship between tables and borders?

By default, borders do not appear around tables.

By default, content in a table data cell is aligned:

By default, content in a table data cell is aligned horizontally to the left and vertically to the center of the cell. Content in table header cells is aligned both horizontally and vertically to the center of the cell.

You want to create an internal hyperlink in your Web page. Which choice describes the two steps you must perform?

Create an anchor, then create a link that points to the anchor. Creating an internal link requires two steps. You must first use the anchor element, <a>, with the id attribute to define an area as a target (the bookmark or anchor). Then, in another portion of the page, you create the link that points to the bookmark using the anchor element with the hypertext reference (href) attribute.

Which of the following statements is true of Dynamic HTML (DHTML)?

DHTML is both a front-end and a back-end solution.

Which activity is most likely to be necessary during a Web site planning meeting?

During Web site planning, it is often necessary to explain technical concepts to those who have non-technical responsibilities (e.g., marketers). Conversely, you may also find it necessary to ensure that technical workers (e.g., members of the Web development team)are aware of non-technical issues so that everyone understands the requirements and capabilities of the Web site. Of the examples given, explaining the capabilities of the Web server and database to the marketing team is an example of explaining technical concepts to those who have non-technical responsibilities.

table, td, th { border:1px solid gray; } td, th { padding:6px; border-spacing:2px; }

Each cell will have 6 pixels more than the default of space between the content and the cell border.

End users have complained that when they click a link on your company's Web site, the wrong client loads. You review the page with the suspect link and find the following HTML code: To begin an FTP session, click the following link: <a href="http://ftp.habitat.org"> FTP Session </a>

It needs to say ftp://ftp.habitat.org instead.

The W3C Authoring Tool Accessibility Guidelines Recommendation outlines seven requirements that all focus on what issues for a GUI editor?

Its ability to generate proper code and its usability by a disabled person creating Web pages

Which of the following can be run on various systems and is used to update database files?

JDBC. You can update database files by using the Microsoft Open Database Connectivity (ODBC) interface or its Java counterpart, Java Database Connectivity (JDBC). JDBC was developed by Sun Microsystems. Unlike ODBC, JDBC is not limited to Microsoft operating systems. Like ODBC, JDBC supports major vendors (for example, IBM and Oracle), and it also supports SQL. JDBC can be run on various systems, including Windows and UNIX.

The <audio> element supports which three formats?

MP3, Ogg and Wav

Most daemons (i.e., services) are written in which language?

Most daemons (i.e., services) are written in C. C is a powerful compiled programming language that has served as the foundation for other languages, including Java. It is mostly used to develop stand-alone applications rather than Web applications.

Which of the following language types does not allow for inheritance from one class to another?

Object-based programming languages are similar to object-oriented programming languages, but they do not allow for inheritance from one class to another.

Which of the following is an example of on-site Web analytics?

On-site Web analytics involves studying visitor behavior once that visitor has accessed your site. Using trend-analysis software to analyze server logs is an example of on-site Web analytics. Off-site Web analytics involves determining your potential audience, and how well your site has addressed and penetrated that market. Identifying the size of your market, conducting surveys and consulting market research sources are examples of off-site Web analytics.

Which of the following is an interpreted server-side scripting language used for creating dynamic Web pages?

PHP Hypertext Preprocessor (PHP) is an interpreted server-side scripting language used for creating dynamic Web pages. It is embedded in HTML pages but is usually executed on a Web server.

What is Scalable Vector Graphics (SVG)?

Scalable Vector Graphics (SVG) is a W3C-recommended language that uses XML to describe graphics and graphical applications. SVG was developed by various vendors, including Adobe, Microsoft and Sun. SVG is an open standard.

Proprietary file formats can enhance the look and feel of your Web site. Which of the following is a drawback to using proprietary formats?

Some proprietary formats limit a disabled person's ability to obtain information. For example, if you plan on posting essential information in a PDF document, you should provide equivalent information in standard text format elsewhere on the site because sight-assistance tools may not be able to convert the PDF document to audible content.

Which HTML tag should you use to define a hot spot region on an image map?

The <area> tag

Which attribute is associated with the <form> element and is used to specify the name and location of the CGI script used to process the form?

The <form> element has two main attributes associated with it: method and action. The action attribute is used to specify the name and location of the CGI script used to process a form. The method attribute specifies the method by which the browser will send form data to a Web server. The name and type attributes are used with the <input> tag.

What is the W3C standard that describes the elements, or objects, within a document rendered by a Web browser?

The Document Object Model (DOM) is a standard developed by the W3C that describes the elements, or objects, within a document rendered by a Web browser.

When you specify the height and width of table elements, what occurs when you set multiple values in multiple cells?

The highest value takes precedence.

When you create an internal hyperlink with the anchor element, which attribute should you use to define the area of the Web page to which the hyperlink will link?

The id attribute

Which of the following is the most important consideration to ensure that your image's resolution will be as clear as possible when viewed on a computer monitor?

The image's dimensions in pixels. For Web images, the dimensions of the image in pixels — rather than the dpi or ppi — are most important. When designing a Web site, you will typically resize images to the dimensions you want to use on your Web page.

Which choice lists the three elements generally involved in an n-tier solution?

When discussing databases, three elements are generally involved: data (the database file or multiple database files), business logic (the SQL coding necessary to create relationships with the data stored in the database), and presentation (the way that data and business logic are presented on the user screen). Presentation includes Web forms created with HTML and application-specific interfaces such as Microsoft Access or a Web browser.

Yahoo! and Google are examples of:

horizontal portals. A horizontal portal is a Web site that provides links to various Web sites with no particular focus. Yahoo! and Google are examples of horizontal portals . Each of these sites contains links to other sites, but linked sites represent diverse interests (for example, travel, news, shopping), rather than one focus. A vertical portal is dedicated to one specific interest or field.

What is the <th> element?

The <th> element creates a table header and applies larger, bold text style.

What does the <em> tag do?

Italicizes the words.

When scanning images from a print source or importing pictures from a digital camera for use on the Web, to what should you set the resolution in order to display the image on screen at approximately the same size as the original image?

72 dots per inch (dpi)

Describe each section on an HTML5 page:

<header> - Top of the Web page, similar to the header in a word-processing document. <nav> - Defines navigation links, such as hypertext menus to access various pages of the Web site. <article> - Web site content, such as company services, articles, blogs, images and videos. <aside> - Content that is "aside" from the article content, such as advertisements or news feeds. <footer> - Bottom of the Web page, similar to the footer in a word-processing document.

Which of the following is used in many programming languages to help end an infinite loop?

A Break Statement

Consider the following HTML code: <input type="file" name="File"/> What does this code create on a Web form?

A Browse button so users can select and upload files to your site

What occurs when the Web server receives raw text strings from the client?

A CGI script parses and formats the raw text strings into a human-readable format.

Consider the following HTML code: <th> Larry </th> <th> Moe </th> <th> Curly </th>

It is part of a table with three columns.

Providing information to a client only upon client request is an example of:

pull technology. Pull technology is any technology that provides information to a client only upon request. For example, whenever you download a file from a Web site or collect your e-mail, you are using pull technology.

In RGB code:

the higher the numeric value representing a color, the lighter that color will be.

Roberto is creating a Web page using HTML5. He wants to indent a quote on the page. Which element should he use to accomplish this?

<blockquote>

How do you create text box?

<textarea>

Which of the following costs should be considered when providing your own Web server instead of using a cloud service provider or an Internet Service Provider (ISP)?

A hardware and software support technician

What is XML?

A language that organizes data in a document and formats the page's appearance in a Web browser. Extensible Markup Language (XML) is used to specify content meaning.

What does the <ul> element create?

A list with bullet points

Which of the following should you use when you develop your own Web pages and want to link them to form a site?

A local hyperlink is a link you create from one file on your local system to another file on your local system. You create these types of links when you are developing your own pages and linking them to form a site. An external hyperlink is a link you create from a file on your system to a separate file on the Internet. An internal hyperlink links areas within the same Web page file. You can create a hyperlink from a graphical image by surrounding the image tag with opening and closing anchor tags.

What kind of Web site contains photographs that are copyrighted to the photographer from whom you must obtain permission to use the images?

A possible source for free images is photo-sharing Web sites, although photographs on these Web sites are copyrighted to the photographer and you must contact the photographer or owner of the photo to obtain permission to use the images. A stock-photography Web site contains photographs for which you can purchase the rights to use in printed material or on a Web site. Photographers file their images with an agency that negotiates licensing fees on the photographer's behalf. Stock photo images are then licensed from the agency. Microstock photography is an offshoot of stock photography. Microstock providers deal almost exclusively over the Internet, accept photographs from amateur photographers as well as professionals, and sell their images at a very low cost (generally from US$0.20 to $10).

What is the term for an instruction within an HTML page that directs the Web server to perform an action?

A server-side include (SSI) is an instruction within an HTML page that directs the Web server to perform an action. SSI is considered an alternative to CGI because it does not use languages such as JavaScript, Visual Basic or Java. Rather, SSI instructions are written in SGML. The instruction is used to dynamically add content to a page just before it is downloaded to a user.

Information has just been sent from a Web form on a client's system to a Web server. Which of the following is required to process this information at the Web server?

A user-input form must contain code that references a Web server; this code is called an application, or a Web server application. This application helps convey the information provided by the end user to the Web server, or to a database server that can store and/or process the information. Such applications are called Common Gateway Interface (CGI) applications because they enable information to pass in and out of a server. Various CGI implementations exist. CGI implementations use various computer languages and technologies, such as Active Server Pages (ASP).

Which server-side scripting language is Microsoft's original server-side scripting solution?

Active Server Pages (ASP) is Microsoft's original server-side scripting solution. It has largely been supplanted by .NET. You can create ASP applications using VBScript, which is quite similar to JavaScript, except that VBScript is a proprietary Microsoft language whereas JavaScript was introduced by Netscape. PHP is an interpreted server-side scripting language used for creating dynamic Web pages. PHP is not a Microsoft solution but can be used as an alternative to ASP. Perl is a cross-platform programming language that enables users to write custom CGI programs and system management programs. Perl is also not a Microsoft solution.

In a raw text string, which of the following is used to delimit name=value pairs?

Ampersands ( & )

Question 42 : What is the term for a Web page graphic containing one or more clickable regions that, when clicked, link you to other pages or page sections?

An image map is an image that contains clickable regions, sometimes called hot spots. Each hot spot acts as a hyperlink. You define each hot spot with a set of coordinates (indicating its position on the image) and a URL reference.

Which term describes a set of files called a library that you can refer to in your code?

An include is the name for a set of files called a library that you can refer to in your code. Programmers often include libraries in their code to avoid having to re-create code that has already been written.

Which CSS table property should you use if you want to combine the borders of adjacent cells into a single border instead of separating them?

The border-collapse property

If you want to specify default text for a text area box, where should you add the text that will appear as default text?

Between the <textarea> tags

Which of the following would be the best method to use for floating images to the left and right of text in HTML5 if you are developing sites with multiple pages?

External CSS classes are useful for floating images to the left or right of text in HTML5. The inline CSS style attribute can also be used for floating images to the left and right of text although it is not the best method to use if you are developing sites with multiple pages.

Which Web image format is best suited for line art, custom drawings and navigational images?

GIF

Vector graphics:

Graphics that use points, lines, curves, and shapes based on mathematical equations to represent images.

Which HTML heading style renders text the same size as normal text?

HTML uses six heading styles. Heading tags are container tags that encompass the affected text. The <h1> and </h1> tags cause enclosed text to be rendered in the heading level 1 style; the <h4> and </h4> tags cause enclosed text to be rendered in the heading level 4 style, and so forth. The largest heading is level 1. Heading level 4 text is rendered the same size as normal text. Heading levels 5 and 6 are smaller than normal text and should be used sparingly, if at all.

If you are conducting search engine optimization (SEO), you should:

If you are conducting search engine optimization (SEO), consider the following strategies related to forms: Create as simple a form as possible. Each additional field you use may reduce your score. Some search engines may score pages lower if a CAPTCHA is used. The problem with a CAPTCHA, or any other element that requires human input, is that a bot that encounters it will not take time to read and process all of the page. This can cause the page to be scored lower. Give form fields informative, descriptive labels. Provide a clear call to action. Do not assume that a Submit button will inform users (or search engine bots) about what they should do. Provide alternative text navigation.

Name the different table elements and what they do.

In HTML, the <td> element is used to contain content in a table cell. The <tr> element creates a row within a table. The <th> element creates a table header and applies larger, bold text style. The <table> element creates the overall table structure and contains all other table elements.

Consider the following HTML code from a page that resides on a Web server: <a href="../ccyp.html"> CCYP Home </a> According to this code, where does the file named ccyp.html reside on the Web server?

In a directory one level above the current page

In programming, which of the following is a line of code that allows you to refer to an entire series of steps or commands?

In programming, a function is a line of code that allows you to refer to an entire series of steps or commands. Functions are used to organize code into discrete sections.

Which of the following describes a Server-Side Include (SSI) on a Web page?

It is an SGML statement processed by the server. The server reads the statement on the Web page and then includes the results of the instruction on the page for the end user to see. SSI is used for many purposes, including placing the results of a database query on a page, executing other programs, providing the last time a document was modified, and adding the current date as a timestamp on a page.

Which of the following characteristics is true of JavaScript?

JavaScript can be used on either the client side or on the server side. JavaScript, an object-based scripting language, allows developers to add interactivity to their Web pages. When used on the client side, JavaScript code must reside inside HTML documents in order to run.

In a raw text string, which of the following is used to replace spaces entered by the user?

Plus signs ( + )

Which term describes a style of programming that uses subprograms to accomplish tasks?

Procedural programming languages rely upon subprograms to accomplish a task in an application. Subprograms are contained within an application and are called by various terms depending upon the language used.

Automatically providing information to a client list is an example of:

Push Technology

Which HTML element can be used to create a primitive table on a Web page using tabbed data?

The <pre> tag. The <pre> tag can be used to create a primitive table because it allows you to display preformatted text (such as tabbed data). The <p> tag defines the start of a new paragraph. The <blockquote> tag centers and indents a block of text. You should use the <table> tag to create a standard table.

What is the <table> element?

The <table> element creates the overall table structure and contains all other table elements.

What is the default value for aligning images relative to text using CSS?

The Bottom

Which of the following describes the HTML5 drag-and-drop API?

The HTML5 drag-and-drop API allows a user to grab an object and move it to a different location on a computer screen or into an external application such as the desktop. The HTML5 canvas API provides a place on a Web page (a "canvas") where developers can display graphics, animation, video and games "on the fly" without the need for a plug-in. An application cache is a directory on a computer where applications can be stored and run without access to the original application. A drop zone is an area on a Web page that has been defined as a place where dragged items can be placed.

What is the purpose of the <link> tag in an HTML document?

To create a link to a style sheet. The HTML <link> tag is used to link a Web page to a style sheet document. To create external and internal hyperlinks, you would use the <a> tag. Database links are most often made using a scripting technology, such as PHP, Perl or .NET.

In the HTML5 standard, what is the recommended way to center a paragraph of text?

Use an inline CSS style attribute in the paragraph tag. In HTML5, you must use an inline CSS style attribute in the paragraph tag when you want to center a paragraph of text. The syntax is as follows: <p style="text-align:center"> This text is centered. </p>. In this example, the <p> tag encompasses the text you want to format. The style attribute tells the browser that the paragraph text should be aligned to the specified value, "center." The <center> tag is deprecated and should not be used. The <blockquote> tag centers and indents a block of text; however, do not use <blockquote> tags within <p> tags.

What is the best way to ensure that your Web page code conforms to the W3C's standards?

Use the GUI editor's built-in code validator or visit a validation site.

In database technology, what is the term for the SQL coding necessary to create relationships with the data stored in a database?

When discussing databases, three elements are generally involved: Data - the database file or multiple database files. Business logic - the SQL coding necessary to create relationships with the data stored in the database. Presentation - the way that data and business logic are presented on the user screen. Presentation includes Web forms created with HTML, and application-specific interfaces such as Microsoft Access or a Web browser.

Intranets and extranets are examples of:

vertical portals. A vertical portal is a Web site dedicated to one specific interest or field. Each linked site on a vertical portal maintains a topical focus. Intranets and extranets are examples of vertical portals because they provide links to external sites and are dedicated to a specific topic: the businesses that host them. A horizontal portal provides links to various Web sites with no particular focus.

what is hexadecimal color?

FF0000 stuff like that

what should you remember when designing mobile websites?

they may not have images enabled and they are looking for very specific information such as addresses or phone numbers.

When creating an image map hot spot in HTML, a circle area is defined by:

two coordinates and the circle's radius. Rectangular image map areas require four numbers to define the coordinates. Polygon image map areas require three or more numbers to define the coordinates.

Question 20 : Selena needs to insert a comment in a Web page's code to ensure that other Web team members who work with the page code understand the nature of her changes. She wants to insert a comment that reads as follows: Modified by Selena Ramirez - for HTML compliance Selena wants this page to validate as HTML5 without any warnings or errors.

<!-- Modified by Selena Ramirez - for HTML compliance -->

Which of these HTML elements is considered a text-level element?

<br>. Answers A, D, and C are incorrect. The <p>, <h2> and <list> elements are paragraph-level or block-level elements.

Consider the following code for a text box in a Web form: <input type="text" name="UserName"/> Which modified tag should you use if you want the text box to appear with default text that reads "Enter Name Here"?

<input type="text" name="UserName" value="Enter Name Here"/> To add default text that will appear in a Web form text box, you would add the value="DefaultText" attribute and value, with whatever default text you want to appear. The end user will see the default text in the text box, and this existing text will disappear when the user enters information in the field.

Prior to HTML5, structuring a Web site using stylesheets with the <div> tag and its id attribute has been an acceptable practice to govern the document's structure. HTML5 has introduced five new elements for more effective document structuring. Which choice correctly lists these five HTML5 structure elements?

<nav>, <article>, <aside>, <header, <footer>

You are developing a Web page using HTML5 and CSS. You want to align a paragraph of text to the right side of the page. Which code uses the correct syntax for this style?

<p style="text-align: right">This text will align to the right</p> In this example, the <p> tag encompasses the text you want to format. The style attribute tells the browser that the paragraph text should be aligned to the specified value, "right".

Which HTML tag is used to contain content in a table cell?

<td>

An end user has just clicked the OK button on a Web document to send information to the Web server. Which of the following contains a reference to the CGI script that allows this Web page to send information to a Web server?

A Web form.A user-input Web form must contain code that references a Web server. The code is called an application, or a Web server application. This application helps convey the information provided by the end user to the Web server, or to a database server that can store and/or process the information. Such applications are called Common Gateway Interface (CGI) applications because they enable information to pass in and out of a server. Various CGI implementations exist. CGI implementations use various computer languages and technologies, such as Active Server Pages (ASP).

Consider the following line from an HTML document: <link href="style.css" rel="stylesheet"/> This code shows an example of:

A stand-alone non-empty tag. It has a slash mark with no element.

Consider the following example code from a Webform:What is your favorite hobby?<select name="Hobby"><option> Kayaking </option><option> Swimming </option<option> Fishing </option>option value="None Above" > None of the Above</select>You have been directed to change this form field sothat users can select more than one option from thislist. In addition to rewording the page text, whichchange must you make to the code?

Add the multiple="multiple" To change the single-select list code given in the example to the correct code for a multiple-select list, youmust add the multiple="multiple" attribute and value tothe opening <select> tag. This additional attribute isthe only difference between creating a single-option seselect list and a multiple-option select list.

You are currently editing a Web document in a GUI HTML editor. You want to specify a background color for the page. To do this in a GUI editor, what should you do first?

All GUI HTML editors allow you to specify a background color by first right-clicking the page. You can then take the necessary steps to apply the appropriate background color.

As you passed your mouse cursor over a hyperlink on a Web page, the text enlarged. Which of the following was used to accomplish this effect?

An Event Handler. An event handler is a line of code that allows a language to respond to a specific event or user input (for example, text that animates when a user passes his or her mouse cursor over it). An event is an action as considered from the browser's perspective. A model is a theoretical means of describing reality. Languages such as Dynamic HTML (DHTML) and JavaScript use these components to create interactivity in Web pages.

What is an HTML tag made of?

An HTML tag can consist of the following: An element, an attribute, and a value. Not all tags have attributes and values. For example, many times the <p> tag is used without any attributes and values. A container tag is a tag that is applied as a pair (an opening tag and a closing tag) enclosing the page content to be affected by the tag.

What is an application cache?

An application cache is a directory on a computer where applications, such as Internet apps, can be stored and run without access to the original application.

Which technology resides on a server and receives Web form data from the browser, then processes the data into human-readable format?

Common Gateway Interface (CGI) is used to receive and process data submitted with a Web form by a user.

You need to pay an Internet Service Provider (ISP) for services rendered. Which payment technology would you use?

Electronic Funds Transfer (EFT)

Consider the following HTML tag: <div align="center"> Which choice lists the proper terms for the HTML components that appear in this tag?

Element, attribute, value

Your company's intranet Web server has crashed. You must help re-create the server. A server administrator has copied a CGI script from last night's backup tape. The server is an exact duplicate of the server that just crashed. However, this script will not process information on the new server. What is most likely the problem on the server?

Executable permissions have not been set correctly.

What is XML?

Extensible Markup Language enables communication among multiple different applications and devices. XML is online used for formatting. It has no predefined structure or tags. <stuff>Boise<stuff/> It looks like HTML, but it's basically just data for forms.

You want to create Web pages that can easily adapt to smartphones, tablets, gaming devices and smart TVs, as well as to traditional PCs. Which of the following would be best suited for this purpose?

HTML5 APIs provide an open environment for developing Web applications that does not rely on proprietary browser plug-ins. HTML5 APIs consist of HTML5, CSS and JavaScript. JavaScript is used to access the DOM.

You can use a CSS style sheet rule to override the default <body> font color, which is black. Which term is used to describe this style sheet behavior?

Inheritance. Inheritance is a CSS behavior in which the styles you define will flow, or cascade, throughout the document unless another style defined within the page specifically overrides it. Many styles can be used together to create a completely formatted document. For example, a style sheet rule will override the default <body> font color, which is black. All these characteristics, whether they are defined in a style sheet or exist by default, are inherited throughout the rest of the document.

Which of the following does the HTML <head> tag contain?

The < head> tag contains the < title> tag. The < head> tag also allows you to insert < meta> tags (which describe the nature of the document) and links to style sheets.

From which language did Tim Berners-Lee borrow to create HTML?

SGML

A user has just visited your Web site and updated her contact information. This information was stored in a database. Which language was most likely used to update the database?

SQL. Structured Query Language (SQL) is the language used to query and update databases. Other languages such as PHP and Perl can be used to create database-enabled Web pages. However, SQL is used to actually query and update relational databases. Open Database Connectivity (ODBC) is used to allow an operating system to register a database.

What is the best source from which you can obtain feedback about your Web site to evaluate the site's effectiveness and determine ways you can improve the site?

Sales representatives. Sales representatives often receive comments from their customers about desired changes. Addressing such reports of customer requests is essential to the site's success. Other good sources of feedback include direct contact with customers and feedback from upper management.

What is SEO?

Search Engine Optimization

A character set is the group of symbols used to render text on a page. In which of the following should you specify the character set for an HTML document?

The <meta> tag can specify various information about the document, known as metadata. This metadata can include a document description, revision dates, and keywords to help search engines index the page. It also specifies the HTML5 character set used, which is usually UTF-8.

Which of the following is a block-level element in HTML?

The <p> element is a block-level element in HTML. Block-level elements affect an entire paragraph or multiple paragraphs of text on a Web page. Elements that can affect something as small as a character or a word are referred to as text-level elements. The <em>, <strong> and <br> elements are considered text-level elements.

Which HTML element can be used to create a primitive table on a Web page using tabbed data?

The <pre> tag can be used to create a primitive table because it allows you to display preformatted text (such as tabbed data). The <p> tag defines the start of a new paragraph. The <blockquote> tag centers and indents a block of text. You should use the <table> tag to create a standard table.

What is the <tr> element?

The <tr> element creates a row within a table.

Describe the different list tags?

The <ul> element creates a bulleted, or unordered, list. The <ol> element can be used similarly to create a numbered, or ordered, list. The <li> tag creates a list item within the list. List items are not displayed in bold or italic type unless additional tags (such as <strong> and <em>) are added to this code.

Which of the following statements about HTML5 is true?

The DTD file is no longer required in HTML5.

Which attribute of the <form> element is used to specify the way that user-entered Web form data will be sent to the Web server?

The Method Attribute. The method attribute of the <form> element specifies the method that the browser will use to send Web form data to a Web server. The method attribute takes two values: "get" and "post." The action attribute specifies the name and location of the CGI script used to process the form.

What is the basic element of a raw text string sent from a Web form to a Web server's CGI script?

The basic element of a raw text string is a name=value pair. The name attribute of the <form> element organizes information input by the user into name=value pairs. The method and action attributes are associated with the <form> tag.

When you use the HTML5 Offline Web application API, you must create a list of the files needed for the Web application to work offline, such as the main .html file, the .css file, and any images or JavaScript files used. What is this list called?

The manifest is a list of the files that are needed for the Web application to work offline.

Table element attributes are not supported in HTML5; CSS must be used. Which is the only table element attribute you can still use for HTML5-compliant tables?

The only <table> element attribute still used is border, which simply states if the table has a border or not.

Consider the following line from an HTML document: Site Development Associate<br> This code shows an example of:

There are two types of tags: container and empty. Container tags come in pairs; empty tags stand alone and are not closed with the slash ( / ) character. Empty tags are those that do not directly format a specified block of text, and therefore one tag can execute the instruction. For example, if you want to create a line break, you insert the <br> tag at the point you want the break to occur.

For what should you use the <link> tag in the <head> section of your HTML document?

To reference a style sheet for the page

The HR Department has asked your Web team to create a Web page for the company's intranet site that will compare the company's three different employee insurance plan options. What is the mosteffective way to accomplish this?

Use document structure tags to lay out the page, and use atable to organize the insurance plan information.

You are embedding audio in your Web page and want to specify that the audio file should play over and over again without stopping. Which attribute is needed to accomplish this?

loop="loop" The loop and autoplay attributes are common to both the <video> element and the <audio> element. The loop="loop" attribute specifies that the audio or video file will play over and over again without stopping. The autoplay="autoplay" attribute specifies that the audio or video file will play immediately upon loading.

Which <form> element attribute and value specify that the browser will send data to the Web server location specified by a URL? A action="post" B method="get" C method="post" D action="get"

method="post" The method attribute of the <form> tag specifies the way in which form data submitted by the user will be sent to the Web server, and the "post" value specifies that data will be sent or posted to a specified URL. The "get" value would append form data to the URL. The action attribute specifies the name and location of the CGI script used to process the form.


संबंधित स्टडी सेट्स

Genetics (BIO 352) Final Exam URI

View Set

React Native top 80 interview questions

View Set

MGMT 309: Chapter 4 "Responding to the Ethical and Social Environment"

View Set

Chapter 23: Asepsis, & Infection Control

View Set