|
HTML - August 12, 2008 at 18:00 PM by Amit Satpute
Define URL.
Answer
Uniform Resource Locator; an address that specifies the location of a
file on the Internet
Explain the general layout HTML documents.
Answer
Following is how the basic HTML layout:
<html>
<head>
<title>Title of page</title>
</head>
<body>
This is my first homepage. <b>This text is bold</b>
</body>
</html>
What are various list tags in HTML?
Answer
<li>
Defines a list item
<ol>
Defines an ordered list
<select>
Defines a selectable list
<ul>
Defines an unordered list
What are the various text formatting tag in
HTML?
Answer
<b>
Defines bold text
<br>
Inserts a single line break
<center>
Deprecated. Defines centered text
<em>
Defines emphasized text
<hr>
Defines a horizontal rule
<i>
Defines italic text
<p>
Defines a paragraph
<u>
Deprecated. Defines underlined text
Explain anchor tag in HTML.
Answer
The <a> tag defines an anchor. It can be used to create a link to another
document by using the href attribute or to create a bookmark inside a document,
by using the name or id attribute.
What is image mapping in HTML?
Answer
Making one image link to several pages is called as image mapping.
For example, if you have a map of India , then clicking on a state can take to
to another page and likewise for other states.
Explain meta tag in HTML.
Answer
The isNaN function determines if the value is a number or not and
depending upon the result, it returns true or false.
How to read and write a file using javascript?
Answer
There are two ways to do it:
1. Using JavaScript extensions (runs from JavaScript Editor), or
2. Using a web page and ActiveX objects (Internet Explorer only)
In JavaScript Extensions, you can use
fh = fopen(getScriptPath(), 0); to open a file
Using ActiveX objects, following should be included in your code to read a file:
var fso = new ActiveXObject("Scripting.FileSystemObject");
var s = fso.OpenTextFile("C:\\example.txt", 1, true);
How do you create a new object in JavaScript?
Answer
The <meta> element provides meta-information about your page, such as
descriptions and keywords for search engines and refresh rates.
|