Jump to content

Web page

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by YurikBot (talk | contribs) at 11:08, 23 March 2006 (robot Adding: no:Nettside). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

A Web page or webpage is a resource on the World Wide Web, usually in HTML/XHTML format (the file extensions are typically htm or html) and with hypertext links to enable navigation from one page or section to another. Web pages often use associated graphic files to provide illustration, and these too can be clickable links. A web page is displayed using a web browser.

Hebrew Wikipedia's main web page

A web page can contain any of the following:

  • Text
  • graphics (gif, jpeg or png)
  • Audio (.mid or .wav)
  • Interactive multimedia content that requires a plugin such as Flash, Shockwave or VML
  • applets (subprograms that run inside the page) which often provide motion graphics, interaction, and sound

Web pages also contain content that cannot be seen in the browser:

  • Scripts (usually JavaScript) which add functionality to the page - e.g. powering rollover effects or verifying form input.
  • Meta tags - hidden content with information about the page, instructions for search engine robots, etc. The keywords and description meta tags help search engines categorise the page and provide information for search results.
  • Cascading Style Sheets (CSS) which determine how the page is formatted
  • Comments

Web pages can be larger than the web browser window. They are often taller than the browser window and require vertical scrolling. Pages sometimes have additional content on the right which is not visible in smaller windows without horizontal scrolling. Pages designed to scroll horizontally are less common, partly because they sometimes do not print out well, but mainly because visitors find having them inconvenient. See also page widening.

A web page can be either a single page, or a frameset made up of separate frames. Each frame contains an HTML page. Frames can cause problems with navigation and printing and can adversely affect search engine ratings. Their main merit is to allow some content (usually a navigation menu) to stay in one place while other content is scrolled. This effect is now possible using CSS and if it is required this is the recommended way to achieve it.

A collection of web pages stored in a single folder or within related subfolders of a web server is known as a website. A website includes an index page. This is a file with a special name, often index.html or something similar, which is defined in the web server's configuration. When a visitor requests a web address URL which doesn't include a page (e.g. www.mysite.com) the web server will look for an index page and serve that to your browser. If no index page exists, you will see either a listing of the folder's contents, or an error page (depending on other web server settings).

A consideration in designing and testing web pages is that they should meet the recommendations for correct HTML, CSS and other standards as laid down by the World Wide Web Consortium. This is so as to keep the World Wide Web free and available to all. If you do this, your web site will be suitable for many browsers and browser settings and different screen resolutions, as well as accessible to people with disabilities (e.g. sight impairment), older browsers and text-only browsers. Target audience, budget and lack of awareness of accessibility issues often mean that a site is not as accessible as it could be. Using features which only work in one browser without providing alternative content is considered bad practice; the World Wide Web Consortium works with web server and browser designers to develop web standards and encourage standards compliance.

A navigation bar, linkbar, link bar or links bar is an area/a pane of a web page that contains hypertext links in order to enable navigation from one page of a website to another.

URL

Usually a web page has a more or less permanent URL, a so-called permalink, which therefore allows deep linking. Some URLs refer only to a cache area, e.g. when the page is the result of zooming and shifting a view of a map. Other URLs contain query data that define or change the information displayed on the resulting page in some major or minor way.

Graphics

For embedding (transclusion) of an image in a web page, see HTML element#Images.

The graphics file format in web pages is usually JPEG for photographs and GIF or PNG for other images such as diagrams, drawings, graphs, etc. The last two formats can also be used for photographs but are not as suitable for that purpose as JPEG (JPEG is lossy while GIF and PNG are lossless). GIF is used for animations, GIF and PNG for images with transparent pixels, PNG for images with partially transparent pixels (but this is not supported by e.g. IE). All these are raster graphics. There is also the SVG format: Scalable Vector Graphics. Currently more common ways to supply vector graphics are either with a PDF file, viewed either using a plug-in of the browser or a separate viewer, or with Flash. This is useful e.g. for a map, often a combination of a vector graphics layer and text, and possibly a raster graphics layer. This gives better results when zooming in than a GIF or PNG image (JPEG would be even worse due to compression artifacts).

Alternatively, on zooming in the server supplies a new image. In that case one can not download the whole map, unless perhaps piece by piece. See e.g. the links in Map#External links.

Also, as an example, compare the GIF and PDF province maps in South Holland#External links.

See also Map#Electronic maps.

Viewing a web page

Since most web pages are mostly text, you can view them in any application that can read text documents. However, to view a web page, as it is intended, one needs a type of software known as a user agent or better still a web browser, which is a piece of software specifically designed to view web pages. There are many different types of web browsers available with various capabilities and a wide range of supported platforms.

Creating a web page

To create a web page, one needs a general-purpose programming editor or text editor or a specialised HTML editor like Apple iWeb, Microsoft FrontPage, Macromedia Dreamweaver, Mozilla composer (also known as WYSIWYG editors) and so on, and an FTP client to upload the page to the web server. One can often use tools supplied with the computer, such as the file explorer or web browser to upload a small number of web page files to a remote server.

One may use a pre-made web template to create a web page. Web Templates let web page designers edit the content of a web page without having to worry about the overall aesthetics.

Wiki is a special way to create or modify and upload web pages without FTP-ing or upload file, only filling a text form in a web page. Wikipedia is an example of wiki technology.

Other options for easy web page creation and management are different content management systems (CMS), including blogs.

Saving a web page

When saving a local copy of a web page, the web browser usually allows a choice between:

  • saving the rendered text without formatting or images, and without indicating which words are links or what their destination is
  • saving the HTML-file without changes, without images (view the source and save that)
  • saving the HTML-file, changing relative links to absolute ones, without images
  • also saving the images and adjusting the references to them accordingly; either a separate folder is made (IE, Mozilla) or the same is used (Opera);
  • saving the HTML-file including all images, stylesheets, scripts etc. to a single .MHT file. This is support by Internet Explorer, Mozilla and Mozilla Firefox (the last two only if the Maf plugin has been installed). An .MHT file is based upon the MHTML standard.

The common web browsers, like Mozilla, Mozilla Firefox and Internet Explorer, also allow you to print the currently viewed web page or optionally "print" to a file which can later be viewed or printed. This has an advantage in that some web pages are specially designed using Cascading Style Sheets, or a separately generated page, to show both the text and target destination of links contained within the web page. Likewise any images are contained within the single file.

For a short page another possibility is saving a screenshot (only useful in special cases). This shows links, but not their destination.

See also