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
34
votes
10 answers

when to use index.php instead of index.html

I am relatively new to php. There is a very basic thing that has been troubling me. I understand that php is used to make web sites dynamic. I also understand that php is one of the many server side scripting languages that can be used to make…
34
votes
13 answers

Starting a page at a certain scroll point

Is there a way (with CSS3, JS, or anything in between) to get a page to start at a certain point scrolled down? I'd like for my page to load without the header initially displaying on load (meaning it's above the actual viewport of the user). Is…
aroooo
  • 4,726
  • 8
  • 47
  • 81
33
votes
13 answers

java.lang.IllegalArgumentException: No suitable parent found from the given view. Please provide a valid view

my app crashes when trying to display server message and I think the problem could be with my getView(). below is the registerActivity were the crash occurs and my activity_register.xml import android.app.Activity; import…
Mani
  • 423
  • 1
  • 4
  • 13
33
votes
5 answers

Create single and multiple resources using restful HTTP

In my API server I have this route defined: POST /categories To create one category you do: POST /categories {"name": "Books"} I thought that if you want to create multiple categories, then you could do: POST /categories [{"name": "Books"},…
wingy
  • 541
  • 2
  • 6
  • 14
32
votes
13 answers

Check internet connection in web using Angular 4

I am using Angular 4 for my application development. I need to check If the network connection is available for its have any Connection issue using Angular for. Is it possible with Angular 4. I checked with https://github.com/HubSpot/offline . I…
Sarath
  • 1,459
  • 3
  • 22
  • 38
32
votes
6 answers

Django exists() versus DoesNotExist

I have some questions about django exists() and DoesNotExist exception. Example code: id = 1 # first if User.objects.get(pk=id).exists(): # my logic pass # second try: User.objects.get(pk=id) # my logic pass except…
Dato Gachechiladze
  • 341
  • 1
  • 3
  • 3
32
votes
2 answers

Why does http:// contain two slashes and file:/// three in a browser navigation bar?

Why does http:// contain two slashes—is that just a standard for a URL, or does it have any logical meaning? And why does file:/// contain three slashes, as in file:///C:/a.html?
user6117584
32
votes
4 answers

What's the substitute for ::shadow and /deep/?

The two shadow-piercing combinators have been removed, as stated in https://www.chromestatus.com/features/6750456638341120 So, what's the substitute for achieving the same thing? Or has this shadow-piercing feature been completely abandoned?
Zhengquan Bai
  • 1,057
  • 3
  • 14
  • 31
32
votes
2 answers

Difference between Notifications API and Push API from Web perspective

What is the difference between Chrome Notifications API and the Push Notification API when developing Web notifications. When each one should be used and how are they different?
32
votes
2 answers

What's the difference between WebSocket and plain socket communication?

According to the Wikipedia, the only relationship between HTTP and WebSocket is an extra handshake in the form of a Upgrade HTTP request. And after that, it seems the browser and HTTP server will just communicate in an old C/S paradigm over a plain…
smwikipedia
  • 61,609
  • 92
  • 309
  • 482
32
votes
5 answers

Determine if the object has a property and value in javascript

I wanted to check if the an object has a property of something and its value is equal to a certain value. var test = [{name : "joey", age: 15}, {name: "hell", age: 12}] There you go, an array of objects, now I wanted to search inside the object and…
Joey Hipolito
  • 3,108
  • 11
  • 44
  • 83
32
votes
5 answers

Such thing as a dummy REST server to test HTTP requests?

I have been searching around but cannot find any site like this. I want to know if there is some dummy server that will respond to test GET requests and return a JSON object? Basically something…
Matt Hintzke
  • 7,744
  • 16
  • 55
  • 113
32
votes
3 answers

How to set this icon for the web page?

I would like to know what is this little icon called? And how to set the icon for that? Thanks.
DNB5brims
  • 29,344
  • 50
  • 131
  • 195
31
votes
5 answers

Using Python to sign into website, fill in a form, then sign out

As part of my quest to become better at Python I am now attempting to sign in to a website I frequent, send myself a private message, and then sign out. So far, I've managed to sign in (using urllib, cookiejar and urllib2). However, I cannot work…
Matthew
  • 2,232
  • 4
  • 23
  • 37
31
votes
9 answers

How to exclude / disable Redux devtools in production build or disconnect?

As its name suggests devtools should be visible or accessible only during development and not in production. I don't want my end users playing with the state and dispatcher or seeing what's going on under the hood. Is there a way to hide Redux…
Pushkin
  • 3,336
  • 1
  • 17
  • 30