Que 1. What Exactly Is HTML?
Ans: The
name HTML stands for Hypertext Markup Language. That’s a
mouthful. Many people who create Web pages and work in HTML often forget what
the letters stand for. The term’s hypertext portion refers to the cross-links,
also called hyperlinks, between Web pages. The term’s markup language portion
refers to the commands that format the Web pages that the users see. Knowing
how to write and use HTML is the goal, not remembering the archaic
abbreviation. Note: The term HTML language is as redundant as ATM
machine and PIN number. Literally, HTML language means Hypertext
Markup Language. Redundant or not, HTML language is often the phrase
used, even by experienced HTML programmers. The Internet is more than just
a bunch of Web pages. The Internet consists of Web pages, e-mail, text, voice,
video chat sessions, and an assortment of other tasks that often hide behind
the scenes from typical Internet users. Amidst the array of Internet
components, a Web page comprises the most important piece of the Internet
because a Web page is the user interface to the information that resides on the
Internet. Close to one billion Web pages comprise the World Wide Web (WWW).
Virtually every Web page that you’ve ever visited has two things in common:
v They contain formatted text and graphic images.
v They are created,
in whole or in part, using the HTML language.
It may surprise you to learn that HTML is a
language that has absolutely no formatted text or graphic images. The HTML
language consists solely of unformatted text. That text, however, contains
instructions, called tags or command tags that define exactly how
formatted text and graphics appear on Internet Web pages. In other words, HTML
determines how a Web page browser displays the information your HTML-based Web
pages produce.
Que 2: How to use comment in html document?
Ans: HTML Comments-> Comments can be inserted into the HTML code
to make it more readable and understandable. Comments are ignored by the
browser and are not displayed.
Comments are written like this:
Example <! -- This is a comment -->
Que 3: Explain Java Script?
Ans: HTML pages which we have discussed so far are
considered as static HTML pages, these pages layout remains same. But, if you
want to create the dynamic page, with the programming support then you have to
make use of the scripting languages. Scripting languages are not the complete
programming languages then work within the HTML code. The Scripting Language in
the market is VBScript, JavaScript etc... The Scripting code is written
in the <script> tag, and the general form is,
<script language="JavaScript/VBScript">
Body of the code
</script>
Q4: Explain Event Handling in Java Script?
Ans: Events as we know are the actions
performed by the computer system or the user. In case of the event handling, we have,
(a) Type of event which is to be raised.
(b) Code which is to be executed when the
event is raised.
1. Type of Events: There are various events which we can handle.
(i)
OnLoad
( ): This will occur when we load the body or other tag.
(ii)
OnClick
( ): This will occur when we click on the item.
(iii)
OnDblClick
( ): This will occur when we double click the item.
(iv)
OnFocus
( ): This will occur when the control receive the focus.
(v)
OnBlur
( ): This will occur when the control will lose the focus.
(vi)
OnMouseOver
( ): This will occur when we place the mouse over an object.
(vii)
OnMouseOut
( ): This will occur when we move the mouse out of an object. Etc....
2. Code which is to be executed when the
event is raised. Here, we
have to write a function which is to be executed when a particular event is
raised.
Que 5: Define Number Object.
Ans: The Number object is an object wrapper for primitive
numeric values. Number objects are created with new Number ().
Syntax Var num = newNumber(value);
|