Escolar Documentos
Profissional Documentos
Cultura Documentos
Table Style
Table Borders
Slide HTML01
table, th, td {
border: 1px solid black;
}
Collapse Borders
table {
border-collapse: collapse;
}
Table Padding
td {
padding: 15px;
}
Table Color
table, td, th {
border: 1px solid green;
}
th {
background-color: green;
color: white;
}
Form
<form>
First name:<br>
<input type="text" name="firstname">
<br>
Last name:<br>
<input type="text" name="lastname">
</form>
<form>
<input type="radio" name="sex" value="male"
checked>Male
<br>
<input type="radio" name="sex" value="female">Female
</form>
<form action="action_page.php">
First name:<br>
<input type="text" name="firstname" value="Mickey">
<br>
Last name:<br>
<input type="text" name="lastname" value="Mouse">
<br><br>
<input type="submit" value="Submit">
</form>
Method Attribute
<form action="action_page.php" method="get">
<form action="action_page.php" method="post">
When to Use GET?
You can use GET (the default method):
If the form submission is passive (like a search engine query),
and without sensitive information.
When you use GET, the form data will be visible in the page
address: action_page.php?
firstname=Mickey&lastname=Mouse
GET is best suited to short amounts of data. Size limitations
are set in your browser.
First name:<br>
<input type="text" value="Mickey">
<br>
Last name:<br>
<input type="text" name="lastname" value="Mouse">
<br><br>
<input type="submit" value="Submit">
</form>
Grouping Form Data with <fieldset>
The <fieldset> element groups related data in a form.
The <legend> element defines a caption for the <fieldset>
element.
<form action="action_page.php">
<fieldset>
<legend>Personal information:</legend>
First name:<br>
<input type="text" name="firstname" value="Mickey">
<br>
Last name:<br>
<input type="text" name="lastname" value="Mouse">
<br><br>
<input type="submit" value="Submit">
</fieldset>
</form>
JQUERY
<script type="text/javascript" src="jquery1.11.3.min.js"></script>
$(document).ready(function() {
canvas = $("#myCanvas");
context = canvas.get(0).getContext("2d");
canvas.attr("width",$
(window).get(0).innerWidth-300);
canvas.attr("height", $
(window).get(0).innerHeight-10);
canvasWidth = canvas.width();
canvasHeight = canvas.height();
window.addEventListener("keydown",function(e){
keysDown[e.keyCode] = true;
});
window.addEventListener("keyup",function(e){
delete keysDown[e.keyCode];
});
});