Chapter 2

Designing Web Pages

What you will learn in this chapter:

  • An overview of HTML
  • The basic syntax of HTML
  • An overview of cascading style sheets
  • The basic syntax of CSS
  • How to bring the two technologies together

In the previous chapter, after you downloaded and installed WebMatrix, you tested your installation by creating a page in a new website and modified its content before running the page in the browser. When you created the new page, you saw that WebMatrix had already added some HTML mark up to the file before you modified it. HTML is fundamental to web development, so this chapter will provide you with a basic introduction to the topic and show you how to work with HTML to construct web pages.

Construction of web pages is obviously a crucial first step. However, it is only a first step. Managing the presentation and styling of the content is important if you want to create attractive pages. During the course of this chapter, you will also learn how to do that using cascading style sheets (CSS).

Introducing HTML

HyperText Markup Language, or HTML, is a means by which structure and format is applied to a text-based document which is primarily intended to be displayed by a web browser. HTML was originally introduced in 1991, and together with the specification for the HyperText Transfer Protocol (HTTP), this formed the birth of the World Wide Web. HTML has undergone a number of version changes since then, the most recent of which is HTML 4.01, which was agreed as a ...

Get Beginning ASP.NET Web Pages with WebMatrix® 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.