Professional Documents
Culture Documents
http://www.w3schools.com/site/site_intro.asp
• HTML 4.01
• The use of CSS (style sheets)
• XHTML
• XML and XSLT
• Client side scripting
• Server side scripting
• Managing data with SQL
• The future of the Web
What is object?
An Object is a software unit that combines a structured set of data with a set of
operations for inspecting and manipulating that data.
HTML SAMPLES
http://www.w3schools.com/html/html_examples.asp
1. Break out of a frame
<frameset rows="25%,50%,25%">
<frame src="frame_a.htm">
<frame src="frame_b.htm">
<frame src="frame_c.htm">
</frameset>
<frameset cols="25%,75%">
<frame src="frame_b.htm">
<frame src="frame_c.htm">
</frameset>
</frameset>
<frameset cols="120,*">
<frame src="tryhtml_contents.htm">
<frame src="frame_a.htm"
name="showframe">
</frameset>
<frameset cols="20%,80%">
<frame src="frame_a.htm">
<frame src="link.htm#C10">
</frameset>
8. Jump to a specified section with frame navigation
<frameset cols="180,*">
<frame src="content.htm">
<frame src="link.htm" name="showframe">
</frameset>
<h4>Letters list:</h4>
<ol type="A">
<li>Apples</li>
<li>Bananas</li>
<li>Lemons</li>
<li>Oranges</li>
</ol>
<p>
<img src ="hackanm.gif"
align ="right" width="48" height="48">
A paragraph with an image. The align attribute of the image is set to "right". The
image will float to the right of this text.
</p>
14. Create an image-map, with click-able regions
<img src="planets.gif"
width="145" height="126" usemap="#planetmap">
<area shape="circle"
coords="90,58,3"
alt="Mercury"
href="mercur.htm">
<area shape="circle"
coords="124,58,8"
alt="Venus"
href="venus.htm">
</map>
<head>
<meta name="author"
content="Jan Egil Refsnes">
<meta name="revised"
content="Jan Egil Refsnes,6/10/99">
<meta name="generator"
content="Microsoft FrontPage 4.0">
</head>
16. Document keywords
<meta name="description"
content="HTML examples">
<meta name="keywords"
content="HTML, DHTML, CSS, XML, XHTML, JavaScript, VBScript">
I. Interview
(By Gnanasekar)
8. Set the Button border top 3px, right 2px, bottom 1px, left 2px, with style and
color.
Ans:
Border-top: 3px solid #FFFFFF;
Border-right: 2px solid #FFFFFF;
Border-bottom: 1px solid #FFFFFF;
Border-left: 2px solid #FFFFFF;
9. How to set our own Scrollbar style?
Ans:
Scrollbar-3dlight-color:#FFFFFF;
Scrollbar-arrow-color:#FFFFFF;
Scrollbar-face-color:#FFFFFF;
Scrollbar-track-color:#FFFFFF;
Scrollbar-highlight-color:#FFFFFF;
Scrollbar-shadow-color:#FFFFFF;
12. Write the form validation for Name field(textbox) should not be empty?
function sumbitform()
{
if (document.myform.name.value=="")
{
alert("Pls fill the Name")
document.myform.name.focus();
return false;
}
}
II. Interview
1. What are the stylesheet types and write codes?
Ans:
Stylesheets are three type. External, Inline and embed.
External: <link href=”stylesheet.css” rel=”stylesheet” type=”text/css”>
Internal: <style type=”text/css”>font-family:times;</style>
Embedd: <td style=”font-family:times;font-size:12px;”>Mindtree</td>
Unordered List
<ul type=”circle”>
<li>List 1</li>
<li>List 2</li>
<li>List 3</li>
</ul>
Definition List
<dl type=”circle”>
<dt>Mindtree</dt>
<dd>employee</dd>
<dd>Mangement</dd>
<dt>ADDR</dt>
<dd>employee</dd>
<dd>Mangement</dd>
</dl>
III. Interview
<script type="text/javascript">
var name = new Array()
name[0]= "Kumar"
name[1]= "Ragav"
name[2]= "Vel"
name[3]= "Kumar"
name[4]= "Kumar"
for(i=0;i<name.length;i++)
{
document.write(name[i]+"<br/>");
}
</script>
7. What is object?
An Object is a software unit that combines a structured set of data with a set of
operations for inspecting and manipulating that data.
7.1 For loop
Use a For loop to run the same block of code a specified number of times.
While
Use a while loop to run the same block of code while a specified condition is true.
DO..while
Use a do..while loop to run the same block of code while a specified condition is true.
This loop will always be executed once, even if the condition is false, because the
statements are executed before the condition is tested.