Source Code
HTML CSS JavaScript 02 Feb 2026
HTML CSS JavaScript 30 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
HTML CSS JavaScript 30 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
HTML CSS JavaScript 29 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
HTML CSS JavaScript 29 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
HTML CSS JavaScript 28 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
HTML CSS JavaScript 28 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
HTML CSS JavaScript 27 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
HTML CSS JavaScript 27 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
HTML CSS JavaScript 26 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
HTML CSS JavaScript 26 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
HTML CSS JavaScript 25 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
HTML CSS JavaScript 25 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
HTML CSS JavaScript 24 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
HTML CSS JavaScript 24 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
HTML CSS JavaScript 23 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
HTML CSS JavaScript 23 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
HTML CSS JavaScript 22 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
HTML CSS JavaScript 22 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
HTML JavaScript 21 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
HTML 21 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
HTML JavaScript 19 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
HTML JavaScript 19 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
HTML JavaScript 18 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
HTML JavaScript 16 Aug 2025

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
HTML 13 Aug 2025

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
HTML CSS 4 Aug 2025

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
HTML CSS 1 Aug 2025

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
HTML 31 Jul 2025

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
HTML CSS 30 Jul 2025

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
HTML CSS 26 Jul 2025

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
HTML 25 Jul 2025

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
HTML 24 Jul 2025

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
HTML 24 Jul 2025

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
HTML 23 Jul 2025

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