vasanthk / how-web-works Goto Github PK
View Code? Open in Web Editor NEWWhat happens behind the scenes when we type www.google.com in a browser?
What happens behind the scenes when we type www.google.com in a browser?
labelling IDs as b
labelling classes, selectors etc as c
but then counting the opposite in examples
Can you add what happens behind the scene while downloading and also uploading a file into the server?
can i translate to other language?
will you merge it?
Your discussion of concatenating for specificity has a problem with it - if c or d are both at 10 or above. What I mean is, if you have 10 or more classes or tag names, pushing the numbers together without any separating dashes or commas gives you an incorrect specificity.
Suppose 1 id, 10 classes and 2 tags - with concatenation, that gives you 1102, which is incorrect. If you have another element that is just 2 ids, no classes and no tags, the concatenated number would be 200, which beats the concatenation of 1102.
You also can't add the numbers together, because 10 classes do not have the same specificity as 1 id (Here's a CodePen where I put 100 classes and 1 id on an element: https://codepen.io/dtarvin/pen/gOqPKaM).
You can only show the true ranking of specificity by separating the numbers with dashes or something like this: 1-10-2, 2-0-0. The highest number in the first column wins. If they're the same the highest column in the second number wins. If they're the same the highest number in the third column wins. If they're the same the style that is lowest in the stylesheet wins.
I would be happy to submit a pull request on this if you like.
You will need to check whether the string entered into the address bar is a url
, it could be also an ip address
, if the string is not an url, it could also be a search phrase, which opens up the search engine of your own preference in modern browsers.
Hi, how are you?. I've been working for a few days on a similar topic that I think is quite complete at the moment, but it's in Spanish and I would also like to help more people to spread information about how the web works and that you can build something complete and in several languages I don't know. If you're interested we could work together or something like that and translate it or something so that both guides are complete.
The link of my repo is this
Greetings
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.