Posts

Showing posts from June, 2021

VALDATION IN JAVASCRIPT

 <!DOCTYPE html> <html> </html>  <head>     <title>         Simple HTML webpage with CSS style     </title> <script> function validation() { var name=document.form["regform"]["name"]; if(name.value==null||name.value=="") {  alert("name cant be blank");  return false; } </script>       <!-- Stylesheet of web page -->     <style>         body {             text-align: center;         }           h1 {             color: green;         }     </style> </head>   <body>     <h1><form name="regform" onsubmit="return validation()" method="post"> name:<input type="text" name="name"> <input type="submit"> </form></h1>       <p>A computer science portal for geeks</p> </body>   </html>

IMAGE TAG IN HTML

 <html> <body> <p>this is a<abbr title="timecomputers">tc</abbr></p> <form name="registration name" > firstname:<input type="text" id="firstname" name="firstname" size="10"> file:<input type="file" id="img" name="img" accept="tejanth.jpg/*"> <input type="submit"> </body> </html>

SMALL CODE SNIPPET IN CSS

 <html> <head> <style> body {   background-color:pink;   color:blue; } h2{   background-color: black;   color:green; } </style> </head> <body> <h2>Hai</h2> </body> </html>

REGISTRATION FORM IN HTML

 <html> <body> <marquee acrollamount="1"><b>THE ELITE</b></marquee><br><br> <h style="border:2px solid tomato;"> <b>REGISTRATION DETAILS:</b></h><br><br> <form >     first name: <input type="text"name="fname"><br>  file: <input type="file"name="file"><br> <input type="submit"> <label for="lname">Last name:</label><br> <input type="text" id="lname"name="lname"><br> <label for="mobile">Mobile number:</label><br> <input type="digits" id="mobile"name="mobile"><br> <label for="email">email:</label><br> <input type="text" id="email"name="email"><br> </form> choose your gender:<

FUNCTIONS IN JAVASCRIPT

 <html> <head> teju's head </head> <script> var b,t; function fun(b,t) { return b*t; } </script> <body> var x=fun(5,6); alert("x is "+x); </body> </html>

A SIMPLE HTML PAGE

 <!DOCTYPE html> <html> <body> <pre>  tejanth is a good boy  persuing btech  in swarnandhra college of engineering in narsapur <pre> <p>time &nbsp; computers</p> <p>&copy; time computers</p> </body> <head> <style> body {   background-image:       url('https://pixteller.com/templates/custom-visuals/simple-background-backgrounds-passion-id1585819');       background-repeat: no-repeat; } </body> </style> </head> <body>My First Webpage</body><br></br><br></br> <a  href ="http://google.com"  title="gotogoogle"> google</a><br></br><br></br> TEAM MEMBERS:<select name="team members" id="team members"><option>members</option>+ <option>TEJANTH</option><option>BINDU</option><option>khyathi</option><option>SHANMUKHI</opti

STYLE TAG IN HTML

 <html> <body> <p style="color:green;font-size=24px;>hello"</p> </body> </html>

UPCLICK CODE IN HTML

 <html> <body> <input type="file" name="newfile">  <input type="color" name="upclick" value="green">upclick <input type="color" name="downclick" value=<"red">downclick </body> </html>