๐ŸŒ NIELIT O Level Practical โ€ข M2-R5.1

Web Designing Programs

Complete HTML, CSS and JavaScript source codes used in live classes. Includes O Level practical programs, assignments, viva questions and previous year practical solutions.

โœ” 100+ Programs โœ” Source Code โœ” Viva Questions โœ” Assignments
M2-R5.1 O Level Practical ๐Ÿ“… Jul 2026

Implement a web application that takes name and age from an HTML page. If the age is less than 18, it should send a page with "Hello , you are not authorized to visit the site" message, where should be replaced with the entered name. Otherwise, it should send "Welcome to this site" message.

                    
  <!DOCTYPE html>
  <html>
  
  <head>
      <title>Age Verification</title>
  </head>
  
  <body>
  
      <script>
          var name = prompt("Enter Your Name:");
          var age = prompt("Enter Your Age:");
  
          if (age >= 18) {
              document.write("<h1 align='center'>Welcome to this site</h1>");
          }
          else {
              document.write("<h1 align='center'>Hello " + name + ", you are not authorized to visit the site</h1>");
          }
      </script>
  
  </body>
  
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jul 2026

Embed Audio and Video into your HTML web page.

                    
  <!DOCTYPE html>
  <html>
  
  <head>
      <title>Audio and Video</title>
  </head>
  
  <body>
  
      <h2>Audio Player</h2>
  
      <audio controls>
          <source src="demo-audio.mp3">
      </audio>
  
      <h2>Video Player</h2>
  
      <video controls width="480">
          <source src="demo-video.mp4">
      </video>
  
  </body>
  
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jul 2026

Use HTML and CSS to show the word "Welcome" and apply styles: center alignment, large size, bold, underline, and change color on hover.

                    
  <!DOCTYPE html>
  <html>
  
  <head>
      <title>DEEPAKRAJTech Live Class</title>
  
      <style>
          div {
              text-align: center;
              font-size: 96px;
              font-weight: bold;
              text-decoration: underline;
          }
  
          div:hover {
              color: red;
              cursor: pointer;
          }
      </style>
  
  </head>
  
  <body>
  
      <div>Welcome</div>
  
  </body>
  
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jul 2026

Create an HTML file that displays three images stacked vertically with labels underneath each.

                    
  <!DOCTYPE html>
  <html>
  
  <head>
      <title>3 Vertical Images</title>
  
      <style>
          .img-box {
              display: flex;
              flex-direction: column;
              align-items: center;
          }
  
          img {
              width: 400px;
              height: 600px;
              margin-top: 16px;
          }
  
          p {
              color: red;
              font-size: 24px;
          }
      </style>
  
  </head>
  
  <body>
  
      <div class="img-box">
  
          <img src="img1.jpeg" alt="Lord Shiva">
          <p>Lord Shiva</p>
  
          <img src="img2.jpeg" alt="Radha Rani">
          <p>Radha Rani</p>
  
          <img src="img3.jpeg" alt="Shree Ram">
          <p>Shree Ram</p>
  
      </div>
  
  </body>
  
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jul 2026

Write a program to style the first letter, line of an element and insert content before or after the content of an element using pseudoelement in CSS.

                    
  <!DOCTYPE html>
  <html>
  
  <head>
      <title>CSS Pseudo-Elements</title>
  
      <style>
          h1::first-letter {
              font-size: 48px;
              color: red;
          }
  
          p::before {
              content: "START: ";
              background-color: yellow;
          }
  
          p::after {
              content: " END";
              background-color: red;
          }
      </style>
  
  </head>
  
  <body>
  
      <h1>Pseudo-Elements</h1>
  
      <p>This text has content added before and after.</p>
  
  </body>
  
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jul 2026

Create the following table structure in HTML:
Enrollment No. | Name | Marks (Physics, Chemistry)
A101 | Priya | 40 | 50
A102 | Harish | 60 | 70
A103 | Krishna | 55 | 65

                    
  <!DOCTYPE html>
  <html>
  
  <head>
      <title>Student Marks</title>
  </head>
  
  <body>
  
      <table border="1" align="center" width="50%" cellpadding="10">
  
          <tr bgcolor="yellow">
              <th rowspan="2">Enrollment No.</th>
              <th rowspan="2">Name</th>
              <th colspan="2">Marks</th>
          </tr>
  
          <tr bgcolor="yellow">
              <td>Physics</td>
              <td>Chemistry</td>
          </tr>
  
          <tr>
              <td>A101</td>
              <td>Priya</td>
              <td>40</td>
              <td>50</td>
          </tr>
  
          <tr>
              <td>A102</td>
              <td>Harish</td>
              <td>60</td>
              <td>70</td>
          </tr>
  
          <tr>
              <td>A103</td>
              <td>Krishna</td>
              <td>55</td>
              <td>65</td>
          </tr>
  
      </table>
  
  </body>
  
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jul 2026

Create an HTML page with green background with a message "WELCOME" in large size blinking.
Add scrolling text "Hello World" below it.

                    
  <!DOCTYPE html>
  <html>
  
  <head>
      <title>Blinking & Scrolling Text</title>
  
      <style>
          .blink {
              text-align: center;
              font-size: 72px;
              animation: blink 1s infinite;
          }
  
          @keyframes blink {
              50% {
                  opacity: 0;
              }
          }
      </style>
  
  </head>
  
  <body bgcolor="green">
  
      <h1 class="blink">WELCOME</h1>
  
      <marquee>Hello World</marquee>
  
  </body>
  
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jul 2026

Write a HTML program to display Time Table of any Course using all attributes of table tag.

                    
  <!DOCTYPE html>
  <html>
  
  <head>
      <title>Time Table</title>
  </head>
  
  <body>
  
      <table border="1" align="center" cellspacing="8" cellpadding="10" width="50%">
  
          <tr bgcolor="yellow">
              <th colspan="3">O LEVEL TIME TABLE</th>
          </tr>
  
          <tr>
              <td rowspan="2">HTML</td>
              <td>Theory</td>
              <td>Practical</td>
          </tr>
  
          <tr>
              <td>09:00 AM</td>
              <td>10:00 AM</td>
          </tr>
  
          <tr>
              <td rowspan="2">CSS</td>
              <td>Theory</td>
              <td>Practical</td>
          </tr>
  
          <tr>
              <td>09:00 AM</td>
              <td>10:00 AM</td>
          </tr>
  
      </table>
  
  </body>
  
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jul 2026

Write a program to design a simple calculator using JavaScript

                    
  <!DOCTYPE html>
  <html>
  
  <head>
      <title>Simple Calculator Using JavaScript</title>
  </head>
  
  <body>
  
      <center>
  
          <h1>Calculator</h1>
  
          <table border="1" cellpadding="20" cellspacing="8">
  
              <tr>
                  <td>First Number</td>
                  <td>Second Number</td>
              </tr>
  
              <tr>
                  <td><input type="text" id="n1"></td>
                  <td><input type="text" id="n2"></td>
              </tr>
  
              <tr>
                  <td colspan="2" align="center">
                      <input type="button" value="+" onclick="add()">
                      <input type="button" value="-" onclick="sub()">
                      <input type="button" value="*" onclick="mul()">
                      <input type="button" value="/" onclick="div()">
                  </td>
              </tr>
  
              <tr>
                  <td colspan="2" align="center">
                      <input type="text" id="ans">
                  </td>
              </tr>
  
          </table>
  
      </center>
  
      <script>
  
          function add() {
              var a = parseFloat(document.getElementById("n1").value);
              var b = parseFloat(document.getElementById("n2").value);
              document.getElementById("ans").value = a + b;
          }
  
          function sub() {
              var a = parseFloat(document.getElementById("n1").value);
              var b = parseFloat(document.getElementById("n2").value);
              document.getElementById("ans").value = a - b;
          }
  
          function mul() {
              var a = parseFloat(document.getElementById("n1").value);
              var b = parseFloat(document.getElementById("n2").value);
              document.getElementById("ans").value = a * b;
          }
  
          function div() {
              var a = parseFloat(document.getElementById("n1").value);
              var b = parseFloat(document.getElementById("n2").value);
              document.getElementById("ans").value = a / b;
          }
  
      </script>
  
  </body>
  
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Write a program in javascript to generate series of Odd and Even numbers.

                    
  <!DOCTYPE html>
  <html>
  
  <head>
      <title>JavaScript | Series of Odd and Even 1 to 100</title>
  </head>
  
  <body>
  
      <script>
          document.write("<h1>Odd Number</h1>");
  
          for (let i = 1; i <= 100; i++) {
              if (i % 2 == 1) {
                  document.write(i + " ");
              }
          }
  
          document.write("<h1>Even Number</h1>");
  
          for (let i = 1; i <= 100; i++) {
              if (i % 2 == 0) {
                  document.write(i + " ");
              }
          }
      </script>
  
  </body>
  
  </html>                              
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Write a program in Java Script to print factorial.

                    
  <!DOCTYPE html>
  <html>

  <head>
      <title>Java Script to Print Factorial</title>
  </head>

  <body>

      <script>
          var n = prompt("Enter a Number: ");
          var fact = 1;

          while (n >= 1) {
              fact = fact * n;
              n = n - 1;
          }

          document.write("Factorial = " + fact);
      </script>

  </body>

  </html>                              
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Write a program in Java Script to check if a given number is prime or not .

                    
    <!DOCTYPE html>
    <html>
    
    <head>
        <title>JavaScript to check prime or not</title>
    </head>
    
    <body>
    
        <script>
            var n = prompt("Enter a Number: ");
            var i;
    
            for (i = 2; i < n; i++) {
                if (n % i == 0) {
                    break;
                }
            }
    
            if (i == n) {
                document.write(n + " Prime Number");
            } else {
                document.write(n + " Not Prime Number");
            }
        </script>
    
    </body>
    
    </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Write a program in javascript to generate series of prime numbers.

                    
  <!DOCTYPE html>
  <html>
  
  <head>
      <title>
          JS Series of Prime Numbers
      </title>
  </head>
  
  <body>
  
      <h1>Series of Prime Numbers</h1>
  
      <script>
          for (var n = 1; n <= 100; n++) {
              for (var i = 2; i < n; i++) {
                  if (n % i == 0) {
                      break;
                  }
              }
  
              if (i == n) {
                  document.write(n + " ");
              }
          }
      </script>
  
  </body>
  
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Create a form for students information. write a JavaScript code to finde student total marks, avarage, result(pass/fail) and grade.

                    
  <!DOCTYPE html>
  <html>
  
  <head>
      <title>JS Students Result Information</title>
  </head>
  
  <body>
  
      Marks 1: <input type="text" id="m1"> <br><br>
      Marks 2: <input type="text" id="m2"> <br><br>
      Marks 3: <input type="text" id="m3"> <br><br>
  
      <button onclick="result()">Result</button>
  
      <p id="total"></p>
      <p id="avarage"></p>
      <p id="result"></p>
      <p id="grade"></p>
  
      <script>
          function result() {
  
              var m1 = parseInt(document.getElementById("m1").value);
              var m2 = parseInt(document.getElementById("m2").value);
              var m3 = parseInt(document.getElementById("m3").value);
  
              var total = m1 + m2 + m3;
              var avg = total / 3;
              var res = (avg >= 33) ? "Pass" : "Fail";
  
              var garde;
  
              if (avg >= 85) {
                  garde = "S";
              } else if (avg >= 75) {
                  garde = "A";
              } else if (avg >= 65) {
                  garde = "B";
              } else if (avg >= 55) {
                  garde = "C";
              } else {
                  garde = "D";
              }
  
              document.getElementById("total").innerHTML = "Total marks: " + total;
  
              document.getElementById("avarage").innerHTML = "Avarage: " + avg;
  
              document.getElementById("result").innerHTML = "Result: " + res;
  
              document.getElementById("grade").innerHTML = "Grade: " + garde;
          }
      </script>
  
  </body>
  
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Create a HTML Document with JavaScript code that has three Textboxes and a button.
The details should be accepted using textboxes are principal, rate of interest, and duration in years.

                    
  <!DOCTYPE html>
  <html>
  
  <head>
      <title>JS Simple Interest</title>
  </head>
  
  <body>
  
      Principal Amount: <input type="text" id="p"> <br><br>
      Rate of Interest: <input type="text" id="r"> <br><br>
      Duration in Years: <input type="text" id="t">
      <br><br>
  
      <button onclick="interest()">OK</button>
  
      <h3 id="si"></h3>
  
      <script>
          function interest() {
  
              var p = parseFloat(document.getElementById("p").value);
  
              var r = parseFloat(document.getElementById("r").value);
  
              var t = parseInt(document.getElementById("t").value);
  
              var si = (p * r * t) / 100;
  
              document.getElementById("si").innerHTML =
                  "Simple Interest of Principal Amount: " + si;
          }
      </script>
  
  </body>
  
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Write a JavaScript program to display the current day and time in the following format.
Sample Output: Today is: Tuesday.

                    
    <!DOCTYPE html>
    <html>
    
    <head>
        <title>JS Display the Current Day and Time</title>
    </head>
    
    <body>
    
        <script>
            var today = new Date();
    
            var days = ["Sunday", "Monday", "Tuesday", "Wednesday",
                "Thursday", "Friday", "Saturday"
            ];
    
            document.write("Today is: " + days[today.getDay()]);
    
            var hour = today.getHours();
            var minute = today.getMinutes();
            var second = today.getSeconds();
    
            var ampm = hour >= 12 ? "PM" : "AM";
    
            hour = hour % 12;
    
            hour = hour ? hour : 12;
    
            document.write("Current time is: " + hour + " " + ampm +
                " : " + minute + " : " + second);
        </script>
    
    </body>
    
    </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

HTML aur CSS ka use karke ek web page design kijiye jisme:
200px ร— 200px ka circular div ho, Circle par 8px double black border ho, Circle ka background color red ho, mouse hover karne par circle ka background color yellow ho jaye

                    
  <!DOCTYPE html>
  <html>
  
  <head>
      <title>Background image</title>
  
      <style>
          .circle {
              width: 200px;
              height: 200px;
              border: 8px double black;
              border-radius: 100px;
              background-color: red;
          }
  
          .circle:hover {
              background-color: yellow;
          }
      </style>
  
  </head>
  
  <body>
  
      <div class="circle"></div>
  
  </body>
  
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

With CSS use the shorthand background property to set background image to eg."xyz.png" show it once, in the top right corner.,

                    
  <!DOCTYPE html>
  <html>

  <head>
      <title>Background image</title>

      <style>
          body {
              background: url("https://gw-nielit-prod.s3.ap-south-1.amazonaws.com/test_image/sample_2.png") no-repeat right top;
          }
      </style>

  </head>

  <body>

      <h1>Image show it once, in the top right corner</h1>

  </body>

  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Write a program to sum and multiply of two numbers using JavaScript.

                    
  <!DOCTYPE html>
  <html>
  
  <head>
      <title>Sum and Multiply Using JavaScript</title>
  </head>
  
  <body>
  
      <center>
  
          <h1>Sum and Multiply of Two Numbers</h1>
          <hr>
  
          Enter First Number : <input type="text" id="num1">
          <br>
  
          Enter Second Number : <input type="text" id="num2">
          <br><br>
  
          <button onclick="add()">Add</button>
          <button onclick="multiply()">Multiply</button>
  
          <h3 id="ans" style="background-color: yellow;"></h3>
  
      </center>
  
      <script>
  
          function add() {
              var a = parseInt(document.getElementById("num1").value);
              var b = parseInt(document.getElementById("num2").value);
  
              document.getElementById("ans").innerHTML = "Sum = " + (a + b);
          }
  
          function multiply() {
              var a = parseInt(document.getElementById("num1").value);
              var b = parseInt(document.getElementById("num2").value);
  
              document.getElementById("ans").innerHTML = "Multiplication = " + (a * b);
          }
  
      </script>
  
  </body>
  
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Write a program to redirect, popup and print function in JavaScript.

                    
  <!DOCTYPE html>
  <html>
  
  <head>
      <title>JavaScript Function</title>
  </head>
  
  <body>
  
      <center>
  
          <h2>Redirect, Popup and Print</h2>
          <hr>
  
          <button onclick="popup()">Popup</button>
          <button onclick="redirect()">Redirect</button>
          <button onclick="printPage()">Print</button>
  
      </center>
  
      <script>
  
          function popup() {
              alert("Welcome to O Level Practical Exam Live Class");
          }
  
          function redirect() {
              window.location.href = "https://deepakrajtech.com/";
          }
  
          function printPage() {
              window.print();
          }
  
      </script>
  
  </body>
  
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Create an HTML page to display the following structure using tables or divisions:
Top Frame (Single cell):
Title: "Employee Dashboard" (centered, dark orange background, white text)
Middle Section (2 Columns):
Left Column: "Employee List"
Unordered list of 5 employee names
Right Column: "Quick Links"
Hyperlinks to "Attendance", "Leave Application", and "Payslip"
Bottom Section (3 Columns):
Column 1: "Announcements" with a scrolling message
Column 2: "Reminders" with blinking text
Column 3: Display an image (e.g., company logo)

                    
                              
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Create an HTML page with a blue background and a blinking title โ€œNotice Boardโ€. Add a scrolling message with the latest announcements.

                    
  <!DOCTYPE html>
  <html>
  
  <head>
      <title>Notice Board</title>
  
      <style>
          .blink {
              text-align: center;
              color: white;
              animation: blink 1s infinite;
          }
  
          @keyframes blink {
              50% {
                  opacity: 0;
              }
          }
      </style>
  
  </head>
  
  <body bgcolor="blue">
  
      <h1 class="blink">Notice Board</h1>
  
      <marquee style="color: white;">
          Admit Cards for NIELIT O Level Practical Examination for July 2026 available on Student Portal
      </marquee>
  
  </body>
  
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Create a simple login form, having two fields, using HTML and validate it with JavaScript to check if both fields are filled before submission.

                    
  <!DOCTYPE html>
  <html>

  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Login Form Validation | DEEPAKRAJTech</title>
  </head>

  <body>
      <form action="action.html" onsubmit="return check()">
          Username: <input type="text" id="user">
          Password: <input type="password" id="pass">
          <input type="submit" value="Login">
      </form>

      <script>
          function check() {
              var user = document.getElementById("user").value;
              var pass = document.getElementById("pass").value;
              if (user == "") {
                  alert("Please Enter Username");
                  return false;
              }
              if (pass == "") {
                  alert("Please Enter Password");
                  return false;
              }
              return true;
          }
      </script>
  </body>

  </html>            
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Write an HTML page displaying 6 lines of text, each in a different color. The name of the color should be displayed in the same color.

                    
  <!DOCTYPE html>
  <html>

  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Different Colors Lines with Text | DEEPAKRAJTech</title>
  </head>

  <body bgcolor="black" style="text-align: center;">
      <p style="color: red;">Red Line</p>
      <hr color="red">
      <p style="color: green;">Green Line</p>
      <hr color="green">
      <p style="color: yellow;">Yellow Line</p>
      <hr color="yellow">
      <p style="color: blue;">Blue Line</p>
      <hr color="blue">
      <p style="color: pink;">Pink Line</p>
      <hr color="pink">
      <p style="color: orange;">Orange Line</p>
      <hr color="orange">
  </body>

  </html>            
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Create a webpage that demonstrates the following using the anchor tag.
Link to an external website in a new tab.
Link to a different section on the same webpage.
Open both links in a new tab.
Link to a downloadable PDF file.

                    
  <!DOCTYPE html>
  <html>

  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Demonstrates the Anchor Tag | DEEPAKRAJTech</title>
  </head>

  <body>
      <section id="home">
          <h1>This is My Home Page</h1>
          <a href="#conatct" target="_blank">Go to Contact Page</a>
      </section>
      <hr>

      <section>
          <h1>Importents Links</h1>
          <a href="https://deepakrajtech.com/" target="_blank">Open Website in New Tab</a>
          <br><br>
          <a href="mypdf.pdf" download>Download PDF File</a>
      </section>

      <hr>
      <section id="conatct">
          <h1>This is My Contact Page</h1>
          <a href="#home" target="_blank">Go to Home Page</a>
      </section>
  </body>

  </html>            
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Write HTML and CSS to center-align a div containing "Hello World" on the page horizontally and vertically.

                    
  <!DOCTYPE html>
  <html>

  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Center-Align Div | DEEPAKRAJTech</title>
      <style>
          .main {
              width: 100vw;
              height: 100vh;
              display: flex;
              align-items: center;
              justify-content: center;
          }
      </style>
  </head>

  <body>
      <div class="main">
          Hello World
      </div>
  </body>

  </html>            
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Write a JavaScript program to calculate and display the number of days remaining until a given future date.

                    
  <!DOCTYPE html>
  <html>

  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>JavaScript Program to Calculate Days | DEEPAKRAJTech</title>
  </head>

  <body>
      <script>
          var futureDate = new Date(prompt("Enter Future Date (YYYY-MM-DD):"));
          var today = new Date();
          var difference = futureDate - today;
          var days = Math.ceil(difference / (1000 * 60 * 60 * 24));
          document.write(days + " Days Remaining");
      </script>
  </body>

  </html>            
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Create a webpage on โ€œMy Dream Vacationโ€
Show the vacation destination name in blue, bold, and italic text.
List five places you would like to visit there, each in a different style.
Add a scrolling text like โ€œLetโ€™s Travel the World!โ€
Include a background image.

                    
  <!DOCTYPE html>
  <html>

  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>My Dream Vacation | DEEPAKRAJTech</title>
      <style>
          body {
              background-image: url("kashmir.jpg");
              background-size: cover;
          }

          p {
              font-size: 32px;
          }
      </style>
  </head>

  <body>
      <h1 align="center" style="color: blue;"><b><i>My Dream Vacation Kashmir (India)</i></b></h1>
      <p style="color: green;"><i>1. Dal Lake</i></p>
      <p style="color: blueviolet;"><b>2. Gulmarg</b></p>
      <p style="color: red;"><u>3. Pahalgam</u></p>
      <p style="color: chartreuse;"><b><i>4. Sonamarg</i></b></p>
      <p style="color: yellow;"><i><u>5. Tulip Garden</u></i></p>
  </body>

  </html>            
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Design a form to collect student admission data, including. Full name, gender (radio button), stream (dropdown), hobbies (checkboxes), email, and password. Add a submit button at the end.

                    
  <!DOCTYPE html>
  <html>

  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Student Admission | DEEPAKRAJTech</title>
  </head>

  <body>
      <h1 align="center">Student Admission Form</h1>
      <hr>
      <form action="#">
          Full Name: <input type="text"> <br><br>

          Gender:
          <input type="radio" name="gender"> Male
          <input type="radio" name="gender"> Female <br><br>

          Stream:
          <select name="Stream">
              <option>Science</option>
              <option>Commerce</option>
              <option>Arts</option>
          </select> <br><br>

          Hobbies:
          <input type="checkbox"> Coding
          <input type="checkbox"> Cricket
          <input type="checkbox"> Music <br><br>

          Email: <input type="email"> <br><br>
          Password: <input type="password"> <br><br>

          <input type="submit" value="Submit">
      </form>
  </body>

  </html>                              
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Write a JavaScript program that accepts the userโ€™s name and age using prompt, and displays a greeting message accordingly.

                    
  <!DOCTYPE html>
  <html>

  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Greeting Message Using | JavaScript DEEPAKRAJTech</title>
  </head>

  <body>
      <script>
          var name = prompt("Enter your name:");
          var age = prompt("Enter your age:");
          document.write("Hello " + name + " ! You are " + age + " Years old.");
      </script>
  </body>

  </html>         
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Create a webpage titled โ€œMy Favorite Festivalโ€:
Display the name of the festival in large red text centered at the top.
Mention three traditions followed during the festival, each in a different font size and color.
Add a blinking message at the bottom: โ€œHappy [Festival Name]!โ€
Add a scrolling marquee with a greeting.

                    
  <!DOCTYPE html>
  <html>

  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>My Favorite Festival | DEEPAKRAJTech</title>
      <style>
          .blink{
              text-align: center;
              font-size: 24px;
              animation: blinkText 1s infinite;
          }
          @keyframes blinkText{
            50% {opacity: 0;}
          }
      </style>
  </head>

  <body style="background-image: linear-gradient(orange, white, green);">
      <h1 style="color: red; text-align: center;">Republic Day 26 Jan</h1>
      <hr>
      <p style="color: orange; font-size: 24px;">National Flag is Hoisted</p>
      <p style="color: gray; font-size: 28px;">Republic Day Parade Organized</p>
      <p style="color: green; font-size: 30px;">Cultural Program are Performed</p>

      <p class="blink">Happy Republic Day!</p>
      <marquee>26 January Happy Republic Day!</marquee>
  </body>

  </html>                              
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Create an HTML form with the following form validation features:
(a) A text input for the email address with the type=\email\ attribute.
(b) A number input for age with the type=\number\ attribute.
(c) A date input for birthdate using type=\date\.
(d) A range input for selecting a range (e.g., 1 to 10).
(e) A required field with the required attribute.
(f) Add a submit button and set autofocus on the first input.

                    
  <!DOCTYPE html>
  <html>

  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>HTML Form Validation | DEEPAKRAJTech</title>
  </head>

  <body>
      <form action="#">
          <label for="email">Enter Email: </label>
          <input type="email" id="email" name="email" required autofocus> <br><br>

          <label for="age">Enter Age: </label>
          <input type="number" id="age" name="age"> <br><br>

          <label for="dob">DOB: </label>
          <input type="date" id="dob" name="dob"> <br><br>

          <label for="range">Select Range: </label>
          <input type="range" id="range" name="range" min="1" max="10"> <br><br>

          <input type="submit" value="Submit">
      </form>
  </body>

  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Write HTML code to display the following numbered list.
Apple
Banana
Mango
Grapes
Pineapple

                    
  <!DOCTYPE html>
  <html>

  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Fruits | DEEPAKRAJTech</title>
  </head>

  <body>

      <h1>My Favorite Fruits</h1>

      <ol>
          <li>Apple</li>
          <li>Banana</li>
          <li>Mango</li>
          <li>Grapes</li>
          <li>Pineapple</li>
      </ol>

  </body>

  </html>    
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Write a program using JavaScript to check whether a number entered by the user is even or odd.

                    
  <!DOCTYPE html>
  <html>

  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>JavaScript Even or Odd | DEEPAKRAJTech</title>
  </head>

  <body>

      <script>
          var n = prompt("Enter any Number :");

          if (n % 2 == 0) {
              document.write(n + " Even Number");
          } else {
              document.write(n + " Odd Number");
          }
      </script>

  </body>

  </html>         
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Create a webpage named welcome.html that includes.
A large title โ€œWelcome to My Webpageโ€
Two paragraphs describing yourself.
Use bold, italic, and underline formatting within the text.

                    
  <!DOCTYPE html>
  <html>

  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>My Webpage | DEEPAKRAJTech</title>
  </head>

  <body>

    <h1 align="center">Welcome to My Webpage</h1>
    <hr>

    <p>
      My name is <b>Deepak Raj</b>. 
      I am a <i>Student</i> and I <u>Love Coding.</u>
    </p>

    <p>
      I am learning <b>HTML</b> and <b>CSS</b> 
      to create <i>Webpage</i>.
    </p>

  </body>

  </html>        
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Use HTML and CSS to show the word "Welcome" and apply styles: center alignment, large size, bold, underline, and change color on hover.

                    
  <!DOCTYPE html>
  <html>

  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Welcome | DEEPAKRAJTech</title>

      <style>
          .main {
              text-align: center;
              font-size: 72px;
              font-weight: bold;
              text-decoration: underline;
          }

          .main:hover {
              color: blue;
              cursor: pointer;
          }
      </style>
  </head>

  <body>
      <p class="main">Welcome</p>
  </body>

  </html>        
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Write an HTML code to generate the following layout:
A webpage with a 2-row, 3-column grid layout displaying:
Top Row:
Column 1: "Header: Student Profile" (highlighted in bold, orange background)
(spans across all 3 columns)
Second Row (3 Columns):
Column 1: "Personal Details"
Name, Age, Address
Column 2: "Academic Information"
Table showing subjects and grades
Column 3: "Hobbies"
List at least 3 hobbies

                    
  <!DOCTYPE html>
  <html>

  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Student Profile | DEEPAKRAJTech</title>
  </head>

  <body>

      <table border="1" width="100%">

          <tr bgcolor="orange">
              <th colspan="3">Student Profile</th>
          </tr>

          <tr>

              <td>
                  <b>Personal Details</b><br>
                  Name: Rahul<br>
                  Age: 25<br>
                  Address: Sultanpur
              </td>

              <td>
                  <b>Academic Information</b><br><br>

                  <table border="1" width="100%">
                      <tr>
                          <th>Subject</th>
                          <th>Grade</th>
                      </tr>
                      <tr>
                          <td>HTML</td>
                          <td>A</td>
                      </tr>
                      <tr>
                          <td>CSS</td>
                          <td>B</td>
                      </tr>
                  </table>
              </td>

              <td>
                  <b>Hobbies</b>
                  <ul>
                      <li>Reading</li>
                      <li>Learning</li>
                      <li>Coding</li>
                  </ul>
              </td>

          </tr>

      </table>

  </body>

  </html>        
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Create a table using HTML that shows employee data. Use ROWSPAN to merge rows for repeated departments and COLSPAN for header alignment.

                    
  <!DOCTYPE html>
  <html>

  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Employee Table | DEEPAKRAJTech</title>
  </head>

  <body>

    <h2 align="center">Employee Details</h2>

    <table border="1" cellpadding="5" cellspacing="0" width="50%" align="center">

      <tr>
        <th colspan="3">Employee Information</th>
      </tr>

      <tr>
        <th>Department</th>
        <th>Employee Name</th>
        <th>Salary</th>
      </tr>

      <tr>
        <td rowspan="2">IT</td>
        <td>Ravi</td>
        <td>30000</td>
      </tr>

      <tr>
        <td>Amit</td>
        <td>32000</td>
      </tr>

      <tr>
        <td rowspan="2">HR</td>
        <td>Neha</td>
        <td>28000</td>
      </tr>

      <tr>
        <td>Priya</td>
        <td>29000</td>
      </tr>

    </table>

  </body>

  </html>        
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Use tables to provide layout to your HTML page describing your college infrastructure.

                    
  <!DOCTYPE html>
  <html>

  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>College Details | DEEPAKRAJTech</title>
  </head>

  <body>

    <h1 align="center">College Infrastructure</h1>
    <hr>

    <table border="1" align="center" width="50%" cellpadding="8">

      <tr>
        <th>Facility</th>
        <th>Details</th>
      </tr>

      <tr>
        <td>Class Room</td>
        <td>Clean and big class room</td>
      </tr>

      <tr>
        <td>Computer Lab</td>
        <td>Many computer with internet</td>
      </tr>

      <tr>
        <td>Library</td>
        <td>Books for all students</td>
      </tr>

      <tr>
        <td>Play Ground</td>
        <td>Place for games</td>
      </tr>

    </table>

  </body>

  </html>        
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Create an HTML document with the following lists:
(a) An ordered list of your top 3 favorite books.
(b) An unordered list of your hobbies.
(c) A definition list for some common HTML tags (like <h1>, <p>, etc.).

                    
  <!DOCTYPE html>
  <html>

  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>HTML List | DEEPAKRAJTech</title>
  </head>

  <body>

    <h1>My 3 Favorite Books</h1>
    <ol>
      <li>HTML Book</li>
      <li>CSS Book</li>
      <li>JavaScript Book</li>
    </ol>

    <h1>My Hobbies</h1>
    <ul>
      <li>Teaching</li>
      <li>Reading</li>
      <li>Coding</li>
    </ul>

    <h1>HTML Tags</h1>
    <dl>
      <dt>&lt;h1&gt;</dt>
      <dd>Main Heading Tag</dd>

      <dt>&lt;p&gt;</dt>
      <dd>Paragraph Tag</dd>

      <dt>&lt;br&gt;</dt>
      <dd>Line Break Tag</dd>
    </dl>

  </body>

  </html>        
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Use JavaScript to create a digital stopwatch with Start, Stop, and Reset buttons.

                    
  <!DOCTYPE html>
  <html>

  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Digital Stopwatch | DEEPAKRAJTech</title>
      <style>
          body {
              font-family: sans-serif;
              font-size: 32px;
          }

          button {
              font-size: 32px;
          }
      </style>
  </head>

  <body>
      <center>
          <h2>Digital Stopwatch</h2>
          <hr>
          <h1 id="time">00 : 00 : 00</h1>

          <button onclick="start()">Start</button>
          <button onclick="stop()">Stop</button>
          <button onclick="reset()">Reset</button>
      </center>

      <script>
          var h = 0, m = 0, s = 0;
          var timer = null;

          function start() {
              if (timer == null) {
                  timer = setInterval(run, 1000);
              }
          }

          function run() {
              s++;

              if (s == 60) {
                  s = 0;
                  m++;
              }

              if (m == 60) {
                  m = 0;
                  h++;
              }

              document.getElementById("time").innerHTML =
                  (h < 10 ? "0" + h : h) + " : " +
                  (m < 10 ? "0" + m : m) + " : " +
                  (s < 10 ? "0" + s : s);
          }

          function stop() {
              clearInterval(timer);
              timer = null;
          }

          function reset() {
              clearInterval(timer);
              timer = null;
              h = 0; m = 0; s = 0;
              document.getElementById("time").innerHTML = "00 : 00 : 00";
          }
      </script>
  </body>

  </html>         
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Write a program to Create a Table in HTML.

                    
  <!DOCTYPE html>
  <html>

  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Create a Table in HTML | DEEPAKRAJTech</title>
  </head>

  <body>

      <table border="1" width="600" height="400" align="center">
                      
          <caption><b>Student Course Fee Details</b></caption>

          <thead>
              <tr>
                  <th>Name</th>
                  <th>Course</th>
                  <th>Fee</th>
              </tr>
          </thead>

          <tbody>
              <tr>
                  <td>Rahul Kumar</td>
                  <td>HTML</td>
                  <td>1500</td>
              </tr>
              <tr>
                  <td>Shyam Kumar</td>
                  <td>CSS</td>
                  <td>2000</td>
              </tr>
              <tr>
                  <td>Ram Kumar</td>
                  <td>JavaScript</td>
                  <td>3000</td>
              </tr>
          </tbody>

          <tfoot>
              <tr>
                  <th>Total</th>
                  <th>3</th>
                  <th>6500</th>
              </tr>
          </tfoot>

      </table>

  </body>

  </html>          
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Write HTML code to demonstrate the following anchor tag behaviors. Create a hyperlink that opens a .pdf file in a new tab. Create a hyperlink that opens a downloadable .docx file in the same window. Jump from the top of the page to a specific section titled โ€œContact Usโ€. Jump from โ€œContact Usโ€ back to the top.

                    
  <!DOCTYPE html>
  <html>
  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Anchor Tag Behaviors</title>
  </head>
  <body>
      <body>
      <h1 id="top">Home</h1>
      <hr>
      <a href="#Contact">Go to Contact Us</a>
      <hr><br>
      <a href="mypdf.pdf" target="_blank">Opens PDF New Tab</a>
      <hr><br>
      <a href="mydoc.docx" download>Downloadable Docx File</a>
      <hr>
      <h1 id="Contact">Contact Us</h1>
      <hr>
      <a href="#top">Go To Top</a>
  </body>
  </body>
  </html>              
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Create an HTML file with three buttons. When each button is clicked, it displays a different quote using JavaScript.

                    
  <!DOCTYPE html>
  <html>

  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Displays a different Quote using JavaScript</title>
  </head>

  <body>
      <center>
          <button onclick="document.getElementById('demo').innerHTML='Small steps every day lead to big success'">
              Show Quote 1
          </button>

          <button onclick="document.getElementById('demo').innerHTML='Learn today, lead tomorrow'">
              Show Quote 2
          </button>

          <button onclick="document.getElementById('demo').innerHTML='Consistency beats talent'">
              Show Quote 3
          </button>

          <h1 id="demo"></h1>
      </center>
  </body>

  </html>              
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Create an HTML page containing the following polynomial expression.

                    
  <!DOCTYPE html>
  <html>
  
  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Polynomial Expression | DEEPAKRAJTech</title>
  </head>
  
  <body>
      <h2>Polynomial Expression</h2>
  
      <p>
          4x<sup>3</sup> + 3x<sup>2</sup> - 2x + 7
      </p>
  </body>
  
  </html>                      
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Design a HTML page to display a picture. The picture should be removed from the screen after a mouse click on the picture.

                    
  <!DOCTYPE html>
  <html>
  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Click to Remove Picture | DEEPAKRAJTech</title>
  </head>
  <body>
      <center>
          <h1>Click to Remove Picture</h1>
          <img src="https://picsum.photos/300" alt="Technology" border="1" onclick="this.style.display='none';" style="cursor: pointer;  ">
      </center>
  </body>
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Write a HTML page to print Hello world in bold & Italic Form.

                    
  <!DOCTYPE html>
  <html lang="en">
  <head>
      <meta charset="UTF-8">
      <title>Hello World Bold & Italic</title>
  </head>
  <body>
      <b><i>Hello world</i></b>
  </body>
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Create an html page with red background with a message โ€œwarningโ€ in large size blinking. Add scrolling text โ€œread the messageโ€ below it.

                    
  <!DOCTYPE html>
  <html>
  <head>
      <title>Warning Page | DEEPAKRAJTech</title>
      <style>
          body {
              background-color: red;
              color: white;
              text-align: center;
              margin-top: 100px;
              font-family: Arial, sans-serif;
          }

          .blinking {
              font-size: 80px;
              font-weight: bold;
              animation: blink 1s step-start infinite;
          }

          @keyframes blink {
              50% {
                  opacity: 0;
              }
          }

          marquee {
              font-size: 30px;
              margin-top: 50px;
          }
      </style>
  </head>
  <body>

      <div class="blinking">WARNING</div>

      <marquee behavior="scroll" direction="left">Read the message</marquee>

  </body>
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Write a HTML code to generate following output

table-layout

                    
  <!DOCTYPE html>
  <html>

  <head>
      <title>HTML Layout Frame | DEEPAKRAJTech</title>
      <style>
          table {
              border-collapse: collapse;
              font-family: sans-serif;
              font-size: 22px;
          }

          table, th, td {
              border: 4px solid white;
          }

          .blinking {
              animation: blink-text 1s step-start infinite;
          }

          @keyframes blink-text {
              50% {
                  opacity: 0;
              }
          }
      </style>
  </head>

  <body>
      <table width="100%" cellpadding="16">
          <tr bgcolor="#f97316">
              <th colspan="3">
                  <p>
                      Name : DEEPAK RAJ Mishra, Address : Sultanpur Uttar Pradesh India
                      228001
                  </p>
              </th>
          </tr>
          <tr bgcolor="#ffe5e0">
              <td>
                  <h3>Qualification</h3>
                  <ul>
                      <li>ADCA</li>
                      <li>CCC</li>
                      <li>BCA</li>
                      <li>O Level</li>
                      <li>A Level</li>
                  </ul>
              </td>
              <td colspan="2">
                  <h3>Favorite Website</h3>
                  <ul>
                      <li><a href="https://deepakrajtech.com">DEEPAKRAJTech</a></li>
                      <li>
                          <a href="https://www.youtube.com/@deepakrajtech">YouTube</a>
                      </li>
                      <li>
                          <a href="https://www.instagram.com/deepakrajtech/">Instagram</a>
                      </li>
                      <li>
                          <a href="https://www.facebook.com/deepakrajtech/">Facebook</a>
                      </li>
                      <li><a href="https://www.google.com/deepakrajtech/">Google</a></li>
                  </ul>
              </td>
          </tr>
          <tr align="center" bgcolor="#fff0eb">
              <td width="33%">
                  <marquee><b>DEEPAKRAJTech | BCA | NIELIT O Level | Follow @deepakrajtech for
                          more updates!</b></marquee>
              </td>
              <td width="33%">
                  <p class="blinking"><b>Subscribe to DEEPAKRAJTech</b></p>
              </td>
              <td width="34%">
                  <img src="https://picsum.photos/150" alt="Technology" />
              </td>
          </tr>
      </table>
  </body>

  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Create an html page containing the polynomial expression as follows:
a0 + a1x + a2x2 + a3x3

                    
  <!DOCTYPE html>
  <html>
  <head>
    <meta charset="UTF-8">
    <title>Polynomial Expression | DEEPAKRAJTech</title>
    <style>
     p{
      font-family: sans-serif;
      font-size: 48px;
      text-align: center;
     }
    </style>
  </head>
  <body>
    <p>
     a<sup>0</sup> + a<sup>1</sup> x + a<sup>2</sup> x<sup>2 </sup> + a<sup>3</  sup> x<sup>3</sup>
    </p>
  </body>
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Create an html page with 7 separate lines in different colors. State color of each line in its text.

                    
  <!DOCTYPE html>
  <html>
  <head>
    <meta charset="UTF-8">
    <title>Colorful Lines | DEEPAKRAJTech</title>
    <style>
      body {
        font-size: 22px;
        font-family: sans-serif;
        text-align: center;
        background-color: black;
      }
      hr { 
          height: 4px;
      }
    </style>
  </head>
  <body>

    <p style="color: red;">This line is red.</p>
    <hr color="red">
    
    <p style="color: blue;">This line is blue.</p>
    <hr color="blue">
    
    <p style="color: green;">This line is green.</p>
    <hr color="green">
    
    <p style="color: orange;">This line is orange.</p>
    <hr color="orange">
    
    <p style="color: purple;">This line is purple.</p>
    <hr color="purple">
    
    <p style="color: brown;">This line is brown.</p>
    <hr color="brown">
    
    <p style="color: yellow;">This line is yellow.</p>
    <hr color="yellow">

  </body>
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Create an html page with following specifications Title should be about my City. Place your City name at the top of the page in large text and in blue color. Add names of landmarks in your city each in a different color, style and typeface. One of the landmark, your college name should be blinking. Add scrolling text with a message of your choice

                    
  <!DOCTYPE html>
  <html>
  <head>
      <meta charset="UTF-8">
      <title>About My City - Sultanpur</title>
      <style>
          body {
              background-color: #f9f9f9;
              font-family: Arial, sans-serif;
              padding: 30px;
          }

          h1 {
              color: blue;
              font-size: 48px;
              text-align: center;
          }

          .landmark1 {
              color: magenta;
              font-family: monospace;
              font-size: 24px;
          }

          .landmark2 {
              color: green;
              font-family: cursive;
              font-style: italic;
              font-size: 24px;
          }

          .landmark3 {
              color: purple;
              font-family: 'Times New Roman', Times, serif;
              text-decoration: underline;
              font-size: 24px;
          }

          .blinking {
              color: red;
              font-size: 24px;
              font-weight: bold;
              animation: blink 1s linear infinite;
          }

          @keyframes blink {
              50% {
                  opacity: 0;
              }
          }

          marquee {
              margin-top: 40px;
              font-size: 20px;
              color: darkblue;
          }
      </style>
  </head>
  <body>
      <h1>Sultanpur</h1>
      <hr>
      <p class="landmark1">1. Paarijaat Tree</p>
      <p class="landmark2">2. Bijethua Mahaviran Temple</p>
      <p class="landmark3">3. Sitakund</p>
      <p class="blinking">Disha Computer Education</p>
      <marquee>Welcome to Sultanpur! A city of dreams and diversity.</marquee>
  </body>
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Write HTML Code to demonstrate the use of Anchor Tag for the Following: -
1. Creating a web link that opens in a new window.
2. Creating a web link that opens in the same window.
3. C Reference within the same html document.
4. Reference to some image.
5. Making an image a hyperlink to display second image

                    
  <!DOCTYPE html>
  <head>
      <meta charset="UTF-8">
      <title>Anchor Tag Demo | DEEPAKRAJTech</title>
  </head>
  <body>

      <h1 id="top">HTML Anchor Tag Examples</h1>
      <hr>

      <!-- 1. Web link that opens in a new window -->
      <p><strong>1. Link that opens in a new tab/window:</strong><br>
      <a href="https://www.google.com" target="_blank">Open Google in New Window</a></p>

      <!-- 2. Web link that opens in the same window -->
      <p><strong>2. Link that opens in the same window:</strong><br>
      <a href="https://www.google.com" target="_self">Open Google in Same Window</a></p>

      <!-- 3. C Reference within the same document -->
      <p><strong>3. Jump to top of the same page:</strong><br>
      <a href="#top">Go to Top C</a></p>

      <!-- 4. Reference to some image -->
      <p><strong>4. Clickable link to an image:</strong><br>
      <a href="krishna_2.jpg" target="_blank">Click here to view image1.jpg</a></p>

      <!-- 5. Making an image a hyperlink to display second image -->
      <p><strong>5. Clickable image that opens another image:</strong><br>
      <a href="krishna_2.jpg" target="_blank">
          <img src="krishna_1.jpg" alt="Click to view another image" width="200">
      </a></p>

  </body>
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Write html code to generate following output.
1.Coffee
2.Tea
3.Black Tea
4.Green Tea
5.Milk

                    
  <!DOCTYPE html>
  <html>

  <head>
      <title>Ordered List Example | DEEPAKRAJTech</title>
  </head>

  <body>

      <h2>My Favorite Drinks</h2>

      <ol>
          <li>Coffee</li>
          <li>Tea</li>
          <li>Black Tea</li>
          <li>Green Tea</li>
          <li>Milk</li>
      </ol>

  </body>

  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Write a HTML program to design a form which should allow to enter your personal data ( Hint: make use of text field, password field, e-mail, lists, radio buttons, checkboxes, submit button)

                    
  <!DOCTYPE html>
  <html>
  <head>
    <title>Personal Data Form | DEEPAKRAJTech</title>
  </head>
  <body>
    <h2>Personal Information Form</h2>
    <form action="#" method="post">
                      
      <label for="name">Full Name:</label><br>
      <input type="text" id="name" name="fullname" required><br><br>

      <label for="pwd">Password:</label><br>
      <input type="password" id="pwd" name="password" required><br><br>

      <label for="email">Email ID:</label><br>
      <input type="email" id="email" name="email" required><br><br>

      <label for="gender">Gender:</label><br>
      <input type="radio" id="male" name="gender" value="Male">
      <label for="male">Male</label>
      <input type="radio" id="female" name="gender" value="Female">
      <label for="female">Female</label><br><br>

      <label for="dob">Date of Birth:</label><br>
      <input type="date" id="dob" name="dob"><br><br>

      <label for="city">Select City:</label><br>
      <select id="city" name="city">
        <option value="">--Select--</option>
        <option value="Delhi">Delhi</option>
        <option value="Mumbai">Mumbai</option>
        <option value="Chennai">Chennai</option>
        <option value="Kolkata">Kolkata</option>
      </select><br><br>

      <label>Hobbies:</label><br>
      <input type="checkbox" name="hobby" value="Reading">Reading
      <input type="checkbox" name="hobby" value="Traveling">Traveling
      <input type="checkbox" name="hobby" value="Coding">Coding<br><br>

      <input type="submit" value="Submit">
      <input type="reset" value="Reset">

    </form>
  </body>
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube
M2-R5.1 O Level Practical ๐Ÿ“… Jan 2026

Create an HTML file (e.g. first_page.html) that specifies a page that contains a heading and two paragraphs of text. As the texts in the heading and paragraphs you can use any texts you like

                    
  <!DOCTYPE html>
  <html lang="en">
  <head>
      <meta charset="UTF-8">
      <title>DEEPAKRAJTech | My First Web Page</title>
  </head>
  <body>
      <h1>Welcome to My First Web Page</h1>

      <p>This is my very first paragraph in HTML. I'm learning how to create web 
      pages using HTML and it's really exciting!</p>

      <p>HTML stands for HyperText Markup Language and it's used to design the 
      structure of web pages on the internet.</p>
  </body>
  </html>
                    
                    

โ–ถ๏ธ Watch Now on YouTube