Skip to main content

Introducing HTML and JavaScript

  • Chapter
  • First Online:
Guide to HTML, JavaScript and PHP

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 84.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 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. 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. 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. 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. 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. 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

Authors

Corresponding author

Correspondence to David R. Brooks .

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics