Sie sind auf Seite 1von 10

Solve Web Paper

2016

Q. What is HTML?
Ans : Hypertext Markup Language (HTML) is the standard markup language for
creating web pages and web applications. With Cascading Style Sheets (CSS)
and JavaScript.

Q 2. Define markup language?


Markup Language. A markup language is a computer language that uses tags to
define elements within a document. It is human-readable, meaning markup files
contain standard words, rather than typical programming syntax. While several
markup languages exist, the two most popular are HTML and XML.

Q 3. Differentiate between XHTML and HTML?


The Extensible Hypertext Markup Language, or XHTML, is a markup language that
has the same depth of expression as HTML, but also conforms to XML syntax.
XHTML is "the modern version of HTML 4". The difference is that XHTML is
based on XML while HTML is based on SGML.

Q 5. Which types of lists can be created in HTML?


There are three list types in HTML:

Unordered list — used to group a set of related items in no particular order.

Ordered list — used to group a set of related items in a specific order.

Description list — used to display name/value pairs such as terms and


definitions.

Q 6. What is the use of UL tag?


The <ul> tag defines an unordered (bulleted) list. Use the <ul> tag together with
the <li> tag to create unordered lists.

Q 7. List different types of hyperlinks?


There are four types of hyperlinks.

• Text hyperlink – Uses a word or phrase to take visitors to another page, file or document.
• Image hyperlink – Uses an image to take visitors to another page, file or document.

• Bookmark hyperlink – Uses text or an image to take visitors to another part of a web
page.

• E-mail hyperlink – Allows visitors to send an e-mail message to the displayed e-mail
address.
Q 8. What are the most common uses of tables and why?
A table is an arrangement of data in rows and columns, or possibly in a more
complex structure. Tables are widely used in communication, research, and data
analysis. Tables appear in print media, handwritten notes, computer software,
architectural ornamentation, traffic signs, and many other places

Q 9. What are some benefits of using frames?


The advantages of HTML frames include: The main advantage of frames is that
it allows the user to view multiple documents within a single Web page. It is
possible to load pages from different servers in a single frameset. The concern that
older browsers do not support frames can be addressed using the <noframe> tag.

Q.10What are forms?


A form is used to record information, such as the evaluation of an employee's
performance during the review cycle. Forms are generated from form templates.

Q 11. Define table, TR, TD AND TH tag?


Each table row is defined with the <tr> tag. A table header is defined with the
<th> tag. By default, table headings are bold and centered.
A table data/cell is defined with the <td> tag.\

12. Define <A> tag and HREF?


The <a> tag defines a hyperlink, which is used to link from one page to another.
The most important attribute of the <a> element is the href attribute, which
indicates the link's destination. By default, links will appear as follows in all
browsers: An unvisited link is underlined and blue

14. What is the difference between absolute path and


relative path?

Absolute and relative paths. An absolute or full path points to the same location
in a file system, regardless of the current working directory. To do that, it must
include the root directory. By contrast, a relative path starts from some given
working directory, avoiding the need to provide the full absolute path.

Q 15. Are target names case sensitive?


"Each database name specified by the target is a string of characters, and the
string is case-insensitive. That is, for any character that is a letter, the origin may
use either upper or lower case, regardless of how the target has specified
thename." Result set names are deemed to be case sensitive.

Q 16.What is definition list?


A description list, with terms and descriptions: <dl> <dt>Coffee</dt> <dd>Black hot
drink</dd> <dt>Milk</dt> <dd>White cold drink</dd> </dl>
Q 17. What is style sheet?
Cascading Style Sheets (CSS) is a style sheet language used for describing the
presentation of a document written in a markup language like HTML. CSS is a
cornerstone technology of the World Wide Web, alongside HTML and JavaScript

Q 18. What is meant by scripting language?


A high-level programming language that is interpreted by another program at
runtime rather than compiled by the computer's processor as other programming
languages (such as C and C++) are. ... JavaScript, ASP, JSP, PHP, Perl, Tcl and
Python are examples of scripting languages

19. What are different parts of CSS?


 In a separate file (external)
 At the top of a web page document (internal)
 Right next to the text it decorates (inline)

Q 20. What is external style sheet?


External CSS The external style sheet is generally used when you want to
make changes on ... For example: It should be margin-left:20px not margin-
left:20 px

Q 21. What is inline style?


The "Inline CSS" filter reduces the number of requests made by a web page by
inserting the contents of small external CSS resources directly into the HTML
document. This can reduce the time it takes to display content to the user,
especially in older browsers.

22. How font size is specified for text in CSS?


An em is equal to the current font-size, for instance, if the font-size of the
document is 12pt, 1em is equal to 12pt

23. What is meant by document object model?


The Document Object Model (DOM) is a programming API for HTML and
XML documents. It defines the logical structure of documents and the way
a document is accessed and manipulated. ... The Document Object Model can
be used with any programming language.

24. Define script


Collectively, these three special values are called implicit values, in contrast to all
other Script property values, which each refer to one specific script .

25. List some advantages of JavaScript


 Server Load. Being client-side reduces the demand on the website server.
 Rich interfaces. Drag and drop components or slider may give a rich
interface to your website
 Simplicity. JavaScript is relatively simple to learn and implement
 Speed. Client-side JavaScript is very fast because it can be run immediately
within the client-side browser
 Popularity. JavaScript is used everywhere in the web. The resources to learn
JavaScript are numerous.

26. What is a variable?


The independent variables, also known in a statistical context as regressors,
represent inputs or causes, that is, potential reasons for variation. In an experiment,
any variable that the experimenter manipulates can be called an independent
variable

27. What is an expression?


An expression is a particular concept in computer science in which a number of
variables or constants, and operators and functions, are put together in a single
statement that is acted on by a particular programming language
If Else, else is a expression.

28. What is an assignment operator?


In computer programming, an assignment statement sets and/or re-sets
the value stored in the storage location(s) denoted by a variable name; in other
words, it copies a value into the variable. In most imperative programming
languages, the assignment statement (or expression) is a fundamental construct.

29. What is nested-if statement?


The block of code following the else statement is executed as the condition
present in the if statement is false. nested-if. A nested if is an if statement that is
the target of another if statement. Nested if statements means an if
statement inside another if statement.

30. What is switch statement?


In this case, August is printed to standard output. The body of a switch
statementis known as a switch block. A statement in the switch block can be
labeled with one or more case or default labels. The switch statement evaluates
its expression, then executes all statements that follow the matching case label.

31. What is string data?


In programming, a string is a contiguous (see contiguity) sequence of symbols or
values, such as a character string (a sequence of characters) or a binary
digit string (a sequence of binary values).
Q 32. Why JavaScript is used for validation because it is a
client-side language?
A scripting or script language is a programming language that supports
scripts: programs written for a special run-time environment that automate
the execution of tasks that could alternatively be executed one-by-one by a
human operator. Scripting languages are often interpreted (rather than
compiled).

Q 33. List different types of loops in JavaScript?


 for - loops through a block of code a number of times.
 for/in - loops through the properties of an object.
 while - loops through a block of code while a specified condition is true.
 do/while - also loops through a block of code while a specified condition is true.

Q 34. What is function? List its type.


A JavaScript function is a block of code designed to perform a particular
task.

A JavaScript function is executed when "something" invokes it (calls it).

Injective function Surjective function:

Bijective function Identity function:

Constant function: Empty function:

Injective function Surjective function:

Q 35. What is an event?


HTML events are "things" that happen to HTML elements.

When JavaScript is used in HTML pages, JavaScript can "react" on


these events.

Q 36. What are two main sections of an HTML page?


The two main parts of an HTML document are the head and the body. Each
section contains specific information. The head section contains information that is
useful to the Web browser and search engines but is not visible to the reader.
The bodysection contains the information that you want the visitor to see.
Q 37. What are the difference between <BR> tag and <P>
Tag?
While the <br> is an empty tag that inserts/forces a single line break and it has no
end tag [</br>]. The <p> tag denotes a paragraph and ends with a </p>. You
would normally put some text etc between these "p" tags. The <br> is a line break.

Q2 LONG QUESTIONS

Q1: Write html code to display three hyperlinks in different webpages. The
webpage should open in new window when user click on the hyperlink?

<!doctype html>
<html>

<head>
<title>universe</title>
<style>

</style>
</head>

<body>

<a href="https://google.com" target="_new">google</a>


<a href="https://fb.com"target="_new">fb</a>
<a href="https://w3school.com "target="_new" >w3school </a>
</body>
</html>

Q2: Write css code that define five classes of paragraph with different background
color, padding and border style?

Q1. ANS

<!doctype html>
<html>

<head>
<title>universe</title>
<style>
body {
padding: 0px;
margin: 0px;
}

.wrapper {
padding: 0px;
margin: 0px auto;
font-family: arial,sans-serif;
width: 100%;
background: rgb(239,239,239);
}

.header-container {
height: 250px;
border-top: 3px rgb(254,205,11) solid;
background: rgb(0,58,106);
}

.header {
color: rgb(138,181,214);
width: 80%;
margin: 0 auto;
}

.contactinfo {
float: left;
width: 33%;
padding: 70px 0px 0px 0px;
}

.logocontainer {
float: left;
width: 33%;
text-align: center;
}

.quicklinks {
float: left;
width: 33%;
padding: 70px 0px 0px 0px;
text-align: right;
}

.clear {
clear: both;
}

</style>
</head>

<body>
<div class="wrapper">
<div class="header-container">
<div class="header">
<div class="contactinfo">
<img src="images/phone.png" /> +01 2334 853<br />
<img src="images/email.png" /> email@universe.com
</div>
<div class="logocontainer">
<img src="images/logo.png" />
</div>
<div class="quicklinks">
<a href=""></a> | <a href=""></a> | <a href=""</a>

</div>

<div class="clear"></div>

</div>

</div>

</div>
</body>

</html>

Q3: Define list? Describe types of list?


There are three list types in HTML:
Unordered list — used to group a set of related items in no particular order.
Ordered list — used to group a set of related items in a specific order.
Description list — used to display name/value pairs such as terms and definitions.

Unordered HTML List

An unordered list starts with the <ul> tag. Each list item starts with
the <li> tag.

The list items will be marked with bullets (small black circles) by default:

Example
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
Ordered HTML List

An ordered list starts with the <ol> tag. Each list item starts with
the <li> tag.

The list items will be marked with numbers by default:

Example
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>

HTML Description Lists

HTML also supports description lists.

A description list is a list of terms, with a description of each term.

The <dl> tag defines the description list, the <dt> tag defines the term
(name), and the <dd> tag describes each term:

Example
<dl>
<dt>Coffee</dt>
<dd>- black hot drink</dd>
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>

Nested HTML Lists

List can be nested (lists inside lists):

Example
<ul>
<li>Coffee</li>
<li>Tea
<ul>
<li>Black tea</li>
<li>Green tea</li>
</ul>
</li>
<li>Milk</li>
</ul>

Das könnte Ihnen auch gefallen