What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 59593 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > HTML, DHTML Interview Questions

Now you don't need go anywhere to get the best interview questions on Microsoft technology. We are trying to gather all real interview questions asked from MNCs and put them here. You can also assist us in doing so by submitting .net interview questions. These questions are generally different from certification questions however it may help you in that too.



Page copy protected against web site content infringement by Copyscape
URI - Uniform Resource Identifier
URL - Uniform Resource Locator
URN - Uniform Resource Name

<table>

<tr>
<td>
</td>
</tr>
</table>

NOTE: This is objective type question, Please click question title for correct answer.

Difference Between GET and POST methods

GET:
1) Data is appended to the URL.
2) Data is not secret.
3) It is a single call system
4) Maximum data that can be sent is 256.
5) Data transmission is faster
6) This is the default method for many browsers

POST:
1) Data is appended to the URL.
2) Data is Secret
3) It is a two call system.
4) There is no Limit on the amount of data.That is characters any amount of data can be sent.
5) Data transmission is comparatively slow.
6) No default and should be Explicitly specified.

alt stands for alternate this means that for some reason if image can't be loaded on the page, the alt value will be displayed.

<img src="myimage.jpg" alt="this is my photo" title="click to go to my page" />


In the above code snippet when myimage.jpg is available on the web server, the image will be displayed and mouse ever on the image will show "click to go to my page" but in case myimage.jpg is not available on the server or by some reason it could't be rendered on the page, alt value (this is my photo) will be displayed in place of image. This hints the user that the picture that couldn't be loaded was my photo.

We can use <script> tag to refer the .js file available on the server, we can not only refer only those file that are on our server but we cal also any .js file that is available on other server (on other domain.

<script src="/include/myjscode.js" type="text/javascript"></script> 


It is always suggested to place the script tag inside <head></head>

By placing the link tag inside the <head></head and specify rel value as "shortcut icon", you can display the page icon in the browser.

<link rel="shortcut icon" href="/images/myicon.gif" />


Here, you can either specify .gif, .jpg or .ico file, however many browser only support .ico file not .gif or .jpg file.

To refer .css file in the web page, use <link> tag. Generally it is suggested to keep this inside the <head></head> tag.

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


Notice that the type attribute value should be "text/css" and rel attribute value should be "stylesheet".

To write bulleted point, use <li> under <ul> like following.

    <ul> 

<li>Point 1</li>
<li>Point 2</li>
<li>Point 3</li>
</ul>

In this case Point 1, Point 2 and Point 3 will appear as bulleted point.

To display numbered list, use <li> under <ol> tag like below

 <ol>

<li>Point 1</li>
<li>Point 2</li>
</ol>

To create a dropdown list box in HTML, write following code

  <select name="drop1" id="drop1"> 

<option value="1">item 1</option>
<option value="2">item 2</option>
<option value="0">All</option>
</select>


This will create a dropdown with two list item "item 1" and "item 2".

To create a list box, write following code

<select name="drop1" id="Select1" size="4" multiple="multiple">

<option value="1">item 1</option>
<option value="2">item 2</option>
<option value="3">item 3</option>
<option value="4">item 4</option>
<option value="0">All</option>
</select>


This will create a listbox with 5 items. As multiple attribute value is specified as ="multiple" so it gives ability to select more than one item from the box by holding ctrl key or by dragging through items from the mouse.

No, <table> tag is made for rendering the data in tabular format not to design the layout of the webpage, however this is massively used for the designer because its easy to use.

To design the layout we should use <div> and/or <span> along with css classes.

To write bulleted list in the HTML, write following code:

<ul>

<li>fdasfadsf asdf</li>
<li>sfdafasdf</li>
<li>fdsafasfsa</li>
<li>fdsafsda</li>
</ul>


To write numbered list in the HTML, write following code:
<ol>

<li>fdasfadsf asdf</li>
<li>sfdafasdf</li>
<li>fdsafasfsa</li>
<li>fdsafsda</li>
</ol>


Notice the difference is only <ul> and <ol>. In the bulleted list, we need to use <ul> tag and in the numbered list we need to use <ol> tag.

Doctype defines as "document type declaration" (DTD).

All HTML pages should contain a <!DOCTYPE> declaration to define which HTML version we are using in our page. it gives important instruction to web browser about page's HTML version type. It also allows web validator to check the syntax of page.

Found this useful, bookmark this page link to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape
Navigate to Page: 1 | 2 | 3 | 4 |

 More Exclusive HTML, DHTML Interview Questions and Answers here


Found interesting? Add this to:


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 8:34:48 AM