O'Reilly logo

HTML5 Programming with JavaScript For Dummies by John Paul Mueller

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required