HTML (HyperText Markup Language) is a network based scripting language that allows multimedia hypertext documents to be written, edited, published, referenced, and navigated on the Web. HTML, since it is a scripting language, is self-contained ~ all the instructions and related data are contained in a single file. (We will learn HTML first.)
Java is a programming language that allows developers to write
miniature software programs and users to run the software directly from
their Web browsers. Java specializes in creating small software programs
called applets. Java, since it is a programming language, is not self-contained
~ the data and application files are separate.
HTML is universal, at least for the most part. It is universal because it can be accessed by any computer with an Internet connection and a Web browser. Other special hardware or software isn't needed. However, not all Web browsers, computer monitors, connection speeds, or computers are equal. How do you get around this? Create your pages with multiple standards in mind. Format the page for a certain pixel configuration, use tags that are universal for Netscape and Explorer, and preview pages in multiple browsers before posting them.
HTML documents have two discrete elements:
Ditto goes for spaces in file and folder names on the Web. When
previewing a page, spaces in file names may not matter. But this is before
your Web page has been posted on a Web server, and servers are picky. As
a rule of thumb use underscores ( _ ) or run the words together in the
file and folder names for Web pages.
If there are all these creation tools out there, why am I learning in Notepad? Learning HTML yourself gives you flexibility. With knowledge of the “code” or language you'll never be limited to a particular programs features. Furthermore, some tools add extra code, which results in more memory required for the Web page and slower load times. This compromises our users viewing abilities as well as whether or not they'd actually stick around to view the page.
There is a basic structure to all HTML documents, regardless of creation method: