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
50
votes
8 answers

FirebaseOptions cannot be null when creating the default app

I am trying to try a sample project in Flutter integration email and google based login, and planning to use firebase initialisation for doing it while I have followed all the steps as mentioned in tutorials I am getting this error as soon as…
paras 231096
  • 533
  • 1
  • 4
  • 7
50
votes
6 answers

Java EE Containers vs Web Containers

I'm relatively new to Java EE/EJB, and I've been reading a lot regarding Java EE containers. I've had experience working with a web container (WAR file in JBoss). I am also aware that JBoss can also be used as a Java EE container. What is the…
mel3kings
  • 8,857
  • 3
  • 60
  • 68
50
votes
2 answers

Resize external website content to fit iFrame width

I have a webpage with 2 iFrames in it. Both of them are with fixed width and height. I am loading external websites inside them. How can I resize those external websites width to fit with the iFrame (like mobile browsers does by changing viewport)?
Tahin Rahman
  • 1,154
  • 1
  • 11
  • 20
49
votes
6 answers

preconnect vs dns-prefetch resource hints

https://www.w3.org/TR/resource-hints/ If I understand correctly, both are used to initiate an early connection to load resources faster at a later time. preconnect is just doing "more". Apart from a better browser support, is there any reason to use…
Robin Drexler
  • 4,307
  • 3
  • 25
  • 28
48
votes
3 answers

Alternatives to REST API pattern

I am writing a thesis which involves a comparison between RESTful web APIs and their corresponding alternatives. The problem is, I am quite biased towards REST and am failing to find any noteworthy architectural patterns that could be compared. My…
Crossfire
  • 1,801
  • 3
  • 21
  • 37
47
votes
4 answers

Uncaught (in promise) TypeError: Failed to execute 'Cache' on 'addAll': Request failed on progressive web app

I am following a simple PWA tutorial, but when I complete it I get the following console error, Uncaught (in promise) TypeError: Failed to execute 'Cache' on 'addAll': Request failed Here is my serviceworker file const staticDevCoffee =…
Danny Jebb
  • 802
  • 1
  • 7
  • 16
46
votes
5 answers

How to take a snapshot of HTML5-JavaScript-based video player?

Actually, i have a HTML5 page with JavaScript function that allow me to play a wmv video file. I need to take a snapshot when the video is playing (with pause or without) and saved in any image format JPG or BMP whatever. Any help will…
Ahmed MEZRI
  • 514
  • 1
  • 5
  • 7
46
votes
2 answers

What is the size limit of a Base64 DataURL image?

I would like to know what is the maximum length of a Base64 DataURL Image to be load in a browser? Thanks!
Pierre
  • 1,274
  • 1
  • 9
  • 14
45
votes
2 answers

What is the difference between local storage and cache in the browser?

When we open application segment in the developer console of chrome, we see many things like: Application Manifest service Workers Storage local storage session storage indexed db Web sql Cookies Cache Cache Storage Application Cache I…
45
votes
5 answers

Internal navigation rejected: in Cordova on iOS

I have built an iOS app using Cordova. The app tries to load a web page e.g. http://yourdomain.example/home in index.html. But, the page stays white blank with error in console "Internal navigation rejected - not set for…
Ravi Ranjan Singh
  • 809
  • 1
  • 6
  • 19
45
votes
11 answers

Opening PDF in a browser with Github Pages

I am using GitHub Pages to host my website. I have a PDF file that I want visitors to be able to open directly in a browser. But when I upload the PDF file to GitHub Pages and link to it it opens in GitHub's viewer. Is there any way to open the PDF…
Yan Song
  • 2,285
  • 4
  • 18
  • 27
45
votes
2 answers

Why is Symfony2 performing so bad in benchmarks and does it matter?

My colleagues and I are in the process of choosing a web framework to develop a high traffic web site. We are really good with node.js + express and php + symfony2. Both are great frameworks but we are a bit concerned about Symfony2 because it seems…
Jean-Philippe Leclerc
  • 6,713
  • 5
  • 43
  • 66
45
votes
2 answers

Why Shadow DOM when we have iframes?

I heard of shadow DOM which seems to solve the problem of encapsulation in web widget development. DOM and CSS rules get encapsulated which is good for maintenance. But then isn't this what iframes are for? What problems are there with iframes that…
Le Curious
  • 1,451
  • 1
  • 13
  • 13
44
votes
5 answers

Images in SVG Image tags not showing up in Chrome, but displays locally?

For some reason, Chrome is displaying the SVG without the images in its Image tags. Here is a sample from my SVG: blocker.png is a local file, but…
sgruggy
  • 553
  • 1
  • 4
  • 6
44
votes
13 answers

Share a link via URL scheme to Telegram

I want to share a link via URL scheme for Telegram. I have created this: tg://msg?text = www.example.com?t=12 The link, opens telegram but nothing else happens. I have used the same code for Viber, and it works: viber://forward?text =…
farhad1985
  • 551
  • 1
  • 4
  • 8