What is a web browser? What is a web page? Used for withdrawal

25.12.2023 Laptops

One of the most popular Internet services today is the World Wide Web (WWW). This part of the Internet has become so popular that many users mistakenly equate the World Wide Web with the Internet.

What is it that attracts users to the World Wide Web?

The World Wide Web was conceived as an information field that consists of many documents. The most important thing in this idea was that all documents and their parts should be linked by hyperlinks.

A schematic example of linking pages using hyperlinks is shown in Fig. 20.1. As you can see, if you draw lines connecting hyperlinks in several documents, the overall appearance of the picture begins to somewhat resemble a spider's web. Hence the name of the service - World Wide Web (the word Web in English means “web”).


Rice. 20.1. Linking pages using hyperlinks.

To view web pages, you need a browser program. Its main feature is that it not only shows the text, but also highlights hyperlinks in it. When viewing text, the user can activate any hyperlink and thereby trigger a transition to a related document or the desired location in the current document.

In modern browsers that support a graphical interface, activating a hyperlink is usually accomplished by clicking the mouse. It is also accepted that when you hover the mouse pointer over a hyperlink, it changes its appearance like a hand (Fig. 20.2). Additionally, hyperlinks are usually blue and underlined by default, although many web pages do not follow these rules for the sake of overall appearance (design).


In the document text itself, HTML (or its more modern version, XHTML) is usually used to create hyperlinks. A hyperlink contains an indication of the document that the user should go to when clicking on it, and possibly a specific location in that document. Conventional hyperlinks, organized using HTML or XHTML, are unidirectional, meaning that it is impossible to determine from a document which documents link to it.

HTML has become the primary standard for presenting web pages. In addition to organizing hyperlinks, its modern version supports the following features:

Text formatting (font size, typeface, italics, style, etc.);

Selecting text and background colors;

Support for tabular presentation of material;

Support for inserting images into text;

Breaking down the material into blocks, each of which can be presented independently of the other;

Presentation of material in the form of bulleted and numbered lists.

Modern browser programs can do more than just display text and activate hyperlinks. Typically, they support displaying images, inserting audio and video objects, executing scripts (written in a special JavaScript language) inside the page code, caching material (automatically saving recently viewed pages so you can quickly return to them) and much more.

You can use various browser programs to view web pages.

Consider, for example, the browser that is built into the Windows XP operating system - the Internet Explorer program (Fig. 20.3).


Rice. 20.3. An open web page in Internet Explorer.

To view a web page, enter the address of the desired page in the Address line. To clear this line in Internet Explorer, use the standard delete key – Delete. After entering the address, press Enter.

Please keep in mind that sometimes web pages appear differently in different browser programs. This especially applies to modern complex pages.

Sometimes pages written in foreign languages ​​open in the wrong encoding, that is, for example, Russian text looks unreadable (Fig. 20.4 a, b). In this case, you need to select Encoding from the View menu and then the correct encoding option. This could be, for example, Cyrillic K0I8-R. If different encodings are observed in different parts of the page (for example, the left part of the page is displayed normally, but on the right, instead of Russian text, there is an incomprehensible set of Latin letters with icons), right-click directly on the place of the page where the unreadable text is located and select Encoding from the context menu.


Rice. 20.4. Web page with Cyrillic characters: in the required encoding ( A) and in incorrect encoding ( b).

In Internet Explorer, you can view the source HTML code of a page by selecting View HTML Code from the View menu. If a page has several frames, that is, separate “half-windows”, each of which displays part of the page, the HTML code of the desired frame can be viewed by selecting the item of the same name from the context menu after right-clicking in the desired frame. However, please note that if the page is generated by a server-side script (such as PHP), you will not be able to view its source code, but only the HTML code generated by the script.

At any time, you can insert a bookmark on the page you are viewing by pressing CtrL+D. All created bookmarks are links to Internet pages. In the future, you can select them from the Favorites menu to quickly go to the desired page.

If you select Arrange Favorites in the Favorites menu, a separate bookmark editor window will open. Here you can rename any of the bookmarks, create new ones, sort them into groups (folders), insert separators, etc.

Using a browser program, you can not only view the content of web pages, but also send any data back to the server, if this is provided by the page creator. Among the sites where you need to not only read information, but also send it to the server, the following stand out:

Search engines;

Online stores;

Paid Internet resources.

Forums are special web pages that organize communication between people based on their interests. For example, by visiting the page at cLub60.org, you will be taken to the Nokia smartphone user forum.

You can register on the web page of any forum by submitting some initial information about yourself and entering your name to represent you on the forum (possibly a pseudonym, or, as they say on the Internet, a nickname) and a password. Subsequently, you will be able to log in to the forum using your username and password, after which you will be able to send messages to the forum.

The forum is usually organized in the form of several thematic sections, in each of which you can start a discussion of a topic by sending a corresponding message, or respond to statements from other forum participants. Once sent, your messages immediately appear on the site, so that all other forum visitors can immediately read them.

Well-organized forums make it fairly easy to find topics that interest you. Some particularly large forums often organize a special site search service.

Search engines are web pages that allow you to search for various resources on the Internet. They are used when the user does not know the exact address of a particular Internet resource or simply wants to find information on a topic that interests him.

There are many search engines on the Internet, the most famous of which are:

Yahoo! – yahoo.com (more of a resource directory, but with search capabilities);

Raya - raya.ru (interface for searching in three search engines at once - Google, Yandex and Rambler).

In addition to general purpose search engines, there are also more highly specialized search engines, for example, for searching music files, products on the Internet, etc.

Online stores are websites that are organized as virtual stores. Here you can look at the products, if you wish, get to know the characteristics of each of them more closely, look at an enlarged image of the product and, of course, find out its price. Then you can click on a special hyperlink to add the products you like to the “cart” - to a special section of the site. When all the products have been selected, you can view your “cart”, see the total cost of purchases, change the list of selected products if necessary, and place an order. To do this, you need to enter the address where you want the order to be delivered and your name. Usually you also need to provide your phone number so that the store courier can call and clarify the necessary details.

Usually the order is paid directly upon delivery. However, there are systems that allow you to pay it in advance, for example, using a credit card or one of the Internet payment systems, of which there are several - WebMoney, Yandex-money, etc.

Paid resources are websites that require you to first pay money to the creator of the resource to view them. Despite the fact that most web pages on the Internet are accessible to everyone, there are also paid resources. For some reason, some users believe that these are necessarily obscene web pages “for adults”. However, any resources containing exclusive information may be paid. For example, the Internet provides paid access to an electronic version of Grove's encyclopedic dictionary of music. Many artists provide paid access to pages where you can listen to their new recordings, etc.

Such a resource usually consists of a free main page and the actual content of the resource. The main page contains information about what awaits the user who pays for the resource information. Here, a form for payment is usually offered, which, as a rule, can be made using a credit card or one of the Internet payment systems.

The paying user is usually given a special password to access the paid information, after which he can view it. On many updated resources, a subscription to the resource is paid, that is, access after payment is provided for a certain period of time.

To work on the WWW on your computer, you must have a special program - a browser. Browser is an application program that interacts with the WWW and allows you to receive various documents from the network, view and edit their contents. Browsers provide the ability to work with documents containing text and multimedia information. In addition, they support all the previously discussed Internet access methods and protocols.

On the WWW, documents typically contain hypertext (text with hyperlinks). Unlike ordinary texts, online documents contain commands that define their structure, including links to other documents. This allows the browser to format the document for display on the screen according to the capabilities of a particular computer. Since the Internet uses heterogeneous hardware and software, a universal hypertext markup language, HTML (HyperText Markup Language), was adopted for the development of Web pages.

HTML contains a set of commands used to describe the structure of a document. Using HTML, a document is divided into appropriate logical components: paragraphs, headings, lists, etc. The specific formatting attributes of a document (body text and highlighted components) when viewing it are determined by the browser used.

The most common browsers are:

    Mosaic for Windows;

    Cello program;

    Linx program;

  • Microsoft Internet Explorer (MSIE);

    Netscape Communicator.

Let's briefly consider their purpose and main capabilities. The main focus will be on MSIE, as one of the most popular browsers. Its latest version 4.0 is distributed free of charge on the Internet by Microsoft and is included in Windows 98.

Mosaic for Windows- one of the first viewing programs. It has a very simple graphical user interface and allows you to display formatted Web documents on the screen. Its disadvantage is the need to install additional software for working with graphic files, audio and video images, which is not included as standard in the browser.

Program Cello was developed as an alternative to Mosaic. Directly provides access to HTTP, Gopher, FTP servers, UseNet teleconferences, and also supports working with Telnet when using external client programs. The program has a very simple interface, which allows you to quickly master working with it. The inconvenience of working with the browser is the small number of buttons on the control panel, so you constantly have to work with drop-down menus.

Program Linx refers to browsers with a text interface. Hypertext links are highlighted on the screen with a different color or an inversion of the background and text colors. The advantage of this browser is the ability to quickly find text information on the WWW using hypertext links. Pages you have viewed can be marked using bookmarks, which can be created while working in the browser.

Browser EINet WinWeb differs for the better in the small amount of main memory occupied during operation, good support for interactive forms, stable and reliable operation. The navigation mechanism is implemented simply and conveniently for the user. There is a built-in tool for searching documents using keywords. Browser settings allow you to select the fonts and colors used when displaying documents and highlighting hyperlinks.

Browser Internet Works allows you to work not only with WWW, but also with FTP and Gopher servers. The documents the user works with can be presented at three levels. In this case, the transition from page to page can occur both within one level and between them, using the toolbar buttons and the ability to work in multi-window mode. Viewing a text document can occur while simultaneously downloading multimedia files in the background. It is possible to customize the interface by the user.

The generally recognized leaders among programs for viewing and editing Web documents - the Netscape Communicator and Microsoft Internet Explorer browsers are the most convenient and multifunctional. They allow you to display on the screen any documents created in any operating environment and on any computer with a configuration that allows for network operation.

Differences between browsers

So, before we go any further, let's take a look at browsers and see what they can and can't display. Indeed, everything that we write will be viewed by the user in browsers, and if we do not focus on specific browsers, the result may be the most unexpected.

Of course, simple pages (like the one we wrote in the previous section) will most likely look the same in all browsers. However, the more complex the page, the greater the differences in its perception by different viewing programs. These differences can be in the layout of elements on the page, how they react to user input, how individual elements look, etc. When creating a web page, it can be helpful to view it in different browsers and adjust the code based on what you see. It can often happen that a page that looks very beautiful in one browser will simply be unreadable in another. Creating a complex page that looks almost the same in different browsers is not an easy task. Therefore, we would recommend focusing on one browser, and maintaining compatibility with others only at a minimum level. You can also create copies of pages for different browsers, but there is also a small problem here, which we will discuss below.

And finally, the simplest solution: having created a page, write at the beginning of it something like: “Looks best in such and such a browser” and place a link next to it, by clicking on which the user could download the desired viewer program. However, we must keep in mind that not all users are likely to want to do this, and not only because not all browsers are free. Firstly, not everyone has the opportunity to download large amounts of data from the Internet, and secondly, many are already accustomed to using some kind of viewing program, and advice to urgently install another one will cause them, at best, bewilderment.

Internet Explorer browser

Today, the most popular web browsing program is Microsoft Internet Explorer, which is used by approximately half of all Internet users. MS Internet Explorer version 5 supports most requirements HTML 4.0, and it is this program that we will focus on in the examples given in this book. This program is free and can be downloaded from http://www.microsoft.com/windows/ie_intl/ru/download/. There you can update the browser version and download various add-ons for this program. Almost all of the cardinal innovations have appeared in MS Internet Explorer since version 4. However, some aspects, mainly related to the reaction to user actions and the interpretation of code written in JavaScript, have changed significantly in the fifth version. Therefore, do not be surprised if a page written for Internet Explorer version 5, when viewed in version 4, displays, for example, messages about a “script error.” By the way, the fifth version of Internet Explorer is capable of automatically correcting minor inaccuracies. Other browsers do not know how to do this, and for them these inaccuracies will result in error messages. Internet Explorer supports not only JavaScript as a scripting language, but also the VBScript language invented by Microsoft, which is derived from the Visual Basic language. Since web pages written using VBScript actually exist, only using the Internet Explorer browser today allows them to adequately display their content. VBScript introduced some interesting features that were missing in JavaScript 1.0, such as the ability to automatically ignore errors in a loop ( On Error Resume Next). We do not cover the VBScript language in this book, since JavaScript is still the universal scripting language today.

As for earlier versions of MS Internet Explorer, their use raises a number of problems. For example, the third version uses a rather unique implementation of JavaScript, and some functions written for later versions or for Netscape browsers do not work quite correctly in Internet Explorer 3. Moreover, since the project HTML 4.0 it was still just in its infancy, Internet Explorer 3 lacks functions for responding to user actions, the ability to arbitrarily arrange design elements, etc. There is also no support for cascading style sheets. In some cases, there are problems with navigation between frames. And in even earlier versions of this browser there was no support for scripting languages ​​at all and only the most basic tools were available.

Netscape Navigator browser

The second most popular browser in the world is Netscape Navigator. Unlike MS Internet Explorer, this program is implemented for many platforms, including OS/2 and UNIX with its clones. On non-Windows computers, Netscape Navigator continues to be the most popular web browser.

At the time of this writing, the second preliminary release of the sixth version of Netscape Navigator has been released. This version also supports many requirements HTML 4.0, however, not to the same extent as in MS Internet Explorer 5. In particular, not all elements of a web page can still respond to user actions. Netscape Navigator is available free of charge from www.netscape.com. The previous version of this program (the fourth) did not support new tags proposed in the fourth version of Internet Explorer (for example