Chapter 13

Connecting with Style: JavaScript and CSS

In This Chapter

arrow Interacting with HTML-based formatting

arrow Creating HTML style elements dynamically

arrow Moving and positioning HTML elements

arrow Developing a JavaScript-based menu

At one time, HTML pages were plain or used inconsistent tags for formatting content, such as the outdated <center> tag. Many of these tags are deprecated (no longer available) in HTML5. For example, the <center> tag is no longer available. (See http://www.w3schools.com/tags/tag_center.asp for details.) Cascading Style Sheets (CSS) provide a means for formatting HTML content in a consistent manner that works well with all newer browsers. Using CSS makes the job of the page designer and application developer easier while providing significantly more flexibility in formatting options. You can provide CSS in these ways:

check.png As part of HTML tags

check.png Within the current page

As ...

Get HTML5 Programming with JavaScript For Dummies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.