Facebook share showing wrong description solution

When you share a  post or a page on Facebook, it would pull the first few lines of the post and use it as content description.

Where does Facebook get the description?

Facebook pulls the description from the following sources, in this order:

  1. First it looks for a description meta tag, and uses the content as description.
  2. If there is no description meta tag found, Facebook looks for the first <code>&lt;p&gt;</code> (paragraph) tag that contains at least 120 characters.
  3. If none of the above is available, it leaves the description spot blank.

According to Facebook, it scrapes your page every 24 hours to ensure the description (and other share data) are up to date. However, you can manually refresh it by entering the post URL into the Facebook URL Linter

Step by step WordPress learning (Part 2)

Step by step WordPress learning

Basic  Idea about wordpress.

WordPress installation (wp-config.php, Network)

WordPress directory structure

Basic idea about Permalinks, Pages, Post, Blog link, comments, User, User role, Theme, Plugins, widget

Theme development

Plugins Development

Widget development

3.  WordPress Directory Structure.

wp-admin

wp-content

blogs.dir

plugins

plugins1

plugins1

themes

theme1

theme2

uploads

wp-includes

index.php

wp-config.php

4. Basic idea about WordPress Permalinks, Pages, Post, link, comments, User, User role, Theme, Plugins, Widget

Permalinks: Permalinks are the permanent URLs to your individual weblog posts, as well as categories and other lists of weblog postings. A permalink is what another weblogger will use to link to your article (or section), or how you might send a link to your story in an e-mail message. The URL to each post should be permanent, and never change — hence permalink.

Permalink Types :

mod_rewrite: “Pretty Permalinks”

Example:

http://example.com/2012/post-name/

or

http://example.com/2012/12/30/post-name

PATHINFO: “Almost Pretty”

Example:

http://example.com/index.php/yyyy/mm/dd/post-name/

Structure Tags:

You can use these tags to customize your “Pretty” or “Almost Pretty” permalinks. A few hints:

•    Make sure to end your structure with either %post_id% or %postname% (e.g. /%year%/%monthnum%/%day%/%postname%/) so that each permalink points to an individual post.

%year%

The year of the post, four digits, for example 2004

%monthnum%

Month of the year, for example 05

%day%

Day of the month, for example 28

%hour%

Hour of the day, for example 15

%minute%

Minute of the hour, for example 43

%second%

Second of the minute, for example 33

%post_id%

The unique ID # of the post, for example 423

%postname%

A sanitized version of the title of the post (post slug field on Edit Post/Page panel). So “This Is A Great Post!” becomes this-is-a-great-post in the URI.

%category%

A sanitized version of the category name (category slug field on New/Edit Category panel). Nested sub-categories appear as nested directories in the URI.

%author%

A sanitized version of the author name.

Page and Post: In WordPress, you can write either posts or pages. When you’re writing a regular blog entry, you write a post. Posts automatically appear in reverse chronological order on your blog’s home page. Pages, on the other hand, are for content such as “About Me,” “Contact Me,” etc. Pages live outside of the normal blog chronology, and are often used to present information about yourself or your site that is somehow timeless — information that is always applicable. You can use Pages to organize and manage any amount of content.

Other examples of common pages include Copyright, Legal Information, Reprint Permissions, Company Information, and Accessibility Statement.

What Pages are Not:

•    Pages are not Posts, nor are they excerpted from larger works of fiction. They do not cycle through your blog’s main page. (Note: You can include Posts in Pages by using the Inline Posts Plugin.

•    Pages cannot be associated with Categories and cannot be assigned Tags. The organizational structure for Pages comes only from their hierarchical interrelationships, and not from Tags or Categories.

•    Pages are not files. They are stored in your database just like Posts are.

•    Pages are “technically” not blogs. Pages are not readily included in your site’s RSS feed. Sophisticated users can adjust any such differences. For most users however, Pages and Posts might attract attention in different ways from humans or search engines. Perhaps the greatest difference between Post and Page, in terms of attracting or impressing an audience, lies in whether your Front page is designated for “your latest posts” or “a static page.” Under Dashboard: Settings: Reading: WordPress allows you to experiment between these configurations. This includes the option of having a static Front page, meanwhile still having a blank static inner page for showing “your latest posts.”

Links:  WordPress allows you to store a set of external links, also known as your blogroll. These links can be put into categories, imported, exported, added, deleted, and edited. The link categories can also be added, deleted, and edited.

Comment: Comments are user feedback. Comment moderation is a feature in WordPress that allows you to prevent comments from appearing on your site without your express approval. Moderation can be very useful in addressing Comment Spam, but it has more general applications as well.

WordPress runs a number of tests on each new comment before posting it to your blog. If a comment fails one of these tests, it is not displayed immediately on the site but is placed in a queue for moderation, the process of manual approval or deletion by the blog’s administrator.

Role: WordPress uses a concept of Roles, designed to give the blog owner the ability to control and assign what users can and cannot do in the blog. A blog owner can manage and allow access to such functions as writing and editing posts, creating Pages, defining links, creating categories, moderating comments, managing plugins, managing themes, and managing other users. The tool that gives the blog owner this control is the ability to assign a Role to a user.

WordPress has five pre-defined Roles: Administrator, Editor, Author, Contributor and Subscriber. Each Role is allowed to perform a set of tasks called Capabilities. There are many Capabilities including publish_posts, moderate_comments, and edit_users. The default Capabilities are pre-assigned to each Role.

Super Admin : Someone with access to the blog network administration features controlling the entire network (See Create a Network).

Administrator : Somebody who has access to all the administration features

Editor : Somebody who can publish and manage posts and pages as well as manage other users’ posts, etc.

Author : Somebody who can publish and manage their own posts.

Contributor : Somebody who can write and manage their posts but not publish them.

Subscriber : Somebody who can only manage their profile.

Theme: Fundamentally, the WordPress Theme system is a way to “skin” your weblog. Yet, it is more than just a “skin.” Skinning your site implies that only the design is changed. WordPress Themes can provide much more control over the look and presentation of the material on your website.

A WordPress Theme is a collection of files that work together to produce a graphical interface with an underlying unifying design for a weblog. These files are called template files. A Theme modifies the way the site is displayed, without modifying the underlying software. Themes may include customized template files, image files (*.jpg, *.gif), style sheets (*.css), custom Pages, as well as any necessary code files (*.php).

Plugins and Widget: WordPress plugins are pieces of code created with the purpose of expanding the functionalities of a software, in this case of WordPress. There are literally thousands of WordPress plugins already created, solving a wide range of problems and needs. WordPress Widgets are WordPress Plugins that add visitor visual and interactivity options and features, such as sidebar widgets for post categories, tag clouds, navigation, search, etc. They were originally designed to provide a simple and easy-to-use way of giving design and structure control of the WordPress Theme to the user in the sidebar, which is now available on properly “widgetized” WordPress Themes to include the header, footer, and elsewhere in the WordPress design and structure.

5.    Theme development

Anatomy of a Theme: WordPress Themes live in subdirectories residing in wp-content/themes/. The Theme’s subdirectory holds all of the Theme’s stylesheet files, template files, and optional functions file (functions.php), JavaScript files, and images. For example, a Theme named “test” would reside in the directory wp-content/themes/test/. Avoid using numbers for the theme name, as this prevents it from being displayed in the available themes list.

Anatomy of a WordPress theme

The cheatsheet for how your blog works

WordPress themes are made up of a folder of template files, each of which controls a specific piece of your theme. Parts of your site that remain static no matter what page you’re on are controlled by header, sidebar and footer files. You can hack these files so they detect what page you are on and serve different content accordingly, such as display different navigation on posts than on pages; however it is most common for these sections to look the same throughout the site.

header.php

Global file that displays headers and navigation. Also contains HTML code.

The Loop

The display of contents of the main area of your site are controlled by individual WordPress theme template files using what’s called “the loop”.

sidebar.php

Sidebar display is controlled in this file. Multiple sidebars can be set up in functions.php, and contents of sidebar widgets are set up from the WordPress wp-admin panel.

footer.php

Contains instructions for global footer and closes HTML tags.

index.php – home

The index file controls what the homepage of your WordPress theme looks like. By default it is a loop that queries and then displays the most recent blog posts, with a link in the bottom to view previous posts.

Alternately, you can specify in wp-admin -> settings -> reading to have the home page be a page you created yourself in WordPress. In that case, you specify a different page/URL for the regular blog posts to appear on, and that page is generated by index.php.

single.php – individual posts

The display of individual posts in your WordPress theme is controlled by a little file called single.php. It contains a loop that queries just one post and displays it.

You can specify if you want sidebars (and which you want), if you want it to look different than the other pages on the site.

page.php – individual pages

Page.php controls what pages look like. You can choose to eliminate sidebars or other elements, add other unique elements for pages alone.

WordPress also allows you to create different page templates within your WordPress theme for different types of pages. To create a page template, simply copy page.php, rename it to whatever you want, then add this code to the top:

/*

Template Name: YourPageNameHere

*/

?>

archive.php, category.php, tag.php – archives

You can control the look and feel of different archives using template files also. If there is no archive file, the archives will look like index.php; however you can create an archive.php to override that. If you create a file called category.php, it will override archive.php for categories only. If you create a tag.php, you can override it for tag archives only.

The Loop

The loop is perhaps the most powerful part of your WordPress theme. It starts with a query (which determines which posts or pages to grab), and ends with a PHP “endwhile” statement. Everything in between is up to you. You can specify the output of titles, post content, metadata, custom fields and commenting all within the loop and each element is output for each post or page until the query is done. You can set up multiple loops and queries on a single page; for example: on a single.php you could have the loop showing the entire content of a single post, with a loop outputting just titles and thumbnails for related posts below it.

Query post or page

Start Loop

the_title (outputs the title of the post)

the_excerpt (outputs the post excerpt)

the_content (outputs the full post content)

the_category (outputs the post categories)

the_author (outputs the post author)

the_date (outputs the post date)

other tags (there is a variety of other tags you can use in the loop)

endwhile;

Exit the loop

Background files of a WordPress theme

In order for a WordPress theme to work, it needs a few essential background files. These files can be modified to your needs and can quite powerfully affect the custom look and functionality of your site.

comments.php

This controls the output of comments, which can be included in the loop if you desire comments on your theme. Comments.php can be overriden by plugins such as Disqus, which then take over comment functionality on your blog.

functions.php

Functions.php allows you to put your own custom PHP code in order to modify core elements of your theme. It is often used to specify multiple sidebars, change the number of characters in the excerpt or add custom admin panel options for wp-admin.

style.css

This is the main CSS stylesheet for your theme. It also contains text at the top which tells WordPress what the name of your WordPress theme is, who the author is and what the URL of your site is.

Step by step WordPress learning (Part 1)

Step by step WordPress learning (Part 1)

Step by step WordPress learning

  1. Basic  Idea about wordpress.
  2. WordPress installation (wp-config.php, Network)
  3. WordPress directory structure
  4. Basic idea about Permalinks, Pages, Post, Blog link, comments, User, User role, Theme, Plugins, widget
  5. Theme development
  6. Plugins Development
  7. Widget development


1.  Basic  Idea about wordpress.

What is wordpress?

WordPress is publishing software with a focus on ease of use, speed and a great user experience. WordPress is blessed with an active community, which is the heart of open source software. WordPress proud to offer you a freely distributed, standards-compliant, fast, light and free content management system, with sensible default settings and features, and an extremely customizable core.

 

2.  WordPress installation.

Things You Need to Do to Install WordPress

 

Detailed Instructions:
Step 1: Download and Extract

Download and unzip the WordPress package from http://wordpress.org/download/.

  • If you will be uploading WordPress to a remote web server, download the WordPress package to your computer with a web browser and unzip the package.
  • If you will be using FTP, skip to the next step – uploading files is covered later.
  • If you have shell access to your web server, and are comfortable using console-based tools, you may wish to download WordPress directly to your web server using wget (or lynx or another console-based web browser) if you want to avoid FTPing:
    • wget http://wordpress.org/latest.tar.gz
    • Then unzip the package using:
      tar -xzvf latest.tar.gzThe WordPress package will extract into a folder called wordpress in the same directory that you downloaded latest.tar.gz.
  • If you do not have shell access to your web server, or you are not comfortable using console-based tools, you may wish to deploy WordPress directly to your web server using ZipDeploy.

 

Step 2: Create the Database and a User

If you are using a hosting provider, you may already have a WordPress database set up for you, or there may be an automated setup solution to do so. Check your hosting provider’s support pages or your control panel for clues about whether or not you’ll need to create one manually.

Step 3: Set up wp-config.php

You can either create and edit the wp-config.php file yourself, or you can skip this step and let WordPress try to do this itself when you run the installation script (step 5) (you’ll still need to tell WordPress your database information).

Step 4: Upload the files

Now you will need to decide where on your domain you’d like your WordPress-powered site to appear:

  • In the root directory of your web site. (For example, http://example.com/)
  • In a subdirectory of your web site. (For example, http://example.com/blog/)

Step 5: Run the Install Script

Point a web browser to start the installation script.

  • If you placed the WordPress files in the root directory, you should visit: http://example.com/wp-admin/install.php
  • If you placed the WordPress files in a subdirectory called blog, for example, you should visit: http://example.com/blog/wp-admin/install.php

 

Multiple Blogs (Allow Multisite )

Please note in WordPress 3.0 there is now a native ability to create multiple blogs, referred to as a network of sites. This is because the codebase for WordPressMU was merged into core.

To enable the Network Setup menu item, you must first define multisite in the wp-config.php file.

Open up wp-config.php and add this line above where it says /* That’s all, stop editing! Happy blogging. */. If it doesn’t say that anywhere, then add the line somewhere above the first line that begins with require or include:

define(‘WP_ALLOW_MULTISITE’, true);

You will need to refresh your browser to continue.

Step by step WordPress learning (Part 2) 

 

 

oDesk New Readiness test Answer 2012


Question: Which of the following is FALSE about weekly limits on hourly contracts?

a.Hours in excess of the weekly limit will not be billed to the employer
b.You should discuss any need to work beyond your limit with your employer
c. The weekly limit can be changed by the contractor
d.The weekly limit can be changed by the employer
e. Hours in excess of the weekly limit are not guaranteed payment


Question: Which of the following are TRUE about the oDesk dispute process?

a.The dispute process only applies to Hourly contracts
b. If you fail to respond, oDesk will refund the employer and suspend your account
c. If you reject the dispute, oDesk specialists will review your Work Diary and
evaluate it against the criteria of the payment guarantee
d. Disputed hours ruled in the employers favor are refunded
e. All of the above

[ad#ad-2]


Question: Which of the following are TRUE about your oDesk Work Diary?

a. Allows employers to see when and what their contractors are working on
b. Enables automatic billing for hourly contracts
c.The oDesk Team application auto-tracks time which can be reviewed in the Work Diary
d. Manual time can be added, but isn’t guaranteed payment
e. All of the above


Question: What happens when a contract ends?

a. You lose access to the Work Diary
b. Both users can leave feedback
c. The feedback system is double blind, so your employer cannot see the feedback you
left them until after they have left feedback for you
d. Hours will be billed (and disputes may be filed) according to the usual weekly payment schedule
e. All of the above>


Question: Can I start my own agency on oDesk?

a. Yes! You can create an agency and earn money by selling the services of your agency contractors
b. No, oDesk is for independent contractors only


Question: Which of the following are required to qualify for guaranteed payment?

a. An hourly contract
b. Tracking your time with the oDesk Team application
c. Entering relevant memos
d. An employer with a verified payment method
e. All of the above


Question: Which of the following actions are NOT allowed when applying to job postings?

a. Misrepresenting your skills, experiences, portfolio, etc.
b. Submitting boilerplate, placeholder or generic bids or other spam
c. Disclosing direct contact information
d. Applying when you are not truly qualified
e. All of the above


Question: Which of the following are NOT permitted on oDesk?

a. Sharing a single account between multiple people
b. Opening more than one account on oDesk
c. Using a logo or clip art as your profile portrait
d. Using a fake name
e. All of the above


Question: Which of the following is TRUE about fixed-price contracts?

a. Employer billed automatically each week
b. How much to pay and when to pay is at the employer’s discretion)
c. Hours worked will show on your profile
d. Time-tracking required
e. Qualify for the oDesk payment guarantee


Question: Which of the following statements about oDesk fees is FALSE?

a. The oDesk fee is 10% of the employer’s payment to oDesk
b. oDesk is free to join
c. oDesk is free for contractors to apply and work on jobs
d. The oDesk fee is $2/hour for hourly contracts
e. All of the above


Question: The oDesk Team application Time Tracker records which of the following

a. Screenshot of the active screen once per billing segment
b. Number of keystrokes
c. Number of mouse clicks
d. Memo entered by the contractor
e. All of the above

Odesk HTML 4.01 Test Answers

Syllabus of the Test:

Advanced Tags
Fundamentals
Tags
Tables
Links and Images
Forms and Frames
[ad#ad-2]

Question no. 1
Which of the following statements is correct for a block quote?
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.
b. It defines the start of a long quote.

Question no. 2
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.

b. XHTML is almost identical to HTML 4.01.

Question no. 3
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.
b. HTML is case sensitive.

Question no. 4
Which of the following tags can be used in place of a button tag?
a. legend
b. ol
c. input
d. dl
c. input

Question no. 5
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
e. All are valid

Question no. 6
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
c. default

Question no. 7
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
a. text , c. reset , d. password

Question no. 8
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
d. None of the above

Question no. 9
Which of the following values is/are valid for the align attribute of a tag?
a.left
b.right
c.center
d. offset
a. left, b. right, c. center

Question no. 10
What do you infer from the following code? <a href = “http://www.expertrating.com”> Expert Rating
a.This href is using absolute path for linking.
b. This href is an example of relative path linking.
a. This href is using absolute path for linking.

Question no. 11
Which of the following statements is correct for the 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.()

Question no. 12
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.
b, C

Question no. 13
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
d. pre

Question no. 14
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
a. External style sheet

Question no. 15
Which of the following attributes is/are related to the <img> tag?
a. height
b. alt
c. src
d. All of the above
d. All of the above

Question no. 16
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.
b. It will open the site msdn.com in a new window.

Question no. 17
Is the following code valid in HTML 4.01 Strict?
<ul><li><ol><li>A</li><li>B</li><ul><li>Item1</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 a <ul> tag should not conflict with an <ol> tag at the same list level.
a. Perfectly valid.

Question no. 18
Which of the following values for the scrolling attribute for the frame tag is not valid?
a.yes
b.default
c.auto
d. no
()

Question no. 19
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.
d. It is mandatory to specify its name or scheme attributes.

Question no. 20
The tag that is used to pass the parameters to an applet is:
a. appletpar
b. applet
c. param
d. val
Param

Question no. 21
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
d. All of the above

Question no. 22
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
b. 90

Question no. 23
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. optgroup

Question no. 24
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>
c. <html><head></head><body></body></html>

Question no. 25
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″/>
d. <input type=”text” maxlength=”100″/>

Question no. 26
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″
(b)

Question no. 27
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.
c. It specifies the space between two cells

Question no. 28
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
b. colgroup

Question no. 29
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
b. p

Question no. 30
How will you specify a comment in an HTML document?
a. <!!- Here is a comment… -!>
b. <-Here is a comment.. ->
c. <!– Here is a comment.. –>
d. <! Here is a comment… -!>
c. <!– Here is a comment.. –>

Question no. 31
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.
Question no. 32
What is meant by cell padding?
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.
Question no. 33
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.

Question no. 34
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″ />
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”>
<img area shape =”rect” coords =”0,0,82,126″ href=”state1.htm”
alt=”State1″ /> </map>
d. <map id =”statemap” name=”statemap”>
<img area shape =”rect” coords =”0,0,82,126″ href=”state1.htm”
alt=”State1″ /> </map>
()

Question no. 35
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 colspan=3>Contact</th></tr>
b. <tr><th>Customer Name</th><th cellpadding=3>Contact</th></tr>
c. <tr><th>Customer Name</th><th rowspan=3>Contact</th></tr>
d. <tr><th>Customer Name</th><th cellspacing=3>Contact</th></tr>

Question no. 36
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.
a. The top margin and left margin of the webpage is 2 pixels.

Question no. 37
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.
c. Both links will open in a new window.

Question no. 38
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>
b. <a href=”#target4″>Check Old Listing as well</a>

Question no. 39
Which attribute specifies the submit URL in a form tag?
a. method
b. action
c. name
d. id
b. action

Question no. 40
The tag which is used to show monospaced text is:
a. <td>
b. <th>
c. <tt>
d. <b>

b. <th>