導航:首頁 > 萬維百科 > html網頁設計個人簡介實例代碼

html網頁設計個人簡介實例代碼

發布時間:2020-09-26 01:58:25

1、html網頁設計:一個簡單的登錄界面代碼!

是這樣的效果嗎?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>3</title>
<script>
function r()
{

var username=document.getElementById("username");

var pass=document.getElementById("password");
if(username.value=="")
{
alert("請輸入用戶名");
username.focus();
return;
}
if(pass.value=="")
{
alert("請輸入密碼");
return;
}
return true;
}
</script>
</head>
<body>
<form>
<table width="350" bgcolor="#ccffcc" style="border-color" border="1">
<tr align=center>
<td>用戶名</td><td><input type="text" name="username" id="username"></td>
</tr>
<tr align=center><td>密 碼</td><td><input type="password" name="password" id="password"></td></tr>
<tr align=center><td>驗證碼</td><td><input type="text" name="yanzheng"></td></tr>
<tr align=center><td colspan="2"><input type="button" value="登 錄" onclick="r();"/>     <input type="reset" value="重 置"/></td></tr>

</table>
</form>
</body>
</html>

2、利用HTML語言設計個人簡歷的網頁

用dreamweaver吧。可視化比較強。你就東拼西湊弄完就可以了。

或者如果你嫌麻煩,另外一個辦法,用word寫好簡歷(word應該會用吧),然後另存為html格式的就可以了。

3、用html設計一個自我介紹的靜態網頁

你可以把你們老師的要求發出來,根據你們老師的要求來做,一般來說也還是很簡單的。

4、html網頁設計:一個簡單的登錄界面代碼!

<input
type='button'
text='登陸'
onclick='return
checknull()'>你說的要能識別是否輸入了用戶名和密碼!需要用腳本來驗證
<script>
function
checknull()
{
var
a=document.getElementById('用戶名文本框ID').text;
var
b=document.getElementById('密碼文本框ID').text;
if(a.length>0&&b.length)
return
true;
else
return
false;
}
<script>

與html網頁設計個人簡介實例代碼相關的知識