Professional Documents
Culture Documents
HTML tags are composed of three things: an opening tag, content and
ending tag. Some tags are unclosed tags.
o content, and
o tags
Syntax
3) Which HTML tag is used to display the data in the tabular form?
The HTML table tag is used to display data in tabular form (row *
column). It also manages the layout of the page, e.g., header section,
navigation bar, body content, footer section. Here is the list of tags
used while displaying the data in the tabular form:
Tag Description
1. <!DOCTYPE html>
2. <html>
3. <body>
4. <h2>HTML Iframes example</h2>
5. <p>Use the height and width attributes to specify the size of the ifram
e:</p>
6. <iframe src="https://www.javatpoint.com/" height="300" widt
h="400"></iframe>
7. </body>
8. </html>
No, you can use hyperlinks on text and images both. The HTML
anchor tag defines a hyperlink that links one page to another page.
The "href" attribute is the most important attribute of the HTML
anchor tag.
Syntax
Yes. To create a multicolor text on a web page you can use <font
color ="color"> </font> for the specific texts you want to color.
7) What is a marquee?
Marquee is used to put the scrolling text on a web page. It scrolls the
image or text up, down, left or right automatically. You should put the
text which you want to scroll within the <marquee>......</marquee>
tag.
o <br> tag - Usually <br> tag is used to separate the line of text. It
breaks the current line and conveys the flow to the next line
o <p> tag - The <p> tag contains the text in the form of a new
paragraph.
o <blockquote> tag - It is used to define a large quoted section. If
you have a large quotation, then put the entire text within
<blockquote>.............</blockquote> tag.
Here, replace the "image.gif" with the name of your image file which
you want to display on your web page.
Example:
1. <p>
2. <span style="color:#ffffff;">
3. In this page we use span.
4. </span>
5. </p>
1. <iframe src="URL"></iframe>
Example:
Target to a link:
14) Why background and color are the separate properties if they
should always be set together?
1. <style>
2. body {
3. background-color: linen;
4. }
5. h1 {
6. color: red;
7. margin-left: 80px;
8. }
9. </style>
10.
o You can create classes for use on multiple tag types in the
document.
o You can use selector and grouping methods to apply styles in
complex situations.
o No extra download is required to import the information.
17) Name the property for controlling the image position in the
background.
1. center
2. top
3. bottom
4. left
5. right
18) Name the property for controlling the image scroll in the
background.
Inline: Inline Style Sheet is used to style only a small piece of code.
Syntax
1. <htmltag style="cssproperty1:value; cssproperty2:value;"> </
htmltag>
2.
Embedded: Embedded style sheets are put between the
<head>...</head> tags.
Syntax
1. <style>
2. body {
3. background-color: linen;
4. }
5. h1 {
6. color: red;
7. margin-left: 80px;
8. }
9. </style>
10.
External: This is used to apply the style to all the pages within your
website by changing just one style sheet.
Syntax
1. <head>
2. <link rel="stylesheet" type="text/css" href="mystyle.css">
3. </head>
4.
21) What is the CSS Box model and what are its elements?
The CSS box model is used to define the design and layout of
elements of CSS.
1. function msg()
2. {
3. document.writeln("Named Function");
4. }
5. msg();
24) Name the types of functions
1. var display=function()
2. {
3. document.writeln("Anonymous Function");
4. }
5. display();
1. <script type="text/javascript">
2. document.write("JavaScript Hello World!");
3. </script>
1. function function_name(){
2. //function body
3. }
o Alert Box
o Confirm Box
o Prompt Box
34) What are the selectors in jQuery? How many types of selectors in
jQuery?
If you want to work with an element on the web page, first you need
to find it. Selectors find the HTML elements in jQuery. There are
many types of selectors. Some basic selectors are:
35) What is the difference between the ID selector and class selector
in jQuery?
ID selector and class selector are the same as they are in CSS. ID
selector uses ID while class selector uses a class to select elements.
You use an ID selector to select just one element. If you want to select
a group of elements, having the same CSS class, use class selector.
Syntax:
1. $(selector).toggle();
2. $(selector).toggle(speed, callback);
3. $(selector).toggle(speed, easing, callback);
4. $(selector).toggle(display);
Syntax:
1. $(selector).fadeToggle();
2. $(selector).fadeToggle(speed,callback);
3. $(selector).fadeToggle(speed, easing, callback);
You need refer to its library to start with jQuery. You can download
the latest version of jQuery from jQuery.com.
39) Can you use any other name in place of $ (dollar sign) in jQuery?
Here,
41)What is AJAX?
o Twitter
o Facebook
o Gmail
o Javatpoint
o Youtube
1. <script>
2. function validateform(){
3. var name=document.myform.name.value;
4. var password=document.myform.password.value;
5.
6. if (name==null || name==""){
7. alert("Name can't be blank");
8. return false;
9. }else if(password.length<6){
10. alert("Password must be at least 6 characters long.");
11. return false;
12. }
13. }
14. </script>
15. <body>
16. <form name="myform" method="post" action="abc.jsp" onsub
mit="return validateform()" >
17. Name: <input type="text" name="name"><br/>
18. Password: <input type="password" name="password"><br/>
19. <input type="submit" value="register">
20. </form>
44)What do you mean by photoshop?Explain the organizing of layers
in Photoshop?
consist of below:
•Options Bar: – In this, there are many options to use selected tools.
•Tool Box: – It is used for editing or manipulating the selected images
for work.
•Panel: – It will show the panels to modify the images like layering,
adjustment etc.
Fifth, “Fly out” means a button that opens a group of related tools.
The request methods tell the script how it was invoked. Based on this
information, the script
decides how to act. The request method is passed to the script using
environment variable called
REQUEST- METHOD. The two most common request methods used
are GET and POST.
GET
GET is a request for data, the same method used for obtaining static
documents. The GET
method sends request information as parameter tacked onto the end of
the URL. These parameters are passed to the CGI program in the
environment variable QUERY-STRING.
E.g.: If the script is called myprog.exe and is invoked from a link with
the form
<A HREF="cgi-bin/myprog.exe? lname=blow&fname=joe"> The
REQUEST_METHOD will be the string GET, and the
QUERY_STRING will contain lname=blow &fname=joe.
A mandatory question mark separates the name of the script from the
beginning of the QUERY_STRING. If a slash is used instead of the
question mark; the server passes the information to script using the
PATH_INFO variable instead of the QUERY_STRING
variable. POST
POST operation occurs when the browser sends data from a fill-in
form to the server. With
POST, the QUERY_STRING mayor may not be blank, depending on
the server.The data from a POSTed query gets passed from the server
to the script using STDIN. Because STDIN is a stream and the script
needs to know how much valid data is waiting, the server also
Supplies another variable, CONTENT_LENGTH, to indicate the size
in bytes of the incoming "data. The format for POSTed data is
Variable1=value1 & variable2=value2 &etc.
54) What is meant by Plug-in?
A hardware or software module that adds a specific feature or service
to a larger system. The
idea is that the new component simply plugs in to the existing system.
For example, there are number of plug-ins for the Netscape Navigator
browser that enable it to display different types of audio or video
messages. Navigator plug-ins are based on MIME filetypes.