Questions tagged [web]

Do not use this tag. For questions related to an aspect of the world wide web, use a more specific tag for it, such as [uri], [html], [http] or [w3c].

The World Wide Web (abbreviated as WWW or W3, and commonly known as "the Web") is a technology that connects various kinds of systems with interlinked hypertext documents accessed using networking protocols.

The credit of inventing the World Wide Web goes to many researchers, but it was Tim Berners-Lee also known as TimBL who not only proposed the idea of WWW (at CERN in 1989) but also gave his full contribution in development of 3 very significant technologies:

  1. Invention of URL (Universal Resource Locator) and URI (Universal Resource Identifier).
  2. HyperText Markup Language (HTML)
  3. HTTP (HyperText Transfer Protocol), a protocol for transferring HTML

The World Wide Web is an interconnected network which works as a bridge not only between two terminal ends (Web browser & Web server) but also to connect client machines to database servers with controlled access.

With a Web browser (client), one can view web pages that may contain text, images, videos, and other multimedia, and navigate between them via hyperlinks. The default port for requests and responses via HTTP protocol is port 80.

A web server, on other hand, receives the client's requests and generates the proper response for it. This includes an HTTP status code (like 200 Ok or 404 Not Found), a list of HTTP headers (which control things like response format and cookies), and the response body (like HTML content).

47790 questions
5
votes
1 answer

How to develop for multiple platforms in flutter when some packages are not compatible with some platforms?

I am trying to migrate my existing Flutter app to web. The problem is that certain packages are not compatible with Web, (e.g. path_provider and many others). I don’t really want to build a whole new project so is there a way to exclude certain…
ouzari
  • 397
  • 3
  • 12
5
votes
1 answer

Don't let to write a number greater than max attribute in input

document.querySelector("#maca").addEventListener("keydown", function(e) { if (e.target.value > this.getAttribute("max")) { e.preventDefault(); } }) I'm trying to stop…
maca
  • 480
  • 3
  • 12
5
votes
1 answer

How to share reqwest clients in actix-web server?

I'm building a web server with actix-web, and one of the methods uses reqwest to make HTTP requests to an external API: #[get("/foo")] async fn foo() -> impl Responder { let resp = reqwest::get("https://externalapi.com/bar").await?; # GET request…
tamuhey
  • 2,904
  • 3
  • 21
  • 50
5
votes
5 answers

What is the difference in putting a javascript in a file and in a script tag?

What is the difference between the following two codes in an HTML file? If I add one more javascript file xyz.js after including the abc.js, is there any priority associated when the scripts are being used? First code: