Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
www.onlineui5training.com
1. Install jdk latest version in our system.
http://www.oracle.com/technetwork/java/javase/downloads/index.html
2. Download the relevant eclipse version.
3. Setup the workspace – Directory in our system where all the projects gets stored.
Version Year
HTML 1991
HTML 2.0 1995
HTML 3.2 1997
HTML 4.01 1999
XHTML 2000
HTML 5 2014
<!DOCTYPE html>
<HTML>
<HEAD>
<META></META>
</HEAD>
<BODY></BODY> - USER WILL ONLY SEE WHAT WE PUT IN THE BODY OF HTML.
</HTML>
Login (http)
User+pass
Server
HTML 5 (Tomcat,jboss)
<header>
<article>
<navigation>
<article>
<footer>
thead Th Th
Td Td
tr Td Td Table
body
Td Td
Td Td
An Iframe control allows us to embed another html document inside our page.
CSS – Cascading Style Sheet (3), CSS will help us to format the application.
<style>
Selector {
propname: value;
propname: value;
….
}
</style>
Selector : on which element(s) we want to apply the style.
3 ways to select html elements
Id : affect only one element, #id
className: affect the elements holding that class name .classname
tagName: tagname
Html5, css3,
js
Browsers
DoM = Document Object Model
Press F12 key
Internet Developer Toolbar, Browser Client.
Border Border
padding padding
UI element UI element2
margin
Inside a web project the path of current directory is represented by ./
JS and Java are completely different languages, both in concept and design.
JS was invented by brenden eich in year 1995.
3 ways to using js
1. Inline JS – at element level we can put the code
2. Internal JS- we can use <script> tag at the page level
3. External JS – we can put the code in a separate file with extension .js
JS is case sensitive.
Whenever we create a variable or function we must start the variable name with small
letters and all the consecutive words in that variable/function name should be camel
caps.
myvariable = my + variable = myVariable
myfunction = my + function = myFunction()
material = Material
There are two major objects which are pre defined and we can consume.
Window – the object of browser window.
Document – the object html document, using this object we can access the html elements
present on the page. (DoM Object)
Syntax
We have to end all our statements with semi column(;) in JS.
Declare variable
var variableName = new objectType();
var variableName = value;
Create a function
1. Anonymous function
function() {
…….;
}
2. Named function
function functionName(){
……;
}
Object in JS
var myObject = new String();
Custom object
var objectName = { “prop” : “value” , “prop2” : “value2” };
0 1 2
If we combine object and array concept = Array of Object = JSON
JSON : Java Script Object Notation : Light weight data format
Alignment of Fields
How to format the table