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. |