By GokiSoft.com|
21:22 16/10/2023|
Học HTML5 - CSS3
Bài tập - Thiết kế form gửi email - Lập trình HTML/CSS/JS
Tags:
Phản hồi từ học viên
5
(Dựa trên đánh giá ngày hôm nay)
Nguyễn Anh Vũ
2020-10-16 09:49:37
#compose e-mail messaage.html
<!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>
<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>
Nguyễn Anh Vũ
2020-10-16 09:48:32
#compose e-mail messaage.html
<!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>
<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>
Nguyễn Hữu Hiếu
2020-10-15 05:50:19
#1988.html
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<title>Email Editor</title>
</head>
<body>
<div class="main0">
<label class="tilte">Compose e-mail message.</label>
<label class="help">Help</label>
</div>
<div class="main">
<div class="email">
<div class="left">To:</div>
<div class="right"><input type="text" name="to" class="input"></div>
</div>
<div class="email">
<div class="left">From:</div>
<div class="right"><input type="text" name="from" class="input"></div>
</div>
<div class="email">
<div class="left">Cc:</div>
<div class="right"><input type="text" name="cc" class="input"></div>
</div>
<div class="email">
<div class="left">Subject:</div>
<div class="right"><input type="text" name="subject" class="input"></div>
</div>
<div class="email">
<div class="left">Message:</div>
<div class="right"><textarea class="tarea"></textarea></div>
</div>
<div class="email">
<div class="left"></div>
<div class="right">
<a href="send.html"><button>Send</button></a>
<button>Cancel</button>
</div>
</div>
</div>
</body>
</html>
#help.html
<!DOCTYPE html>
<html>
<head>
<title>E-mail editor</title>
</head>
<body>
<h2>E-mail Editor Help</h2>
</body>
</html>
#send.html
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
Your message has been successfully sent!!!
</body>
</html>
#style.css
body {
background-color: #eddae2;
}
.main {
width: 700px;
height: 500px;
background-color: #aff0c6;
margin: 0 auto;
}
.main0 {
width: 700px;
background-color: #aff0c6;
margin: 0 auto;
}
h2 {
padding-top: 30px;
padding-left: 20px;
}
.left {
text-align: right;
padding-left: 20px;
padding-right: 20px;
display: flex;
width: 100px;
}
.right {
width: 600px;
text-align: left;
display: flex;
}
.input {
position: absolute;
width: 550px;
}
.email {
display: flex;
padding-bottom: 10px;
}
.tarea {
height: 250px;
width: 550px;
}
button {
width: 80px;
margin-left: 10px;
}
.tilte {
text-align: left;
padding-left: 50px;
font-size: 30px;
}
.help {
background-color: pink;
margin-right: 30px;
text-align: right;
}
hainguyen
2020-10-14 14:59:41
#Status.html
<!DOCTYPE html>
<html>
<head>
<title>E-mail ditor</title>
</head>
<body>
<h1>Your message has been successfully sent</h1>
</body>
</html>
hainguyen
2020-10-14 14:59:30
#style.css
body{
background-color: rgb(255,255,240);
}
textarea{
scrollbar-3dlight-color: #C0C0C0;
scrollbar-shadow-color: silver;
scrollbar-arrow-color: black;
scrollbar-face-color: gray;
width: 100%;
}
.imghelp{
cursor: pointer;
background-color: #DDFFEE;
color: blue;
right: 30%;
position: absolute;
}
.emaileditor{
background-color: #FFFFDD;
}
#main{
width: 400px;
background-color: #DDFFEE;
padding-left: 10px;
padding-right: 10px;
margin: 0px auto;
}
#help{
width: 500px;
height: 420px;
top: 10px;
background-color: #cfc;
padding-left: 10px;
padding-right: 10px;
display: none;
border: solid #E4E7E7 2px;
color: #303030;
margin: 0px auto;
}
.close{
text-align: right;
color: blue;
cursor: pointer;
}
ul{
list-style-image: url('picer/bullet.jpg');
list-style-type: square;
list-style-position: inside;
}
input{
width: 100%;
}
#voic{
width: 70%;
display: flex;
margin-bottom: 7px;
}
.bot-1{
width: 33.33%;
float: left;
text-align: right;
padding-right: 20px;
}
.bot-2{
width: 66.37%;
float: left;
padding-right: 10px;
}
button{
float: left;
margin-right: 10px;
margin-bottom: 20px;
}
hainguyen
2020-10-14 14:58:01
#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
2020-10-14 04:06:13
#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
2020-10-13 13:47:39
<!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>
<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.htmlbody{
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
2020-10-13 13:47:39
<!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>
<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.htmlbody{
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
2020-10-13 13:47:39
<!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>
<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.htmlbody{
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;}