W3.css – A minimal alternative to Bootstrap
w3schools.com
w3schools.com
Has w3schools gotten any better over the years? Would anyone consider using this or any package from them?
https://developer.mozilla.org/en-US/docs/Learn/Getting_start...
Check out this page: https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bloc...
> The `margin-block` CSS shorthand property defines the logical block start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation.
Whew, that's a lot.
Setting aside how inside baseball the terms "logical block" and "physical margin" are, this description fails to tell the reader why they would want to use this property. Why use this, instead of `margin`? It's nowhere on the page. Typically, that reasoning lays buried in the distant and forbidden "Guides" section (which MDN's search doesn't index).
To find our reasoning, you must go to Guides, under CSS expand "CSS building blocks," then finally click "Handling different text directions": https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_...
“But look, you found the explanation for `margin-block`, didn’t you?”
“Yes I did. It was on display in the bottom of a locked filing cabinet stuck in a disused lavatory with a sign on the door saying 'Beware of the Leopard.'”
> how to find the guides
I'll let you know when I learn how to find the guides. I didn't even know that one existed until I scoured the site.
What you won't find are general details on the more specific references. Unfortunately, search engines prefer the specific ones, so you will have to backtrack by yourself.
I only need MDN when I want to read stuff 'deep', but 98% of the time I don't need that depth.
MDN is also hard to navigate, it works like a thick dictionary to me, it will be needed, but only rarely.
MDN is a bit technical at times and doesn’t always have detailed examples a beginner might hope for.
Their website has, no idea about the company itself tho.
Step 1: W3schools.com is the first link on Google, so I'll go there.
Step 2: OK, I copy/pasted some of the code into my Sublime Text scratchpad file, but I'm getting an error when I load it in the browser.
Step 3: Do a search on the error message, StackOverflow is the first result. Go there and find the issue (syntax error on W3schools page)
Compare this to a world where StackOverflow is always #1. Try posting a question about learning HTML and CSS and see how fast the mods delete your question. W3Schools serves an important purpose.
=> https://www.w3schools.com/jsref/jsref_match.asp
=> https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Comparing these two pages, only the second one is competent at describing what the function actually does. Neither is perfect. The MDN doesn't do a great job of communicating all the information, but at least all of the information is there.
The purpose of having Symbol values is to ensure the property keys are unique and can't collide with string keys that predate new standards.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
I think I've been using MDN for 20 years (I don't remember honestly when it first came to be), but it's first time I hear about it. Banner/link blindness is a hell of a thing! Thanks for letting me know.
"Found a problem with this page?"
With a section on how to edit it.
https://news.ycombinator.com/item?id=24132494
This was in 2020, I don't know if they eventually hired _someone_ to work on MDN
W3schools has gotten a lot better I’ve the past 5 years or so. I use it for quick lookups and only go to mdn when I’m trying to learn something new.
It's satisfying to see that my dislike is not some unfounded personal quirk!
Yeah. I prefer it to MDN sometimes because they usually have a "try it yourself" that actually works very well.
Doesn't matter how much better the MDN doc might be, I often just want to try it myself.
[0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
There is a "try it yourself" that I sometimes use, merely because it's quick to whip something up, and much more faster than codepen.
MDN is of course fantastic, but generally requires more reading/scrolling and is therefore slower for simple things like what's the markup for a button or select drop down thing look like again.
As for the w3.css style sheet, it's quite good for sprucing up small internal web apps.
I can read the first para and figure out what I'll be learning. The code examples are interactive and visual, and help enormously.
MDN reads like a technical reference. Wordpress documentation is similarly structured, but it has a comments section with a lot of sample code for different use cases, which helps me figure out whether the function I'm looking at will help accomplish what I am trying to do.
W3Schools isn't "W3". It's W3Schools. To put it another way, W3Schools is "W3" in the same way that JavaScript is "Java" or Wikipedia is "Wiki".
w3schools got way better, but back then w3fools had its reason.
!mdn search term
brings you directly to MDN's search result page for search term.
Tried learning again in 2014, after a career change: Excellent experience, so good that I go there first.
I simply did not grok responsive design until I read their article about floats and media queries. I was trying to get admitted into a bootcamp at the time, and my assignment was to recreate a landing page from a PNG image, without using Bootstrap or any other grid framework.
Most official sources of technical documentation online are written by and for developers, and assume a lot of prior knowledge. I never understood a lick of the official jQuery documentation either, until I went through W3schools section on it, and then later Jon Duckett's beautifully visual dead-tree book on JS and jQuery.
MDN is a better choice for (almost) anything MDN has content for.
Somebody going to W3schools probably isn't looking for the latest and greatest. The person who is looking for that would already have a good grasp of the fundamentals, and would have graduated to looking elsewhere, like StackOverflow or Caniuse.com.
It’s probably the best and easiest to use css/js/html reference site anywhere.
I can’t gauge how it’s changed but I find it’s to-the-point and example driven format is perfect for the way I learn.
One of the bad things in tech is that reputations stick and people are too quick to bad mouth something because of what it was like 10-15 years ago.
I occasionally used that site at least 20 years ago. It seems to me that it serves the same audience as it did back then. You can quickly find useful pieces of information when you need them.
I don't get where did the bad rep come from. Did they show inaccurate information at some point? I never noticed that.
What I did notice is that people are eager to compare them to MDN any time they are mentioned. Even the wikipedia page about them says "MDN Web Docs – similar website".
This is obviously my personal experience and I could have missed something.
There definitely were problematic articles on the site, and its biggest contribution to my career was probably teaching me to cross-check my sources. There's a list of problems and nitpicks here[1] - apparently all of these were fixed over the years, hence why it's archived.
[1] https://web.archive.org/web/20110412103745/http://w3fools.co...
Yea, they did. There was a massive campaign to get w3schools to fix their docs because it was out of date. The site is still alive https://www.w3fools.com/ but updated. But check out the wayback when machine to see about the errors.
Edit: Looks like the GitHub repo does have a license and it’s a proper MIT license.
But I agree with most people, this site will never recover from its poor reputation. And that’s also their business model.
We can only hope Google will eventually tone down how much their site appears in search queries for topics they provide no in-depth information for.
And I hope that Google keeps showing them in search results, because while MDN is great for in-depth information, most of the time I just need a quick reference of common attributes, and no I don't want it cluttered with a bunch of in-depth information when I am just trying to see what the correct word for something is and how to spell it.
Both W3 and MDN are valuable resources for different use cases.
I don't believe that would work out.
They inherited their authority from a time when content on the web was sparse and thin as a rail. The argument here is not that they don't provide _any_ useful information, the argument is that the inherited authority is making them first results for queries were they obviously should not be first.
I think the way W3 lays out information is likely better for beginners. And MDN is likely better for the average professional developer.
So the question is who makes the most searches for those subjects.
That said, I do actually see MDN as the first result for some searches.
> I agree with most people
Taking the thread as a representative dataset, it seems like a pretty even split.
> But I agree with most people, this site will never recover from its poor reputation. And that’s also their business model.
They don't care of reputation, they care about 1st places in google queries :)
W3 schools is a wonderful, excellent site.
Dropping w3- in front of their classes is so you can drop it in anywhere. It’s actually rather brilliant and has been helpful in many cases for me.
I don’t get the w3 schools hate-flex. Programmers judge other programmer choices too much.
It's always there and seemingly always BEEN there, and it always comes up in my search results and indeed I often use it and the info seems pretty good.
But apart from that, how can something so well used basically fly under the radar?
From open Norwegian business data (https://www.proff.no/selskap/refsnes-data-as/sandnes/it-kons...), it seems like they have a yearly revenue around $4.5M USD. From the annual salary expenses, those five employees either make bank - or they hire a lot of consultants from overseas.
So I guess it's a good example of first-mover advantage.
I wouldn't be surprised if there were objectively incorrect design decisions here.
The final straw was when I visited the "Cards" component - my God.
Comparing this to Bootstrap? It's Bootstrap by a landslide.
W3.CSS is free to use. No license is necessary.
Does that not constitute a license?Decent chance it will stand up in court, but it's not going to make your legal department very happy.
https://github.com/JaniRefsnes/w3css/blob/master/LICENSE
Based on the github account being similar to the names in https://www.w3schools.com/w3css/4/w3.css, it is likely to be the origin.
Edit: https://news.ycombinator.com/item?id=32831880, beat me to it by a few seconds!
I like getting things done.
However, it does seem to be MIT-licensed. Linked from the downloads page:
Can we all please appreciate how stupid this CSS is. This literally removes the whole point of CSS classes.
I think of w3schools as largely SEO spam, though sometimes I have found useful answers when they come up as the first hit. Is that the general perception?
(I should add I don't use css professionally)
The reality is that w3schools is low quality spam and it will never change.
So, today I learned that W3schools and W3C were not related! That is... easy to mix up I think?
I am a back-end developer, so any front-end dev I do is on hobby projects, and for that w3schools pretty much has the answers needed to get things done. For back-end related stuff like headers or response codes I do go to MDN, but that is because if I need to look it up it's because I need detailed information.
Everything else, buttons, modals, sliders, chords are super simple anyway you can just make them yourself or use a way more featurerich separate slider or modal framework and still be on less junk code than with using bootstrap.
tl;dr if you know html and css, you no longer need a css framework for most cases.
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_La...
It's well supported and gracefully degrades (so long as your content is in the right order in the markup).
I thought it looked good and it's very simple to use.