Skip to main content

htmlll msl

<html>
<body>
<script>
function find()
{
var sum=0;
var no=parseInt(frm.txt1.value);
while(no>0)
{
sum=sum+no%10;
no=Math.floor(no/10);
}
alert("Sumof Digits"+sum);
}
</script>
<form name="frm">
EnteraNumber:<input type="text"name="txt1" /><br>
<input type="button"name="b1"onclick="find();"value="Display"/>
</form>
</body>
</html>


<html>

<head> <style>

body{background-color:lavender;

text-align: center;} h2{font-style:italic; font-size: 30px; color: #f08080;} p{font-size: 20px;} .blue{color: blue;}

.red{color:red;}

.green{color:green;}

</style> </head>

<body>

<h3style="color:red; font-style: italic; text-align:center;

font-size: 50px;

padding-top:25px;">LearningHTMLusingInline CSS</h3>

<h2>LearningHTMLwithinternal CSS</h2>

<pclass="blue">Thisisabluecolor paragraph</p>

<pclass="red">Thisisaredcolorparagraph</p>

<pclass="green">Thisis agreen colorparagraph</p>

</body>

</html>

 

Comments

Popular posts from this blog

java lab 2nd semester

SYED AMMAL ARTS AND SCIENCE COLLEGE   (Affiliated to Alagappa University - Karaikudi) NAAC Accredited with “B” Grade Koottampuli, Ramanathapuram - 623513     DEPARTMENT OF INFORMATION TECHNOLOGY                   Reg. No :     Name     :         Academic Year     2024 – 2025     SYED AMMAL ARTS AND SCIENCE COLLEGE   (Affiliated to Alagappa University - Karaikudi) NAAC Accredited with “B” Grade DEPARTMENT OF INFORMATION TECHNOLOGY       Certified a Bonafide record of practical work done on 23BIT2P1-JAVA PROGRAMMING LAB by _______________________________ Reg.No. __________________ of B.Sc. (Information Technology) – I year during II Semester APRIL, 2025.                      ...

DBMS LAB

AIM: To write a sql program in ddl commands. PROGRAM: SQL> create table student(stid number, stname varchar(15), staddr varchar(15), stmob number(15)); Table created. SQL> desc student; Name Null? Type ----------------------------- -------- ------------------------ STID NUMBER STNAME VARCHAR2(15) STADDR VARCHAR2(15) STMOB NUMBER(15) SQL> alter table student add stmark number; Table altered. SQL> desc student; Name Null? Type --------------------------------- -------- -------------------- STID NUMBER STNAME VARCHAR2(15) STADDR VARCHAR2(15) STMOB NUMBER(15) STMARK NUMBER SQL> alter table student rename to student_info; Table altered. SQL> desc student; ERROR: ORA-04043: object student does not exist SQL> desc student_info; Name Null? Type -------------------------------- -------- ---------------- STID NUMBER STNAME VARCHAR2(15) STADDR VARCHAR2(15) STMOB NUMBER(15) STMARK NUMBER SQL> drop table student_info; Table dropped. SQL> desc student_info; ERROR: ORA-04...

Iwd only 8 pdf 😉(👈 click seiyavum)

 demonstrate the calculator program. Program : <html> <body> <script> const operator = prompt('Enter operator to perfome the calculation(either+,-,* or/):');  const number1 = parseFloat(prompt('Enter the first number:'));  const number2 = parseFloat(prompt('Enter the second number:'));  let result;  if(operator =='+') { result = number1+number2; } else if(operator =='-') { result = number1-number2; } else if(operator =='*') { result = number1*number2; } else { result=number1/number2; } window.alert("Result is"+result); </script> </body> </html> OUTPUT : Result : The given program is executed successfully. Ex no : 2 Date : FACTORIAL Aim: To demonstrate the factorial program. Program : <html> <body style="text align:center;font-size:20px;"> <h1>welcome to department of BCA</h1> <h1>FACTORIAL NUMBER</h1> enter the num...