Abstract
Chapter 1 provides a very brief introduction to using HTML and JavaScript for creating simple Web pages. It presents examples of how JavaScript interfaces with an HTML document to display some printed output in a Web browser window. The chapter introduces the concept of an HTML document as an object, with certain methods and properties accessible through JavaScript to act on that object. Numerous examples show how to modify the appearance of a document by using HTML tags and their attributes, including as part of a text string passed as a calling argument to JavaScript’swrite()method.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
 When you save a file in Notepad, the default extension is.txt. You may need to enclose the file name plus its.htmextension in quote marks to prevent Notepad from adding the.txtextension.
- 2.
 On Windows computers, you can associate extensions with whatever application you wish. So, for example, if you have more than one browser installed on your computer, you could designate one of them as the default browser and assign it as the application for opening HTML documents.
- 3.
Recent versions of AceHTML assume XHTML as the default language, rather than HTML. If you use such a version with this book, you must override this assumption by saving files with.htmor.htmlextensions.
- 4.
Although this book adopts some XHTML style rules, the documents are written in HTML and are not intended to be fully XHTML-compliant.
- 5.
At the time this book was being written, the author was running a server using a free URL Âprovided bywww.no-ip.com.
- 6.
IrfanView (www.irfanview.com) has been used for all image processing in this book. This very popular freeware program does an excellent job of resizing images while maintaining detail from the original image. Of course, its future availability cannot be guaranteed to readers of this book.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2011 Springer-Verlag London Limited
About this chapter
Cite this chapter
Brooks, D.R. (2011). Introducing HTML and JavaScript. In: Guide to HTML, JavaScript and PHP. Springer, London. https://doi.org/10.1007/978-0-85729-449-4_1
Download citation
DOI: https://doi.org/10.1007/978-0-85729-449-4_1
Published:
Publisher Name: Springer, London
Print ISBN: 978-0-85729-448-7
Online ISBN: 978-0-85729-449-4
eBook Packages: Computer ScienceComputer Science (R0)