1、網頁代碼到底怎麼寫啊?
先入門:打開記事本,把下面這行代碼復制進去
<html><title>這里是標題</title><body>這里是正文</body></html>
然後「文件內|另存容為」,保存到桌面,文件名是"abc.htm",再到桌面上看看結果?
如果上面的成功了,再到百度搜「HTML語法」,你會學到很多東西的。
2、像這樣一個簡單網頁製作的代碼怎麼寫?(框內為藍色)
寫個<div>,位置自己調一下左右距離。之後div裡面的屬性背景選藍色
之後打字的話 通知字型大小、加粗、字體
之後下面寫個列表 有序列表或者無序列表都可以
3、像這樣的一個簡單網頁製作的代碼怎麼寫?謝謝大神
直接使用這個軟體 Dreamweaver 做這個網頁了呀
4、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>
5、網頁設計html網站代碼
6、網頁設計請教,這個結構的html和css代碼怎麼寫?如圖,本人新手,請寫出完整代碼,顏色隨意,謝謝!
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<div class="main">
<div class="a"></div>
<div class="b">
<div class="b1"></div>
<div class="b2"></div>
</div>
<div class="c"></div>
</div>
<style>
.main{
width:900px;
height:600px;
}
.a,.b,.c{
float:left;
}
.a{
width:300px;
height:600px;
background-color:yellow;
}
.b{
width:300px;
height:600px;
}
.b1{
display:block;
width:300px;
height:300px;
background-color:green;
}
.b2{
width:300px;
height:300px;
background-color:black;
}
.c{
width:300px;
height:600px;
background-color:red;
}
</style>
</body>
</html>