p,table,li, // mystyle.css
{
font-family: "lucida calligraphy", arial, 'sans serif'; margin-left: 10pt;
}
p { word-spacing: 5px; }
body { background-color:rgb(200,255,205); }
p,li,td { font-size: 75%;}
td { padding: 0.5cm; }
th { text-align:center; font-size: 85%; } h1, h2, h3, hr {color:#483d8b;}
table
{
border-style: outset; background-color: rgb(100,255,105);
}
li {list-style-type: lower-roman;}
span
{
color:blue; background-color:pink; font-size: 29pt; font-style: italic; font-weight: bold;
}
Lab program1
This header is 36 pt This header is blue This paragraph has a left margin of 50 pixels
Name Email
Dr. HNS hns@gmail.com
Dr. MKV mkv@rediffmail.com
Dr. GTR gtr@rnsit.in
Dr. MVS mvs@hotmail.com
TSB Singh Prakash S manojKumar
This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text.
2. Develop and demonstrate a XHTML file that includes Javascript script for the following problems:
a) Input: A number n obtained using prompt Output: The first n Fibonacci numbers
var fib1=0,fib2=1,fib=0; var num = prompt("Enter a number : \n", "");
if(num!=null && num>0)
{
document.write("" + num + " Fibonocci are "); if(num==1) document.write(" "+ fib1 + ""); else document.write("" + fib1 + " " + fib2 + "");
for(i=3;i
function disp(str)
{
var alphaExp = /^[a-zA-Z]+$/; if(!str.value.match(alphaExp)) { alert("Input should be only alphabets"); return false; } sml=31; text = str.value.toLowerCase(); var ia =