WEB programming (4 ).... HTML page

Source: Internet
Author: User

In (1), the web server and ApplicationProgramServer... the user enters the website address (starting with HTTP) in the browser (implementing the HTTP client software) ====>= after a series of parsing, conversion, transmission (assuming the input is correct ), ====>= the server will be located (another computer or local machine) ==>= after resolution, conversion (assuming there is no error) ==>= success) ==> convert the file content and return it along the original path. The content is finally parsed by the browser and presented to the user; a lot of nonsense: that isThe entered address already contains [Protocol: // host address: Port] and other information. You can locate a port on a certain machine ,, software listening on this port will process the received information.Locate a file and convert the data to the client...

The original website is static (may only contain text files). --> with the HTTP protocol, with HTML tags, etc. ===you can transfer hypertext and display --> with JS, etc ==you can perform some simple interaction processing on the client --> with a variety of language libraries (java, C #, PHP, etc.) programs can be more complex (such as linking to databases) === some software packages can be used to link the Web server to the Application Server ==== finally, what I want to say .. as before, some requests can be sent to the corresponding program (for example. PHP. aspx.. net, and the JSP is handed over to Java.) After the application is processed, it is restored to HTML -- passed to the client ..

I don't know if I can understand it like this? :
For example:After IIS is installedOnly files such as htm and HTML, but only labels such as After. Net framwork is installed, {In the Computer Management-Internet Information Service-website-attributes: aspnet_filter.dll is added to the ISAPI filter; ASP extension is added to the main directory-configuration- ing, the executable file is the aspnet_isapi.dll option. and in the document, the default. aspx. asp.net is also added to the website property page }}}In this way, IIS can recognize requests suffixed with Aspx., You can hand over a tag like <asp: ***> </ASP: *** >,< % # %> to the Net Framework for processing... PHP is similar. If PHP is installed with the installation version and IIS is selected, php5isapi is automatically added. DLL ,. PHP configuration. Otherwise, you must manually configure the configuration. after the configuration, you can identify similar <? PHP?> If you want IIS to recognize JSP files, install and configure a program similar to ** jspiisapi. dll.

As for data binding and logic processing, different languages have different tags, such

Commonly Used in vertex net: <%> Nested C #Code

On the JSP page:<%> JAVA code can be nested internally.

On the PHP page:<? PHP?> Nested PHP code

----- With these, you can add some logic judgments to the HTML page, which facilitates Page Reuse. common applications: 1: A detailed information editing page can be used as either an add page or a modify page. When a page Jump is implemented in the background, a parameter, such as action, can be passed. If there is a difference, the following code is used:

< Title >
<% If (Action = " Add " ){ %>
Add page
<% } Else { %>
Modify page
<% } %>
</ Title >

All right, I have finished talking about it. in Web programming, the front-end, from the client perspective, always shows HTML pages, including some js code. [Javascript is visible on the client, which leads to one point: easy to reuse, the JS of a website looks good and only needs to be viewed.Source code, Find the corresponding Js for analysis. You don't need to know how to implement it. You just need to understand how to use it !! The ideal is this, but it can always be difficult to understand, such as displaying a line without line breaks, being broken], art is naturally very important, especially entertaining, the appearance of portal websites is very important... as for server-side processing, as long as you understand how to bind data, other programming languages are similar ....

Websites cannot be used as front-end websites. Some special effects are required, such as HTML tags, JS, CSS, Div, and jquery)

----

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.