Friday, July 27, 2012

Introduction HTML

hello there.. this is my first write about how to make simple website.
first id like to tell about what is HTML? HTML is hyper text markup language, this sript about grafis web browser, in html we use tag like this <HTML> then end with </HTML>.

in html must have head and body, what difference about head and body? head is about dictionary, and the structure that you will be taken and the body is the part that u use for making some layout that you want.

so the difference between head and body is head is always take below body and its contain about the dictionary in html , and the construct of the html is in the body

in html we have to take the tag, for example in the head we will to make the title for the html its like this
<title>THE TITLE</title>
THE TITLE or in the body you want to give some paraghraph in the content html like this
<p>this is my text about the paraghraph</p>
this is my text about the paraghraph
i'll give some example for html


<html>
<head>
<title> My website </title>
</head>
<body>
<p> I want to make a beautiful website .... please helm me for this </p>
</body>
</html>

Tuesday, July 10, 2012

Javascript in html for dummies part 1


1. Pop up warn message for confrim box
here's the code

<!DOCTYPE html>
<html>
<body>
<p>Click the button to display a confirm box.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script type="text/javascript">
function myFunction()
{
var x;
var r=confirm("Submit?");
if (r==true)
  {
  x="You pressed OK!";
  }
else
  {
  x="You pressed Cancel!";
  }
document.getElementById("demo").innerHTML=x;
}
</script>

</body>
</html>



Click the button to display a confirm box.



2.