Skip to main content icon/video/no-internet

Web Programming

Web programming is a generic term used to indicate the set of activities for the creation of websites or web applications for the World Wide Web (WWW, often simply called the web). A plethora of web technologies and languages are available for web programming. The core set of technologies for web programming is the one recommended by the World Wide Web Consortium, an international community of organizations that work together for the development of web standards and the exploration of the full capabilities of the web. This entry examines how websites are developed, server-side and client-side web programming, and the website development process.

Developing Websites With Web Tools

One of the primary activities of web programming is developing websites and their functionalities. A website is a collection of webpages stored on a web server. A web server is a computer system that offers services to a web client, an application that communicates with the web server to request specific services. For example, assume that a user wants to access a document from a specific website: The web can deliver text, images, audio, video, animation, and other multimedia content. A document is a file containing one or more types of media content; on the web, this document is called a webpage. The request for the document is performed at the client side by using a browser, which is an application that performs retrieval, visualization, and presentation of information on the WWW. The common communication protocol to exchange information on the web is the hypertext transfer protocol (HTTP), with its respective secure version, HTTPS. Examples of other available protocols are ftp, and its respective secure version, sftp, for file transfer to and from a remote computer; mailto for email service; file for local file system; and callto to initiate calls via Skype or similar applications.

Figure 1 A Sample Hypertext Markup Language File and Its Rendition

None

Before retrieving webpages from a website, the website must be created and stored on a webserver. The standard language used for creating webpages is hypertext markup language (HTML), usually used in its latest revision. In 2014, the fifth major revision of the language, called HTML5, was endorsed by the World Wide Web Consortium. Writing markup is not considered pure programming in the classical sense; however, together with coding, it is part of web development. HTML uses tags and other commands to describe the layout of the document that must be rendered by the browser. Figure 1 shows a sample HTML file and its rendition. Tags are meaningful keywords that wrap content and tell the browser how to format and render it. Tags are not displayed by the browser. The <body> tag wraps the entire page content; the <head> tag contains the title of the page to appear on the browser toolbar. While it is possible to describe the style of a document inside the HTML file, it is preferable to express it in a separate file using cascading style sheet (CCS) in its most current available version (e.g., CSS3). CSS is a standard style sheet language for styling, transformation, and animation of a document. The separation of the document structure from its presentation is particularly beneficial since multiple CSS styles can be created for the same document. This is particularly useful considering the different needs of mobile and standard devices. Figure 2 shows how the HTML file of Figure 1 is rendered after test.css is linked to the file in the <link> tag.

...

  • Loading...
locked icon

Sign in to access this content

Get a 30 day FREE TRIAL

  • Watch videos from a variety of sources bringing classroom topics to life
  • Read modern, diverse business cases
  • Explore hundreds of books and reference titles

Sage Recommends

We found other relevant content for you on other Sage platforms.

Loading