Web Technology Slip 7

Q1. Write a java script program to accept a string from user and display the count of vowel characters from that string.

Answer : 

<html>
<head>
<script>
function saurabh() 
{
var str = document.getElementById('a').value;
var count = 0;
for (var i = 0; i < str.length; i++) 
{
if (str.charAt(i).match(/[aeiouAEIOU]/))
{
count++;
}
}
alert(count);
}
</script>
</head>
<body>
Enter Text   : <input  id='a'> </br></br>
<button onclick="saurabh()">click</button>
</body>
</html>

Q2. Write a HTML code to display Theory Time Table of FYBBA(CA). Use internal CSS to format the table.

Q2. Write a HTML code to display Theory Time Table of FYBBA(CA). Use internal CSS to          format the table


Answer : 

<!DOCTYPE html>
<html>
<title>assignment3</title>
<body>
 <table width="100%" align="left" cellpadding="20" cellspacing="20"  border="1" color="red">

  <tr align="center">
    <th>Monday</th>
    <th>Tuesday</th>
  <th>Wednesday</th>
  <th>Thursday</th>
  <th>Friday</th>
  <th>Saturday</th>
  </tr>
  
  <tr align="center">
    <td>RD/AAB</td>
    <td>RD/AAB</td>
    <td>RD/AAB</td>
  <td>BM/PPk</td>
  <td>FAC/TST</td>
  <td>Advc/SNB</td>
  </tr>
  
  <tr align="center">
    <td>RD/AAB</td>
    <td>RD/AAB</td>
    <td>RD/AAB</td>
  <td>BM/PPk</td>
  <td>FAC/TST</td>
  <td>Advc/SNB</td>
  </tr> 
  
  <tr align="center">
    <td>RD/AAB</td>
    <td>RD/AAB</td>
    <td>RD/AAB</td>
  <td>BM/PPk</td>
  <td>FAC/TST</td>
  <td>Advc/SNB</td>
  </tr>
  
  <tr align="center">
  <td>RD/AAB</td>
    <td>RD/AAB</td>
    <td>RD/AAB</td>
  <td>BM/PPk</td>
  <td>FAC/TST</td>
  <td>Advc/SNB</td>
  </tr>
  
</table> 

</body>
</html>

Web Technology Slip 7 Web Technology Slip 7 Reviewed by technical_saurabh on December 21, 2020 Rating: 5

No comments:

Powered by Blogger.