<html> <head> <title></title> </head> <body> <h1>登录页面</h1> @using (Html.BeginForm("SignIn", "Part3", FormMethod.Post, new { id = "MyForm", name = "MyForm" })) { <p>用户名:@Html.TextBox("userName","",new{onblur="CheckUserName()",placeholder="请输入您的账号"})</p> <p>密码:@Html.TextBox("password","",new{onblur="CheckPassword()",placeholder="请输入您的密码"})</p> <input type="button" class="btn-success" value="登录" /> } </body> </html>
时间: 2023-07-19 14:37:55 浏览: 48
这是一个HTML页面,包含一个登录表单。表单使用了ASP.NET MVC的语法,通过Html.BeginForm方法生成。表单的目标控制器为Part3中的SignIn方法,提交方式为POST。表单包含一个用户名输入框和一个密码输入框,以及一个登录按钮。在用户名输入框和密码输入框中,都有一个onblur事件,分别调用了CheckUserName和CheckPassword方法。同时,用户名输入框和密码输入框都有一个placeholder属性,用于在输入框中显示提示信息。
相关问题
<html> <head><title>400 Bad Request</title></head> <body> <center><h1>400 Bad Request</h1></center>
以下是一个示例的HTML代码,展示了一个400 Bad Request错误页面:
```html
<!DOCTYPE html>
<html>
<head>
<title>400 Bad Request</title>
</head>
<body>
<center>
<h1>400 Bad Request</h1>
</center>
</body>
</html>
```
这段代码会在浏览器中显示一个标题为"400 Bad Request"的页面。页面内容居中显示,使用`<h1>`标签来定义标题。
<body></body>
<body></body>是HTML中的标签,用于定义HTML文档的主体部分。在<body></body>标签中,可以包含网页的内容,例如文本、图像、链接等。以下是一个简单的例子:
```html
<!DOCTYPE html>
<html>
<head>
<title>My Webpage</title>
</head>
<body>
<h1>Welcome to My Webpage</h1>
<p>This is the main content of my webpage.</p>
<img src="image.jpg" alt="My Image">
<a href="https://www.example.com">Visit Example Website</a>
</body>
</html>
```
在上面的例子中,<body></body>标签包含了网页的主要内容,包括一个标题(<h1>标签)、一个段落(<p>标签)、一张图片(<img>标签)和一个链接(<a>标签)。