You must know about HTML before you get started . If you don’t know about HTML, then go this website for great tutorials with exercise and the website is http://www.codecademy.com/tracks/web
It’s no need, but some knowledge of CSS will help you create attractive ,dynamic website .
Basic I/O method:
|confirm()||for dialog box||confirm(“Press a button!”);|