The first step of html login and registration

On the road of web Security~~~
After learning C language and completing course design, HTML (Hypertext Markup Language) is studied. The purpose of learning html is to understand the structure of those web pages, how his head is, and body, etc. ~ ~ although it's very simple, HTML can't be ignored. The most basic syntax and some common attributes can be seen at a glance, but you can also ask Du Niang about it. Under the leadership of Mr. Zheng, we learned the basic knowledge of HTML in just one hour (Xin Kui learned some in advance, otherwise we could not understand anything). Then we wrote a pure static interface of HTML for login and a registration interface. It includes hypertext link, text, radio, submit attribute of the form, etc. ~ log in first, and then register the screenshot of the interface

a.png

b.png

The interface is barely able to see it. It has been modified three or four times. At the beginning, I just put every element in < tr > < tr > < tr >, which results in the uneven picture, which is definitely unbearable for Virgo, so it's ok to put them in < td > < td > < td >, which may be super small case for some web front-end tycoons, but for me, I can only touch them slowly Suo, in fact, if you understand some of them and then look at your previous code, you will laugh at your QAQ, hahaha~~~
The code is as follows

Registration interface code

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>register</title>
</head>
<body>
    
    <h1 align="center">Registration interface</h1>
    <div align="center">
        <table align="center" border="0">
        <form>
            <div align="right">
        <tr>
            <td>use&nbsp;household&nbsp;name:</td>  
            <td><input type="text" name=""></td>
        </tr>
        <tr>
            <td>dense&nbsp;&nbsp;&nbsp;code&nbsp;&nbsp;&nbsp;:</td>
            <td><input type="password" name="password"></td>
        </tr>
        <tr>
            <td>Confirm password:</td>
            <td><input type="password" name="password" align="right"></td>
        </tr>
        <tr>
            <td>mailbox:</td>
            <td><input type="text" name=""></td>
        </tr>
        <tr>
            <td>address:</td>
            <td><input type="text" name=""></td>
        </tr>
        <tr>
            <td>Student ID:</td>
            <td><input type="text" name=""></td>
        </tr>
        <tr>
            <td>class:</td>
            <td><input type="text" name=""></td>
        </tr>
        <tr>
            <td align="center" colspan="2"><input type="radio" name="sex" value="man">male
        <input type="radio" name="sex" value="women">female</td>
        </tr>
        <tr>
            <td align="center" colspan="2"><input type="submit" value="Submission"><input type="reset" name="Reset"></td>
        </tr>
        </div>
        </form>
        </table>
    </div>
</body>
</html>

Login interface code

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Login interface</title>
</head>
<body>

<div align="center">
    
    <h1>Login interface</h1>
    <form>

    <table border="0">
    <tr>
        <td>User name:</td>
        <td><input type="text" name="username"><br></td>
    </tr>
    <tr>
        <td>dense&nbsp;&nbsp;&nbsp;code:</td>
        <td><input type="password" name="password"><br></td>
    </tr>
    
    </table>
        <input type="radio" name="sex" value="male">male
        <input type="radio" name="sex" value="female">female
    <input type="submit" value="Submission">
    <a href="file:///C: / users / HP / desktop / b.html "target =" blank "> register</a>
    </form>
    </div>

</body>
</html>

However, to save the user's data, you need to build your own background and use PHP and other related knowledge, so come on, believe in yourself, the harder you work, the luckier you are_
If you want to spray at will, I will accept it. After all, novice ~ ~ ~ haha.

aa.gif

I wish the people who read this article more and more happiness~~

Keywords: Attribute PHP C

Added by simon13 on Tue, 03 Dec 2019 21:10:51 +0200