adc

clicks

 

HTML

Before we start writing code first, we need to create a primary structure of the HTML document, so that the browser can understand and start working. The basic HTML structure looks like the following.

After writing the primary structure of the HTML document, you will also write the tags and content you need. After that, you can see the output in your browser. We know that HTML Sudu Mae is used for exposing content in a basic format. To complete our content we need to use CSS, which is an HTML insert and it creates an engaging user interface


<!DOCTYPE html>

<html>

<head>

                <title>Create Reaponsive Fogin From</title>

                <link rel="stylesheet" type="text/css" href="style.css">

</head>

<body>

 

<div class="bging">

<div class="centerdiv">

<img src="avater.png" id="avater">

<h2>User Login</h2>

<form>

<div>

<input type="text" name="" class="inputbox" placeholder="Username">

</div><br>

<div>

<input type="password" name="" class="inputbox" placeholder="password">

</div>

<br>

<button type="submit">Login</button>

</form>  <br>

<div>

<H4>forget password</H4>

</div> 

</div>

</body>

</html>

 CSS

Now, we have time to improve the HTML content, for that, we need to add CSS to the HTML file. CSS can be added to HTML documents in a total of three ways, here we are using outside CSS design using CSS will arrive here after typing and see the output in your browser.

*{

margin: 0;

padding: 0;

}

.bging{

width: 100%;

height: 100vh;

background-image: linear-gradient(27deg,#000 50%, #fff 50%);

}

.centerdiv{

width: 350px;

height: 400px;

position: absolute;

top: 50%;

left: 50%;

background-color: green;

transform-translate:(-50%, -50%);

background-image: linear-gradient(27deg,#fff 69%, #000 31%);

box-sizing: border-box;

}

 

#avater{

width: 120px;

height: 120px;

border-radius: 50%;

position: relative;

top: -60px;

left: 28%;

}

h2{

text-align:center;

color: green;

text-transform: uppercase;

font-size: 2em;

word-spacing: 10px;

margin-top: -50px;

margin-bottom: 50px;

text-shadow: -2px 2px 1px #0a84a6;

}

.inputbox{

width:80%;

height: 30px;

display: block;

font-weight: bold;

margin: auto;

padding: 0 10px;

box-sizing: border-box;

}

 

::placeholder{

letter-spacing: 2px;

color: black;

}

 

button{

width:80%;

height: 30px;

display: block;

margin: auto;

color: black;

background-color: #0a84c6;

font-weight: bold;

font-size: 1em;

}

h4{

height: calc(100% -40%);

line-height: 30px;

width: 75%;

display: block;

margin: auto;

color: black;

background-color: dodgerblue;

text-transform: uppercase;

font-size: 0.7em;

text-align: right;

padding-right: 20px;

}

 



 


Reviewed by easycoding on December 14, 2020 Rating: 5

No comments:

Powered by Blogger.