Posts

Showing posts from January, 2025

Html

 Program 1: HTML Headings <!DOCTYPE html> <html> <body> <h1>Heading 1</h1> <h2>Heading 2</h2> <h3>Heading 3</h3> <h4>Heading 4</h4> <h5>Heading 5</h5> <h6>Heading 6</h6> </body> </html> HTML Paragraphs <!DOCTYPE html> <html> <body> <p> I love my country and I am proud of its rich and varied heritage. I shall always strive to be worthy of it. I shall give my parents, teachers and all elders respect and treat everyone with courtesy..</p> </body> </html> HTML Formatting Elements <b> - Bold text <strong> - Important text <i> - Italic text <em> - Emphasized text <mark> - Marked text <small> - Smaller text <del> - Deleted text <ins> - Inserted text <sub> - Subscript text <sup> - Superscript text Ex: <!DOCTYPE html> <html> <...

1-5

  1,2)<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication8.WebForm1" %> <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>Static Web Page</title>     <style>         body {             font-family: Arial, sans-serif;             margin: 0;             padding: 0;             background-color: #f4f4f4;         }         header {             background-color: #333;             color: white;             padding: 20px;             text-align: center;...

.Net

  Client side <html> <head>     <title>Registration Form</title>     <script>         function validateForm() {             var name = document.getElementById('<%= txtName.ClientID %>').value.trim();             var email = document.getElementById('<%= txtEmail.ClientID %>').value.trim();             var male = document.getElementById('<%= rbtmale.ClientID %>').checked;             var female = document.getElementById('<%= rbtfemale.ClientID %>').checked;             var country = document.getElementById('<%= ddcountry.ClientID %>').value;             if (name === "") {                 alert("Name is required.");                ...