- JavaScript and memory leaks -If you're not careful, your JavaScript code may leak memory and sometimes even bring the visitor's browser to its knees. This tutorial looks at different leak patterns in JavaScript and how to fix them.
- JavaScript Closures 101- they're not magic - Morris Johns explains JavaScript closures, a powerful yet often bewildering concept, in a gentle, step by step fashion.
- Conditional Compilation of JScript/ JavaScript in IE - IE supports a little known feature called conditional compilation that selectively compiles any block of JScript or JavaScript depending on your script logic. Think of it as the absolute form of object detection.
- External JavaScript and PHP - External JavaScript can reference not just .js files, but PHP scripts as well. See how this is done, and the wonderful possibilities linking PHP to JavaScript bring.
- Changing Select element content on the fly - This tutorial explains how to change a select element's content using JavaScript, from adding new options to modifying and deleting them. It also shows how to create a 2 level interdependent select list.
- Determining cookie support in client's browser - If your script relies on JavaScript cookies to store and persist information, it's a good idea to always first make sure the user's browser has cookies enabled. This tutorial shows you how to perform this detection.
Sorting and filtering a Tabular Data Control - A Tabular Data Control can easily be sorted and filtered before its data is shown on the page. The following two tutorials examine this:- Sorting a Tabular Data Control- Filtering a Tabular Data Control - Introduction to Tabular Data Control (IE) - Tabular Data Control is a Microsoft ActiveX control that comes pre-installed with all versions of IE4+. This useful control allows you to access, display, and sort ASCII information stored on the server end, such as a .txt file. In other words, it creates a simple client side "database." Learn about TDC and how to use JavaScript to manipulate it in this tutorial.
- Introductory Guide to Regular Expressions - Always wanted to learn about Regular Expressions in JavaScript? With this comprehensive yet gentle tutorial on the subject, you'll be on your way to slashing and validating string input using Regular Expressions in no time!
- Programmer's Guide to Regular Expressions - Concise, to-the-point tutorial on Regular Expressions with sections on more advanced aspects of the feature.
- JavaScript and Object Oriented Programming (OOP) - JavaScript may not be known for its object oriented properties, but it does support most of the features required to be considered an Object Oriented language. See how to write OOP code in JavaScript.
- Formatting numbers for decimals and significant digits - Need to display a number in currency format? How about a number that is x digits in length? See how to easily, using two new methods of JavaScript 1.5+.
Advanced Javascript Tutorials
Introduction to Dynamic HTML
The Web is an ever evolving environment, and Web pages themselves are steadily blooming from static displays of data to interactive applications. "Dynamic HTML" is somewhat of an umbrella term encompassing several ways in which Web developers can breathe life into pages which have traditionally been still portraits of information.
The basic notion behind Dynamic HTML is quite simple: allow any element of a page to be changeable at any time. Sounds like a dream, but as with any simple plan, "God is in the details," as they say. In the olden days, you could only change content on a page via CGI. This required a server to perform the changes to the page and re-serve the entire page, modifications and all, back to the client. While workable, this process was quite slow, as it placed a burden on both network traffic and server processing time. With long delays between a user's action and an on-screen response, building effective Web-based applications was quite constricting.
With DHTML, the magic occurs entirely on the client-side. This means that page modifications should appear immediately following a trigger, such as a user selection. And, remember, the DHTML dream is that you can modify any aspect of the currently loaded page -- text styles, swapped images, context-sensitive forms and tables, and even the on-screen data itself.
It's worth noting here, then, that "Dynamic HTML," isn't really about HTML, the markup language. By and large, DHTML describes the abstract concept of breaking up a page into manipulable elements, and exposing those elements to a scripting language which can perform the manipulations. The degree, or fineness, to which these elements are defined and actionable is a function of DHTML's maturity. And since it has only been around for a year or so, DHTML is not fully mature.
Like the Web itself, Dynamic HTML is ever evolving. At some point, DHTML may self actualize and reach its full potential of "change anything anywhere anytime." It may even change its name -- product developers possess a whimsy for this sort of thing -- but the concepts defined above for modifying elements on a page will necessarily continue to mature.
Using HTML 3.2, Java 1.1, and CGI
- First, Platinum Edition Using HTML 3.2, Java 1.1, and CGI makes it easy for you to find the most effective means to accomplish any task that needs to be done or present most any kind of information that can be served on the Web.
- Second, this book covers the major Web technologies-not only HTML, Java, and CGI, but also VRML, Web browser scripting languages such as JavaScript and VB Script, and the full range of Microsoft's ActiveX technologies-in a depth and breadth that you won't find anywhere else. It has been expanded well beyond the best-selling Special Edition Using HTML, Second Edition, including almost 500 additional pages of in-depth technical detail, tips, techniques, and troubleshooting solutions. It also includes two CD-ROMs of Web software and HTML versions of some of Que's other related books.
With these goals in mind, how do you use this book?
If you are familiar with HTML and with setting up Web pages and Web sites, you may be able to just skim through the first couple of chapters to see what some of the issues in page and site design are and glance through the basic HTML elements discussed in the first two or three parts. Even if you are familiar with HTML, there may be some information in them that will be new to you. You can then read the advanced sections on HTML, as well as the sections on other Web technologies such as JavaScript and Java, CGI, VRML, and ActiveX technologies to determine which of those elements you want to include in your Web pages.
Platinum Edition Using HTML 3.2, Java 1.1, and CGI was written with the experienced HTML programmer in mind. Your experience may be limited to a simple Web home page you threw together, or you may be designing and programming Web sites. Either way, you will find comprehensive coverage on HTML and other Web technologies. Throughout this book, there are techniques for creating quality, effective Web pages and Web sites.
Encyclopedia of HTML elements
I’ve included all the elements from HTML 4.01 Strict. It’s a long one, but I’m sure you have more “tips and tricks” to add to it. Leave a comment and I’ll add yours to the list too. Let’s start off with a list of all the elements:
For people that view this site in a visual browser I added colored bars on all the elements. They represent if an element is recommended to use or not. Green bar means “Use this!”, Yellow means “Consider if you really need it”, and Red means “Don’t use this unless you have a really good reason”.
CGI Programming Unleashed
What CGI Is Useful For
As stated earlier, CGI is useful for many different tasks. There are different reasons why it is the best method, or the only method, for a variety of tasks. This chapter examines the reasons, separating the tasks into three different levels. First, we cover simple tasks, which we will define as tasks that can be completed in a couple of hours and/or require almost no knowledge of how to program CGI apps/the CGI spec in general. This task level includes counters, among other things. Next, we cover intermediate tasks, which we will define as tasks that can be completed in a day or two and/or tasks that require a pretty good knowledge of how to program CGI apps/the CGI spec in general. This task level includes built from scratch imagemapping programs, apps that generate entire HTML pages, and apps that do animation, among other things. Finally, we cover advanced tasks, which we will define as tasks that take more than a day or two and/or require an expertise in CGI app programming/the CGI spec in general. This task level includes apps that include a home grown database engine, among other things.
Special Edition Using CGI
XForms Essentials
- Create XForms files in a text or XML editor
- Convert existing forms (electronic or paper) to XForms
- Collect XML data from users in a user-friendly way
- Reduce the amount of JavaScript needed within browser interfaces
- Increase the security and reliability of your current information system by combining client-side and server-side checks into a common code base
- Understand how to create interactive web sites using the latest standard technology
This book is organized into three divisions. The first gives a general introduction to web forms, including information on the history and basic construction of forms. The second section serves as a kind of reference manual to the XForms specification. The third section offers additional hints, guidelines, and techniques for working with XForms.
If you simply want to fill out a form, you need only acquire the appropriate software or browser plug-in. There's no need for you to know what's going on behind the scenes unless you wish to satisfy your commendable intellectual curiosity.
If you wish to create forms with a designer program that has XForms export capability, just read that program's documentation to learn how to use that program feature. XForms goes to great lengths to make the fill-out experience intuitive; reading instructions is not required.
JavaScript Advanced Tutorials
- JavaScript and memory leaks - If you're not careful, your JavaScript code may leak memory and sometimes even bring the visitor's browser to its knees. This tutorial looks at different leak patterns in JavaScript and how to fix them.
- JavaScript Closures 101- they're not magic - Morris Johns explains JavaScript closures, a powerful yet often bewildering concept, in a gentle, step by step fashion.
- Conditional Compilation of JScript/ JavaScript in IE - IE supports a little known feature called conditional compilation that selectively compiles any block of JScript or JavaScript depending on your script logic. Think of it as the absolute form of object detection.
- External JavaScript and PHP - External JavaScript can reference not just .js files, but PHP scripts as well. See how this is done, and the wonderful possibilities linking PHP to JavaScript bring.
- Changing Select element content on the fly - This tutorial explains how to change a select element's content using JavaScript, from adding new options to modifying and deleting them. It also shows how to create a 2 level interdependent select list.
- Determining cookie support in client's browser - If your script relies on JavaScript cookies to store and persist information, it's a good idea to always first make sure the user's browser has cookies enabled. This tutorial shows you how to perform this detection.
Sorting and filtering a Tabular Data ControlA Tabular Data Control can easily be sorted and filtered before its data is shown on the page. The following two tutorials examine this:- (1) Sorting a Tabular Data Control (2) Filtering a Tabular Data Control - Introduction to Tabular Data Control (IE) - Tabular Data Control is a Microsoft ActiveX control that comes pre-installed with all versions of IE4+. This useful control allows you to access, display, and sort ASCII information stored on the server end, such as a .txt file. In other words, it creates a simple client side "database." Learn about TDC and how to use JavaScript to manipulate it in this tutorial.
- Introductory Guide to Regular Expressions - Always wanted to learn about Regular Expressions in JavaScript? With this comprehensive yet gentle tutorial on the subject, you'll be on your way to slashing and validating string input using Regular Expressions in no time!
- Programmer's Guide to Regular Expressions - Concise, to-the-point tutorial on Regular Expressions with sections on more advanced aspects of the feature.
- JavaScript and Object Oriented Programming (OOP) - JavaScript may not be known for its object oriented properties, but it does support most of the features required to be considered an Object Oriented language. See how to write OOP code in JavaScript.
- Formatting numbers for decimals and significant digits - Need to display a number in currency format? How about a number that is x digits in length? See how to easily, using two new methods of JavaScript 1.5+.
JavaScript Authoring Info
- Why should a webpage author use JavaScript in addition to HTML?
- Javascript adds user interactivity.
- Javascript enhances visual displays.
- Javascript allows client-side user form validation.
- Javascript provides more seamless integration with user plug-ins.
- Javascript allows access to some system information that HTML does not.
Language Design Issues
- Because JavaScript uses a high-end approach to security (leaving lapses in the domain of the browser) there are some applications that it is not appropriate for:
- JavaScript does not have user file access. You must use cut/paste techniques to input or save data.
- JavaScript does not have a print method. You must create an HTML page and use the browser menu to print.
- JavaScript cannot run programs on the host machine unless it is through browser plug-ins or associations allowed within the browser.
- JavaScript has no access to the user environment other than what the browser provides. Hence no access to the Windows registry is possible.
- JavaScript is definitely not a system programming language! Use Java or C++ for this type of activity.
Core JavaScript Reference
JavaScript version 1.5 provides the following features and enhancements:
- Runtime errors. Runtime errors are now reported as exceptions.
- Number formatting enhancements. Number formatting has been enhanced to include Number.prototype.toExponential, Number.protoytpe.toFixed and Number.prototype.toPrecision methods. See page 127, page 128, and page 129.
- Regular expression enhancements:
(1) Greedy quantifiers - +, *, ? and {} - can now be followed by a ? to force them to be non-greedy. See the entry for ? on page 148.
(2) Non-capturing parentheses, (?:x) can be used instead of capturing parentheses(x). When non-capturing parentheses are used, matched subexpressions are not available as back-references. See the entry for (?:x) on page 148.
(3) Positive and negative lookahead assertions are supported. Both assert a match depending on what follows the string being matched. See the entries for (?=) and (?!) on page 148.
(4) The m flag has been added to specify that the regular expression should match over multiple lines. See page 146. - Conditional function declarations. Functions can now be declared inside an if clause. See page 221.
- Function expressions. Functions can now be declared inside an expression. See page 254.
- Multiple catch clauses. Multiple catch clauses in a try...catch statement are supported. See page 231.
- Constants. Readonly, named constants are supported. This feature is available only in the C implementation of JavaScript. See page 215.
- Getters and Setters. JavaScript writers can now add getters and setters to their objects. This feature is available only in the C implementation of JavaScript. See Defining Getters and Setters in Chapter 7 of the Core JavaScript Guide for information about this feature.
Teach Yourself JavaScript in a Week
JavaScript is an evolving tool, like so many tools associated with the Internet and the World Wide Web. Still, the future of JavaScript is sufficiently clear that many people have already developed sophisticated Web-based applications using the language.
- Dynamic forms that include built-in error checking
- Spread sheets and calculators
- User interaction in the form of warning messages and confirmation messages
- Dynamic changes to text and background colors
- The ability to analyze URLs and access URLs in a user's history list
- The capability to open, name, clear, and close new windows and direct output to specific frames
These types of functions already appear in numerous Web sites on the World Wide Web, and it is expected that the number will grow rapidly in early 1996 now that Navigator 2.0 has moved from being a beta product to commercial release software.
Throughout the book, you will have the opportunity to develop several small scripts that you can immediately use in your own Web pages.
Finally, we close with a review of the future of JavaScript and where it seems to be heading. We will consider Netscape's plans as well as announcements from other companies to include JavaScript in their products.
JavaScript The Definitive Guide - Fourth Edition
This edition of JavaScript: The Definitive Guide has been thoroughly updated in light of the changes I just described. Major new features include complete coverage of JavaScript 1.5 and the third edition of the ECMA-262 standard on which it is based, and complete coverage of the Level 2 DOM standard.
Throughout the book, the focus has shifted from documenting particular JavaScript and browser implementations ( JavaScript 1.2, Netscape 4, Internet Explorer 5, etc.) to documenting the standards upon which those implementations are (or ought to be) based. Because of the proliferation of implementations, it is no longer practical for any one book to attempt to document -- or for any one developer to attempt to understand -- every feature, proprietary extension, quirk, and bug of every implementation. Focusing on the specifications instead of the implementations makes this book easier to use and, if you take the same approach, will make your JavaScript code more portable and maintainable. You'll particularly notice the increased emphasis on standards in the new material on core JavaScript and the DOM.
Another major change in this edition is that the reference section has been split into three distinct parts. First, the core JavaScript material has been separated from the client-side JavaScript material (Part IV) and placed in a section of its own (Part III). This division is for the convenience of JavaScript programmers who are working with the language in an environment other than a web browser and who are not interested in client-side JavaScript.
Second, the new material documenting the W3C DOM has been placed in a section of its own (Part V), separate from the existing client-side JavaScript material. The DOM standard defines an API that is quite distinct from the "legacy" API of traditional client-side JavaScript. Depending on the browser platforms they are targeting, developers typically use one API or the other and usually do not need to switch back and forth. Keeping these two APIs distinct also preserves the organization of the existing client-side reference material, which is convenient for readers of the third edition who upgrade to this edition.
In order to accommodate all the new material without making the book much, much larger, I've gotten rid of reference pages for the trivial properties of objects. These properties are already described once on the reference page for the object, and putting another description in a reference page of its own was redundant and wasteful. Properties that require substantial description, as well as all methods, still have reference pages of their own. Furthermore, the design wizards at O'Reilly have created a new interior design for the book that remains easy and pleasant to read but takes up less space.
Click to Read More
ppk on JavaScript
CGI Programming on the World Wide Web
CGI is fun. You can get a kick out of writing scripts that perform tricks for you, and the users enjoy the spice the scripts add to your Web pages. But CGI has a serious side too: It lets the Internet offer the kind of interactive, user-driven applications that modern computer users have come to expect. CGI opens up an entire class of modern applications to the Web.
Today's computer users expect custom answers to particular questions. Gone are the days when people were satisfied by the computing center staff passing out a single, general report to all users. Instead, each salesperson, manager, and engineer wants to enter specific queries and get up-to-date responses. And if a single computer can do that, why not the Web?
This is the promise of CGI. You can display sales figures for particular products month by month, as requested by your staff, using beautiful pie charts or plots. You can let customers enter keywords in order to find information on your products. You can also offer day-to-day conveniences, like collecting comments from users, offering them searches through your archives, and letting them sign your guestbook.
Embedding Perl in HTML with Mason
Mason is a tool for embedding the Perl programming language into text, in order to create text dynamically, most often in HTML. But Mason does not simply stop at HTML. It can just as easily create XML, WML, POD, configuration files, or the complete works of Shakespeare.
Mason was originally written by Jonathan Swartz, with the help of the rest of the CMP development team at CMP Media in 1996, and in its earliest incarnations it was known as Scribe.
Mason was first made publicly available as Version 0.1 in August of 1998. Since that time, Jonathan Swartz has invited your humble authors to participate in the further development of Mason. Mason has been expanded, and rewritten and is much changed from those early days. This book covers Version 1.12 of Mason.
Intended Audience
This book assumes that the reader is familiar with Perl at an intermediate level and that common Perl idioms don't stop you in your tracks. While you need not have written your own modules previously, familiarity with Perl's object-oriented syntax will be helpful.
Since Mason is most often used in the generation of web sites, this book frequently presents its example in terms of generating HTML pages. You definitely do not need to be an HTML expert to read this book, but a passing familiarity with HTML will be helpful in understanding what the output is intended to look like.
As previously mentioned, Mason is well-suited for the generation of any sort of dynamic text, including markup languages such as XML, as well as configuration files, email bodies (think mail merge, perhaps), or even code.
Finally, experience with mod_perl and Apache will be helpful for Chapter 7 and Chapter 9, which discuss integrating Mason with mod_perl and CGI, respectively, though the rest of the book should be easily comprehensible regardless of your familiarity with those particular topics.
Special Edition Using JAVASCRIPT
HTML, the markup language that describes the appearance of a page, is easy to learn, and requires no background in programming. HTML has undergone several revisions in order to meet the expanding needs of Web page authors. However, there are limits to what can be achieved inside HTML. The Java programming language was introduced to dramatically extend the Web developer's set of tools, but is still more complex than HTML. Java is very easy to learn; however, like most programming languages, it isn't easy to master. JavaScript bridges this gap.
JavaScript offers the Web page author a new level of sophistication without requiring him to become a programmer. JavaScript brings dynamic and powerful capabilities to Web pages, yet JavaScript is no more difficult to learn than HTML. JavaScript can be used to solve common problems, such as validating forms input, and can also be used to create dramatic and visually appealing content, which would be impossible with HTML. The goal of this book is to completely explore JavaScript, from the mundane to the extraordinary. It is designed as an introduction, a reference, and a continuous source of ideas, so that you may continually improve the Web pages that you create.
JavaScript Manual of Style
JavaScript isn't very difficult to learn. I myself picked up the basics in a matter of hours. You can, too.
You don't need to read this book cover to cover, and you don't have to read the chapters in any particular order. Skip around, read what seems interesting, and write some code. It's the best way to learn. You will need a copy of Netscape Navigator, preferably version 2.01 or later, but that's all. I use WebMania! to write some of my code, because it takes care of a lot of the details that I might forget, but all you really need is a simple ASCII text editor-vi, emacs, Notepad, whatever.
This book is divided into three parts. The first part includes three chapters. Chapter 1is a quick introduction to JavaScript that describes what it is and where it came from. Chapter 2explains what JavaScript is good for, outlining what you can do with it. Chapter 3 lets me get up on my soapbox and do a little preaching about what makes a good Web page, what makes a bad Web page, and what you can do to keep your pages on the good list.
The second section consists of six chapters, all of which contain a complete JavaScript Web page. Each chapter introduces a problem, demonstrates how you might solve it without JavaScript, and then shows how you can craft a much better solution with JavaScript. These chapters all conclude with some thoughts on how you can enhance the solution and how you can adapt the techniques to creating your own Web pages with JavaScript. In every chapter, the JavaScript code is discussed in depth, function by function. No mysteries; there's no one behind the curtain. If you don't understand something about the code, write me at marcj@nando.net. I'll be glad to answer your questions!
Finally, the third section contains six appendices, chock full of useful reference material: the character set, reserved words, a review of HTML, the JavaScript operators, JavaScript's built-in objects and functions, and online resources. Again, if there's something I missed, write me. I want to help.
Teach yourself WEB Publishing with HTML in 14 days
This book is intended to be read and absorbed over the course of two weeks (although it may take you more or less time depending on how much you can absorb in a day). On each day you'll read two chapters, which describe one or two concepts related to Web presentation design.
Day 1 Getting Started: The World Wide Web and You
You get a general overview of the World Wide Web and what you can do with it, and then come up with a plan for your Web presentation.
Day 2 Creating Simple Web Pages
You learn about the HTML language and how to write simple documents and link them together using hypertext links.
Day 3 Doing More with HTML
You do more text formatting with HTML, including working with text alignment, rule lines, and character formatting. You'll also get an overview of the various HTML editors available to help you write HTML.
Day 4 Images and Backgrounds
Today covers everything you ever wanted to know about images, backgrounds, and using color on the Web.
Day 5 Multimedia on the Web: Animation, Sound, Video, and Other Files
You learn all about adding multimedia capabilities to your Web presentations: using images, sounds, and video to enhance your material.
Day 6 Designing Effective Web Pages
You get some hints for creating a well-constructed Web presentation, and you explore some examples of Web presentations to get an idea of what sort of work you can do.
Day 7 Advanced HTML Features: Tables and Frames
You learn about some of the advanced features of HTML available in Netscape and other browsers: tables and frames.
Day 8 Going Live on the Web
Starting Week 2, you learn how to put your presentation up on the Web, including how to set up a Web server and advertise the work you've done.
Day 9 Creating Interactive Pages
Today covers adding interactive forms and image maps to your Web page, including the new client-side image map tags.
Day 10 All About CGI Programming
Today introduces you to CGI programming; in the first half you learn all about writing CGI scripts and programs, and in the second half you work through a number of examples.
Day 11 Interactive Examples
Today contains nothing but lots of examples-both informational and interactive-for you to look at and explore.
Day 12 JavaScript
You explore JavaScript, a new language available in Netscape to add new features to and interactivity to your Web pages.
Day 13 Java, Plug-ins, and Embedded Objects
Today covers more Netscape enhancements: the use of Java applets inside Web pages, and including other embedded objects through the use of plug-ins.
Day 14 Doing More with Your Server
You learn lots of new tricks for using your server, including using server-includes, security, and authentication.
Bonus Day Creating Professional Sites
Teach Yourself HTML 3.2 in 24 Hours
Can you really learn to create top-quality Web pages yourself, without any specializedsoftware, in less time than it takes to schedule and wait for an appointment witha highly-paid HTML wizard? Can this thin, easy-to-read book really enable you toteach yourself state-of-the-art Web page publishing?
Yes. In fact, within two hours of starting this book, someone with no previousHTML experience at all can have a Web page ready to place on the Internet's WorldWide Web.
How can you learn the language of the Web so fast? By example. This book breaksHTML down into simple steps that anyone can learn quickly, and shows you exactlyhow to take each step. Every HTML example is pictured right above the Web page itwill produce. You see it done, you read a brief plain-English explanation of howit works, and you immediately do the same thing with your own page. Ten minutes later,you're on to the next step.
CGI Manual of Style Online
Welcome to the HTML version of the book CGI Manual of Style, by Robert McDaniel. To get started right away, use the link below to the Table of Contents. From this page you can link to any chapter as well as to the Quick Reference section. We've also included some script files from the book. Download CGIMOS.ZIP, this zip file contains a dozen or so scripts. Please use a utility that allows long file names when decompressing this file.
The Common Gateway Interface, or CGI, is a standard for communication between Web documents and CGI scripts you write. CGI scripting, or programming, is the act of creating a program that adheres to this standard of communication. A CGI script is simply a program that in some way communicates with your Web documents. Web documents are any kind of file used on the Web. They can be HTML documents, text files, image files, or any number of other file formats. The existence of this gateway between programs you write and your Web documents allows you to create much more dynamic and interactive Web pages than you could with HTML alone.
CGI Developer's Guide
Special Edition Using HTML 4
You can't build a monument without bricks, and you can't make bricks without straw--everyone who has seen the film The Ten Commandments knows that. Likewise, if you plan to establish your own monumental presence on the World Wide Web, you have to start with the straw--HTML.
Special Edition USING HTML Second Edition
HTML: The Bricks and Mortar of the Web
HTML By Example
There are two major reasons why learning HTML is easier when it's by Example. First, HTML isn't a typical programming language-in fact, it isn't a programming language at all. It's a "mark-up" language that builds on very basic concepts that are all somewhat related to one another. Learning by example, then, allows you to start with the initial concepts and learn to build to make complex Web pages come to life easily.
Before you get to the point of actually creating HTML documents (Web pages), you'll go through a little refresher course on the Internet and the World Wide Web. So, even if you're not terribly familiar with the Web, I'll try to get you there before throwing any strange codes or address at you.
HTML 3.2 and CGI Professional Reference Edition UNLEASHED
The State of the World Wide Web
It's the late 1990s, and the World Wide Web is a more complex system for communication than when it was introduced almost a decade ago. Although technically still based on the system of hypertext that Tim Berners-Lee and others developed at the European Laboratory for Particle Physics in Geneva, Switzerland in the late 1980s, the Web today is more diverse technologically and more diffused within society and culture.
The range of technologies a Web developer can choose from is now more varied than ever. Besides an array of techniques and tools to shape meaning with HyperText Markup Language (HTML), developers also can use many technologies to add new kinds of multimedia and interactive content to on-line services. New kinds of software to observe Web content are being developed, and the competition for being the provider of Internet software has risen to the highest priority in the personal computer industry.
How to Use HTML 3.2
Zen Garden -The Beauty of CSS Design
There is clearly a need for CSS to be taken seriously by graphic artists. The Zen Garden aims to excite, inspire, and encourage participation. To begin, view some of the existing designs in the list. Clicking on any one will load the style sheet into this very page. The code remains the same, the only thing that has changed is the external .css file. Yes, really.
CSS 2.1 Specification
Tableless layout HOWTO
Style Sheets
- Using proprietary HTML extensions
- Converting text into images
- Using images for white space control
- Use of tables for page layout
- Writing a program instead of using HTML
These techniques considerably increase the complexity of Web pages, offer limited flexibility, suffer from interoperability problems, and create hardships for people with disabilities.
40 CSS Tutorial Reference
- CSS Styles Tutorial
- CSS Testing Grounds
- CSS Tutorial by EchoEcho.Com
- CSS Tutorials
- Customized Input Elements
- Experimental Css Design
- Fancy Paragraphs with CSS
- Hide CSS from Browsers
- HIOX CSS Tutorial
- How to justify with CSS
- HTML with Style
- HTMLSource Stylesheet Tutorials
- Introduction to CSS shorthand properties
- Ken Ward's Cascading Style Sheets Tutorial
- Learning CSS
- Learning Journal - Cascading Style Sheets
- A List Apart: CSS: Making Alternate Style Sheets Work
- Making Headlines With Cascading Style Sheets
- Marginally Speaking - CSS
- Position Is Everything
- WestCiv: The Complete CSS Guide
- Adding a Touch of Style
- Adding drop caps effects to your paragraphs using CSS
- Cascading Style Sheet Tutorial
- Cascading Style Sheets Alive
- Cascading Style Sheets in Seven Easy Steps
- Cascading Style Sheets Tutorials
- 5 cheap CSS tricks
- Comprehensive CSS Guide
- Cool Text Rollover Effects Using CSS
- CSS School
- Putting Style Sheets in Perspective
- RichInStyle.com Master Class
- Simple Styling with CSS
- Slacker's Guide to Cascading Style Sheets
- СSS Samples
- Style Sheet Reference
- Tizag - CSS Tutorials
- Uberlink CSS List Menus
- Web Page Reconstruction with CSS
- Website Publisher - Faking a Graphical Link
CSS Attributes: Index -MSDN Library
(5) Attribute available as of Internet Explorer 5
(5.5) Attribute available as of Internet Explorer 5.5
(6) Attribute available as of Internet Explorer 6
(7) Attribute available as of Windows Internet Explorer 7
Introduction to CSS shorthand properties
Cascading Style Sheets
Change the appearance of hundreds of Web pages by changing just one file... Influence presentation without losing visitors... All with the power and flexibility of Web style sheets.
A basic introduction to Cascading Style Sheets.
An introduction to the various kinds of selectors, pseudo-classes, pseudo-elements, and cascading order.
Descriptions of the various properties available in Cascading Style Sheets, level 1.
Various methods of incorporating style sheets into an HTML document.
How to misuse style sheets and make your pages inaccessible.
Check the syntax and style of your Cascading Style Sheets with this CSS lint.
Links to CSS specifications and other documentation.
CSS 2 Tutorial
RichInStyle.com CSS2 tutorial
- It is easy to understand
- It covers every aspect of the specification, including those that are frequently not touched upon by other tutorials such as cascading, box width calculations, etc.
- It presents information in an efficient manner - it is short, so you learn faster
Why style sheets?
Style sheets have the following advantages:
- They separate content from formatting. This means that instead of marking a quotation as italic, you mark it as a quote and then tell the browser that you want all quotes to be italic. This means that it is a two-second job to change quotes to bold, red, green or normal.
- They reduce download time by removing formatting information from documents. Thus instead of having to specify that you want Times New Roman a few dozen times in a file for headings, you specify once that you want headings to be Times New Roman. They also are advantageous in that they need only be downloaded once for an entire website.
- They give far more control over formatting than HTML - such features as background images and colors on all elements - not just the whole document, etc.
- They ensure a consistent appearance across a site
RichInStyle.com CSS1 tutorial
It covers every aspect of the specification, including those that are frequently not touched upon by other tutorials such as cascading, box width calculations, etc.
Style sheets provide a means for authors to specify how they wish documents written in a markup language such as XML or HTML to be formatted. For example, an author might wish to specify that a document should be green on pink - this could be done using CSS, an established standard for styling documents.
Style Master CSS Tutorial
Web Style Sheets CSS tips & tricks
- Figures & captions
- A pinned-down menu
- Indented paragraphs
- Alternative style sheets
- A confetti menu
- Getting rid of colored scrollbars (user style sheets)
- Even/odd: coloring every other row
- A tabbed interface
- A chart comparing font styles
- Horizontal and vertical centering
- Boxes with drop shadows
- Text shadows
- Rounded boxes and unsharp shadows
Figures & captions
HTML doesn't have an element that allows to insert a figure with a caption. It was once proposed (see HTML3), but never made it into HTML4. Here is one way to simulate such a figure element:
CSS Quick Tutorials
CSS Online - Explore the World of CSS
CSS-guide
- General info - general info about the CSS-guide, how topic groups relate with each others, last changes, functionality of pages, used colors, special markups and links; includes also a FAQ-page, where I answer either real question, which I have got or imaginary questions, which somebody might ask for me
- Index pages - many kinds of index pages, for example alphabetical index and table of contents (the site map of CSS-guide)
- Guide pages - the most important CSS-pages, where I handle systematic CSS - the actual CSS-guide
- Extra pages - a group of mixed pages, which somewhat relate with CSS
- Proposals - some CSS-related proposals
- Practice - practice tasks and example pages
I hope that you could find from my site what you are looking for and my site could give for you much pleasure!
CSS Frequently Asked Questions
What are Style Sheets?
Style Sheets are templates, very similar to templates in desktop publishing applications, containing a collection of rules declared to various selectors (elements).
What is external Style Sheet? How to link?
External Style Sheet is a template/document/file containing style information which can be linked with any number of HTML documents. This is a very convenient way of formatting the entire site as well as restyling it by editing just one file.
CSS Pointers Group's CSS Example
- Blockquote Usage
- Border on BODY
- CSS Columns
- Deprecated examples
- CSS Layers example
- Drop Cap simulation
- More Drop Cap simulations
- Table example
- Embedded CSS example
- External CSS example
- CSS Font Rules
- CSS font-family
- CSS font-size
- CSS font-style
- CSS font-variant
- CSS font-weight (keyword)
- CSS font-weight (numeric)
- Table example (green bar paper)
- CSS highlighting
- Imported CSS example
- Indenting with CSS
- Inline CSS example
- Text justification with CSS
- List options with CSS
- Pullquotes Examples
- Shadowed text with CSS
- Suppress Hypertext underlining
- CSS table with named colors
- Border workaround for Netscape
Introduction to CSS3
Cascading Style Sheets, level 2
Cascading Style Sheets, level 1
Comprehensive CSS Guide
- consistency: This would apply for larger sites, and many different developers, which is the environment I am currently working in for the Department of Education. A site-global style sheet could be set up, which all pages would refer to. This sheet could include the look and feel you want for the complete site. Each page would maintain the same attributes throughout the site. The ability to change one item, on one page can change the same attribute on your whole site.
- easier coding: No more elaborate tables, and complicated HTML. This will also greatly benefits the large multi-contributor web environments. The HTML code using style sheets is much simpler. The code reverts back to what it was in the early simple days. Just using header tags (H1, H2, ...), and paragraph tags with style sheets can produce a rich document, with the help of a SPAN and DIV tag here and there. (but that's getting ahead of myself)
- rich design and layout: Cascading Style Sheets bring professional layout and design control to HTML documents. Here's a brief listing of what you can do with style sheets that you could only do with an elaborate work around, or not at all.
(1) exact positioning of elements
(2) font control (size, color, family)
(3) white space control, margins, leading
(4) background control (placement, repeat, ...)
Complete CSS Guide
When Cascading Style Sheets were introduced in late 1996, they represented an exciting new opportunity. They enabled much more sophisticated page design (typography and layout) than web developers had been used to, and they helped manage the complex tasks of developing and maintaining sites, and keeping them up to date. They also greatly simplified the process of making web pages accessible to as many people as possible, regardless of the device they use to read a page, and regardless of any disability they might have.