Difference between revisions of "Html5"

From Wiki2
Line 1: Line 1:
==code samples==
==code samples==
<syntaxhighlight lang="HTML5">
<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Contol Panel</title>
  <script src="http://code.jquery.com/jquery-latest.js"></script>
</head> 
 


 
<body>
<p>hi from pathboston</p>
<form>
<input type="button" value="Create Pathboston Web Report" id="cpr">
</form>
</body>
<script>
$("#cpr").click(function() {
console.log("clicked the cpr button");
$.get("CreaPathbost.php");
});
</script>
<html>
</syntaxhighlight>


==HTML5 questions==
==HTML5 questions==

Revision as of 23:16, 4 December 2012

code samples

<syntaxhighlight lang="HTML5"> <!DOCTYPE html> <html> <head>

 <meta http-equiv="content-type" content="text/html; charset=UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1">

 <title>Contol Panel</title>
 <script src="http://code.jquery.com/jquery-latest.js"></script> 

</head>


<body>

hi from pathboston

<form> <input type="button" value="Create Pathboston Web Report" id="cpr">

</form> </body> <script> $("#cpr").click(function() { console.log("clicked the cpr button"); $.get("CreaPathbost.php"); });

</script>

<html> </syntaxhighlight>

HTML5 questions

How do you html redirect?

ANS:In <head> put <meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com">