首页前端开发HTML163邮箱 html代码

163邮箱 html代码

时间2023-07-09 15:02:01发布访客分类HTML浏览553
导读:你好,今天我们来讲一下163邮箱HTML代码!<!DOCTYPE html><html><head><meta charset="UTF-8"><title>163邮箱</t...

你好,今天我们来讲一下163邮箱HTML代码!

!DOCTYPE html>
    html>
    head>
    meta charset="UTF-8">
    title>
    163邮箱/title>
    /head>
    body>
    form action="http://mail.163.com/" method="post">
    label for="username">
    用户名:/label>
    input type="text" name="username" id="username">
    br>
    label for="password">
    密  码:/label>
    input type="password" name="password" id="password">
    br>
    input type="submit" value="登录">
    /form>
    /body>
    /html>
    

以上是一个基本的163邮箱登录页面的HTML代码。代码中使用了form标签、label标签、input标签等常见的HTML标签,其中form标签用于提交数据,label标签用于标记输入框的标题,input标签用于创建文本框和提交按钮。需要注意的是,登录地址应该替换为你自己的163邮箱地址。

如果需要进行样式美化,可以在head标签中添加style标签,定义样式。

style>
body {
    background-color: #f2f2f2;
    font-family: Arial, sans-serif;
}
form {
    width: 300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    border-radius: 5px;
}
label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    margin-bottom: 20px;
}
input[type="submit"] {
    background-color: #008cff;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 3px;
    font-size: 16px;
    cursor: pointer;
}
input[type="submit"]:hover {
    background-color: #0069c0;
}
    /style>
    

以上是对login页面进行基本样式美化的CSS代码,其中对表单元素进行了样式设置。

总之,HTML和CSS标签的灵活使用,可以让我们的邮箱登录页面变得更加美观且易于使用。

声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!


若转载请注明出处: 163邮箱 html代码
本文地址: https://pptw.com/jishu/298902.html
123的个十百位代码html html5css的亮度设置

游客 回复需填写必要信息