Im thinking you should visit w3schools. There is everything you need there dont really see the point in reposting it all as an article.