IMG-LOGO
×

Tài Liệu Môn Học

Khoá học lập trình HTML/CSS

Nhập Môn HTML

[Video] Giới thiệu về lập trình web - HTML/CSS [Video] Hướng dẫn tạo ra 1 trang web đơn giản nhất - HTML/CSS [Video] Hướng dẫn debug/test/develop trên trình duyệt web -HTML/CSS

Tìm Hiểu Thẻ HTML5

[Video] Formatting Text using Tags - html tags [Video] Creating Hyperlinks and Anchors (phần 1) - html tags [Video] Creating Hyperlinks and Anchors (phần 2) - html tags [Video] Cách dùng thẻ img và map để hiển thị hình ảnh html - HTML/CSS [Video] Tìm hiểu về đường dẫn file (path file) trong HTML/CSS

CSS

[Video] Tìm hiểu thuộc tính trong thẻ html [Video] Giới thiệu CSS & Sử dụng các thuộc tính cơ bản [Video] Hướng dẫn tách biệt CSS và HTML [Video] Xử lý Event trong CSS (:hover, :active, :link, ...) - Lập trinh HTML/CSS

Table & CSS

[Video] Tìm hiểu table trong HTML/CSS - HTML/CSS

Form & CSS

[Video] Thiết kế form trong HTML/CSS/JS [Video] Tìm hiểu tag videos, audio trong HTML/CSS/JS [Video] Bài tập - Thiết kế form gửi email - Lập trình HTML/CSS/JS

Thiết Kế Layout

[Video] Tìm hiểu Frame qua ví dụ quản lý khách sạn HTML/CSS [Video] Hướng dẫn tạo layout bằng thẻ Div căn bản [Video] Hướng dẫn thiết kế layout bằng thẻ div nâng cao (Thiết kế giao diện web gokisoft)




Trang Chủ Học HTML5 - CSS3 Bài tập - Thiết kế form gửi email - Lập trình HTML/CSS/JS

Bài tập - Thiết kế form gửi email - Lập trình HTML/CSS/JS

by GokiSoft.com - 10:47 13/12/2021 7,310 Lượt Xem



Tải Resource

Bình luận



Chia sẻ từ lớp học

hainguyen [T2008A]

Ngày viết: 21:58 14/10/2020


#EmailEditor.html


<!DOCTYPE html>
<html>
<head>
	<title>E-mail Editor</title>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
	<button class="imghelp" onclick="clickhelp()">Help</button>
    <div id="main">
    	<form action="Status.html" method="post">
    <h2>Compose e-mail message</h2>
    <div id="voic">
    	<div class="bot-1">To:</div>
    	<div class="bot-2"><input type="text" class="emaileditor" name="To"></div>
    </div>
    <div id="voic">
    	<div class="bot-1">From:</div>
    	<div class="bot-2"><input type="text" class="emaileditor" name="To"></div>
    </div>
    <div id="voic">
    	<div class="bot-1">Cc:</div>
    	<div class="bot-2"><input type="text" class="emaileditor" name="To"></div>
    </div>
    <div id="voic">
    	<div class="bot-1">Subject:</div>
    	<div class="bot-2"><input type="text" class="emaileditor" name="To"></div>
    </div>
    <div id="voic">
    	<div class="bot-1">Message:</div>
    	<div class="bot-2">
    		<textarea rows="5" class="emaileditor"></textarea>
    	</div>
    </div>
    <div id="voic">
    	<div class="bot-1"></div>
    	<div class="bot-2">
	   	<button>Senf</button>
    	<button>Cancal</button>		
    	</div>
    </div>
</form>
    </div>
    <div id="help">
    	<h2>-: E-mail Editor Help :-</h2>
    	<ul>
    		<li><b>To and Cc:</b><br/>
    			<b>To</b> and <b>Cc</b> boxes allow you to enter e-mail addresses of the recepoents to whom to message has to be sent. Recipients be able to see who else was sent the message by looking at the contents of the <b>To</b> and <b>Cc</b> boxer.
    		</li>
    		<li><b>Subject:</b><br/>
    			The <b>Subject</b> box allows you to enter meaningful summary of the message.</li>
    			<li><b>Message:</b><br/>
    				The <b>Message</b> TextArea allows you to enter the text of your message.</li>
    	</ul>
    	<div class="close" onclick="closeH()">Close</div>
    </div>
    <script type="text/javascript">
    	function clickhelp(){
    		document.getElementById('help').style.display = 'block';
    		document.getElementById('main').style.display = 'none';
    	}
    	function closeH(){
    			document.getElementById('help').style.display = 'none';
    		document.getElementById('main').style.display = 'block';
    		}
    </script>
</body>
</html>


Do Trung Duc [T2008A]

Ngày viết: 11:06 14/10/2020


#bullet.jpg


https://res.cloudinary.com/wegoup/image/upload/v1602648370/kxmt2ddmi6ugwu4k7fya.jpg


#email.css


body{
background-color: rgb(255,255,240);
padding-left: 20%
}

.textarea{
overflow: auto;
}

.imgHelp{
	cursor: help;
}

.EmailEditor{
	background-color: #FFFFDD
}

.main{
	width: 500px;
	background-color: #DDFFEE;
	padding-left: 10px;
	padding-right: 10px;
}

#help{
	position: absolute;
	height: 500px;
	width: 420px;
	top: 10px;
	background-color: #cfc;
	color: #303030;
	border: #E4E7E7 solid 2px;
}

.close{
	text-align: right;
	color: blue;
	cursor: hand;
}

ul{
	list-style-type: none;
	text-align: right;
}
li{
	padding: 2px;
	margin-right: 60px;
}

.ul_help{
	list-style-image: url(bullet.jpg);
	text-align: left;

}


#EmailEditor.html


<!DOCTYPE html>
<html>
<head>
	<title></title>
	<link rel="stylesheet" type="text/css" href="email.css">
</head>
<body>

<div class="main">
	<div>
		<b style="background-color: #DDFFEE">Compose e-email messeage</b>
		<b style="margin-left: 550px; margin-top: 0px ;background-color: #DDFFEE;"><a href="help.html">Help</a></b>
	</div>

	<form>
		<ul>
			<li>To: <input type="e-email" name="receiver" size="40px"></li>
			<li>From: <input type="e-email" name="sender" size="40px"></li>
			<li>Cc: <input type="text" name="Cc" size="40px"></li>
			<li>Sub: <input type="text" name="Sub" size="40px"></li>
			<li >Message: <input type="messeage" name="Message" style="width: 310px; height: 200px; vertical-align: top; overflow: auto"></li>
		</ul>
	</form>
	<button style="margin-left: 120px">Send</button>
	<button>Cancel</button>

</div>

</body>
</html>


#help.html


<!DOCTYPE html>
<html>
<head>
	<title>Help</title>
	<link rel="stylesheet" type="text/css" href="email.css">
</head>
<body>
	<div class="main">
		<b>E-mail Editor Help</b>
		<ul class="ul_help">
			<li>
				To and Cc:<br/>
				To and Cc boxes allow you to enter the email address of the receptients to whom to messsage has to be sent. Reciptiens will be able to see who else was sent the messasge by looking at the contents of the To and Cc boxes
			</li>

			<li>
				Subject:<br/>
				The Suject box allows you to enter meaning ful summary of the message
			</li>

			<li>
				Message:<br/>
				The Message TextArea allows you to enter the text of your message
			</li>
			<p><a href="Status.html">Close</a></p>
		</ul>

	</div>
</body>
</html>


#Help.jpg


https://res.cloudinary.com/wegoup/image/upload/v1602648370/r8oqnseodzbn2ummferb.jpg


#Status.html


<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>
<b>Your message has been successful sent</b>
</body>
</html>


Nguyên Phấn Đông [community]

Ngày viết: 20:47 13/10/2020


bai
<!DOCTYPE html>
<html>
<head>
	<title>E-mail Editor</title>
	<link rel="stylesheet" type="text/css" href="style4.css">
</head>
<body>
 <form id="main" action="#">
   <h1>Compose e-mail message</h1><br>
   <table>
   	<tr>
   		<td ><label for="to">To:</label></td>
   		<td><input type="text" name="to" value="" style="width:400px"/></td>
    </tr>
    <tr>
   		<td ><label for="form">From:</label></td>
   		<td><input type="text" name="form" value="" style="width:400px"/></td>
    </tr>
    <tr>
   		<td ><label for="Cc">Cc:</label></td>
   		<td><input type="text" name="Cc" value="" style="width:400px"/></td>
    </tr>
    <tr>
   		<td ><label for="subject">Subject:</label></td>
   		<td><input type="text" name="Subject" value="" style="width:400px"/></td>
    </tr>
    <tr>
   		<td ><label for="message">Message:</label></td>
   		<td><textarea rows="10" cols="55" name="comment" form="usrform" class="scroll" > Nhập văn bản...</textarea></td>
    </tr>
   </table> 
  <a href="status.html"> <input type="submit" name=""></a>
    <input type="submit" id="register_0" value="Canner"/>
 </form>&nbsp;&nbsp;&nbsp;&nbsp;
<div class="dropdown">
  <button id="myBtn" class="dropbtn"><img src="help.jpg"></button>
  <div id="myDropdown" class="dropdown-content">
    <h2 style="margin-left: 10px"> -: E-mail Editor Help:-</h2>
    <div style="margin-left: 60px;">
    <b><img src="bullet.jpg"> To and Cc:</b><br>
    <b>To</b> and <b>Cc</b> boxes allow you to enter the e-mail addresses of the recepients to whom to message has to be sent. Recipients will be able to see who else was sent the message by looking at the contents of the <b>To</b> and <b>Cc</b> boxes.<br>
    <b><img src="bullet.jpg"> Subject:</b><br>
    The <b>Subject</b> box allows you to enter meaningful summary of the message. <br>
    <b><img src="bullet.jpg"> Message:</b><br>
    The <b>Message</b> TextArea allow you to enter the text of your message.
</div>
<a href="" style="float: right;color: blue;cursor: hand" >close</a>
  </div>
</div>
<script>
document.getElementById("myBtn").onclick = function() {myFunction()};
function myFunction() {
  document.getElementById("myDropdown").classList.toggle("show");
}
</script>

</body>
</html>
style4.html


body{
	background-color: rgb(255,255,240);
	padding-left: 20%;
	float: left;
}
.textarea{
    scroll-behavior: auto;
    scrollbar-shadow-color: silver;
    scrollbar-arrow-color: black;
    scrollbar-face-color: gray;
}
.emaileditor{
	background-color:  #FFFFDD;
}
#main{
	width: 500px;
	background-color: #DDFFEE;
	padding-left: 10px;
	padding-right:  10px;
	text-align: center;	
	float: left;
}
.scroll{
            display:block;
            border: 1px solid black;
            padding:5px;
            margin-top:5px;
            width:390px;
            height:150px;
            overflow:scroll;
         }

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  width: 500px;
  height: 420px;
  background-color: #cfc;
	padding-left: 10px;
	padding-right:  10px;
	color: #303030;
	border: 2px solid black;
}
.clean{
	clear: all;
}
.show {display:block;}


Nguyên Phấn Đông [community]

Ngày viết: 20:47 13/10/2020


bai
<!DOCTYPE html>
<html>
<head>
	<title>E-mail Editor</title>
	<link rel="stylesheet" type="text/css" href="style4.css">
</head>
<body>
 <form id="main" action="#">
   <h1>Compose e-mail message</h1><br>
   <table>
   	<tr>
   		<td ><label for="to">To:</label></td>
   		<td><input type="text" name="to" value="" style="width:400px"/></td>
    </tr>
    <tr>
   		<td ><label for="form">From:</label></td>
   		<td><input type="text" name="form" value="" style="width:400px"/></td>
    </tr>
    <tr>
   		<td ><label for="Cc">Cc:</label></td>
   		<td><input type="text" name="Cc" value="" style="width:400px"/></td>
    </tr>
    <tr>
   		<td ><label for="subject">Subject:</label></td>
   		<td><input type="text" name="Subject" value="" style="width:400px"/></td>
    </tr>
    <tr>
   		<td ><label for="message">Message:</label></td>
   		<td><textarea rows="10" cols="55" name="comment" form="usrform" class="scroll" > Nhập văn bản...</textarea></td>
    </tr>
   </table> 
  <a href="status.html"> <input type="submit" name=""></a>
    <input type="submit" id="register_0" value="Canner"/>
 </form>&nbsp;&nbsp;&nbsp;&nbsp;
<div class="dropdown">
  <button id="myBtn" class="dropbtn"><img src="help.jpg"></button>
  <div id="myDropdown" class="dropdown-content">
    <h2 style="margin-left: 10px"> -: E-mail Editor Help:-</h2>
    <div style="margin-left: 60px;">
    <b><img src="bullet.jpg"> To and Cc:</b><br>
    <b>To</b> and <b>Cc</b> boxes allow you to enter the e-mail addresses of the recepients to whom to message has to be sent. Recipients will be able to see who else was sent the message by looking at the contents of the <b>To</b> and <b>Cc</b> boxes.<br>
    <b><img src="bullet.jpg"> Subject:</b><br>
    The <b>Subject</b> box allows you to enter meaningful summary of the message. <br>
    <b><img src="bullet.jpg"> Message:</b><br>
    The <b>Message</b> TextArea allow you to enter the text of your message.
</div>
<a href="" style="float: right;color: blue;cursor: hand" >close</a>
  </div>
</div>
<script>
document.getElementById("myBtn").onclick = function() {myFunction()};
function myFunction() {
  document.getElementById("myDropdown").classList.toggle("show");
}
</script>

</body>
</html>
style4.html


body{
	background-color: rgb(255,255,240);
	padding-left: 20%;
	float: left;
}
.textarea{
    scroll-behavior: auto;
    scrollbar-shadow-color: silver;
    scrollbar-arrow-color: black;
    scrollbar-face-color: gray;
}
.emaileditor{
	background-color:  #FFFFDD;
}
#main{
	width: 500px;
	background-color: #DDFFEE;
	padding-left: 10px;
	padding-right:  10px;
	text-align: center;	
	float: left;
}
.scroll{
            display:block;
            border: 1px solid black;
            padding:5px;
            margin-top:5px;
            width:390px;
            height:150px;
            overflow:scroll;
         }

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  width: 500px;
  height: 420px;
  background-color: #cfc;
	padding-left: 10px;
	padding-right:  10px;
	color: #303030;
	border: 2px solid black;
}
.clean{
	clear: all;
}
.show {display:block;}


Nguyên Phấn Đông [community]

Ngày viết: 20:47 13/10/2020


bai
<!DOCTYPE html>
<html>
<head>
	<title>E-mail Editor</title>
	<link rel="stylesheet" type="text/css" href="style4.css">
</head>
<body>
 <form id="main" action="#">
   <h1>Compose e-mail message</h1><br>
   <table>
   	<tr>
   		<td ><label for="to">To:</label></td>
   		<td><input type="text" name="to" value="" style="width:400px"/></td>
    </tr>
    <tr>
   		<td ><label for="form">From:</label></td>
   		<td><input type="text" name="form" value="" style="width:400px"/></td>
    </tr>
    <tr>
   		<td ><label for="Cc">Cc:</label></td>
   		<td><input type="text" name="Cc" value="" style="width:400px"/></td>
    </tr>
    <tr>
   		<td ><label for="subject">Subject:</label></td>
   		<td><input type="text" name="Subject" value="" style="width:400px"/></td>
    </tr>
    <tr>
   		<td ><label for="message">Message:</label></td>
   		<td><textarea rows="10" cols="55" name="comment" form="usrform" class="scroll" > Nhập văn bản...</textarea></td>
    </tr>
   </table> 
  <a href="status.html"> <input type="submit" name=""></a>
    <input type="submit" id="register_0" value="Canner"/>
 </form>&nbsp;&nbsp;&nbsp;&nbsp;
<div class="dropdown">
  <button id="myBtn" class="dropbtn"><img src="help.jpg"></button>
  <div id="myDropdown" class="dropdown-content">
    <h2 style="margin-left: 10px"> -: E-mail Editor Help:-</h2>
    <div style="margin-left: 60px;">
    <b><img src="bullet.jpg"> To and Cc:</b><br>
    <b>To</b> and <b>Cc</b> boxes allow you to enter the e-mail addresses of the recepients to whom to message has to be sent. Recipients will be able to see who else was sent the message by looking at the contents of the <b>To</b> and <b>Cc</b> boxes.<br>
    <b><img src="bullet.jpg"> Subject:</b><br>
    The <b>Subject</b> box allows you to enter meaningful summary of the message. <br>
    <b><img src="bullet.jpg"> Message:</b><br>
    The <b>Message</b> TextArea allow you to enter the text of your message.
</div>
<a href="" style="float: right;color: blue;cursor: hand" >close</a>
  </div>
</div>
<script>
document.getElementById("myBtn").onclick = function() {myFunction()};
function myFunction() {
  document.getElementById("myDropdown").classList.toggle("show");
}
</script>

</body>
</html>
style4.html


body{
	background-color: rgb(255,255,240);
	padding-left: 20%;
	float: left;
}
.textarea{
    scroll-behavior: auto;
    scrollbar-shadow-color: silver;
    scrollbar-arrow-color: black;
    scrollbar-face-color: gray;
}
.emaileditor{
	background-color:  #FFFFDD;
}
#main{
	width: 500px;
	background-color: #DDFFEE;
	padding-left: 10px;
	padding-right:  10px;
	text-align: center;	
	float: left;
}
.scroll{
            display:block;
            border: 1px solid black;
            padding:5px;
            margin-top:5px;
            width:390px;
            height:150px;
            overflow:scroll;
         }

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  width: 500px;
  height: 420px;
  background-color: #cfc;
	padding-left: 10px;
	padding-right:  10px;
	color: #303030;
	border: 2px solid black;
}
.clean{
	clear: all;
}
.show {display:block;}


Tài Liệu Tham Khảo

Ứng Dụng Tiện Ích



Đã sao chép!!!