Code for Log-In Form Using HTML and CSS.

Image
<html> <head> <style> body { margin:0; padding:0; background-color:grey; } #a { width:300px; padding:40px; position: absolute; top:50%; left:50%; transform: translate(-50%,-50%); background:black; text-align: center; color:white; } #a input[type="text"], #a input[type="password"] { border:0; background-color: none; display:block; margin:20px auto; text-align:center; border:2px solid blue; padding:14px 10px; width:200px; outline:none; color:black; border-radius: 24px; transition:0.25s; } #a input[type="text"]:focus,#a input[type="password"]:focus { width:280px; border-color:green; } #a input[type="submit"] { border:0; background-color: none; display:block; margin:20px auto; text-align:center; border:2px solid green; padding:14px 40px; width:200px; outline:none; color:blue; border-radius: 24px; transition:0.25s; cursor: pointer; } #a input[type="submi

Code for Fibonacci Series using JavaScript

Fibonacci Series = 0 1 1 2 3 5 8 13 21 34 55



<html>
          <head>
                    <script>
                               let a,b=1,c,d=0,e;
                               e=prompt("enter number of terms","");
                               document.write("Fibonacci Series = ");
                                for(a=0;a<e;a++)
                                      {
                                           document.write(d);
                                           c=d+b;
                                           d=b;
                                           b=c;

                                           document.write( " ");
                                      }
                      </script>
           </head>
</html>

Comments

Post a Comment

Popular posts from this blog

Code for Log-In Form Using HTML and CSS.

Check Input String in form xCy where x is string and y is Reverse of x

Code For Check Balance Parentheses using C-Programming

TRIANGLE Using JavaScript