Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
<html>
<body>
<form> Tag
<form target=””03064811860>
//
//
//
<input type””>
Type:
<select multiple>
<option></option>
</select>
//
<br>
//
Autoplay: play video automatically on load page. “1” mean play one time.
</video>
//
<p></p>
</div>
//
Know how:
Id,class,selector.
CSS:
Internal css: used in webpage at top. Insert in head tag and use style tag for styling.
CSS:
margin-top/right/left/bottom: toppx,rightpx,leftpx,bottompx; }
.classname{}
Element.classname{}
In html:
#idname{}
Element.idname{}
.childdiv{overflow:hidden}
//
…………………………………………………………………………………………………………………………………………………………….......
<script> tag
<script>
document.write(‘this is our class’);
// object.method(‘string’)terminator;
//Another way to write
document['write'](‘This is our first JS class’);
document.write(‘Hello <h1 style=”color: white”> Hello World </h1>’);
/* single quotation in inner and double in outer/ double quotation in inner and
single in outer */
// Object creation
Var obj1={
Cat: ‘meoq’,
Dog: ‘waoo’,
var sound=obj1.cat;
document.write(sound);
</script>
//array declaration and intialization
x=['a','b'];
document.write(x[1]);
//function
function myfun(){
var x=5;
var y=15;
}
// In camel case just first word letter is small other can be start with
uppercase letter .e.g getElementById
Function my(){
X= getElementById(“p”);
Alert(x);
Or Alert(x.innerhtml);
Or Alert(x.tagName);
x.style.backgroundcolor=”blue”;
or x.setattribute(“style”,”color:red”);
}
<body>
<p id=”p1”>
I am Paragraph
</p>
<button onclick=”myfun()”> Click me </button>