Ask HN: Best way to learn HTML and CSS for web design?
A friend is a graphic designer who specializes in print (e.g., product packaging) but wants to learn html and css to get into web design.
Which books and/or online resources would HN recommend for a person with a non-technical background?
67 comments
[ 4.2 ms ] story [ 185 ms ] threadhttp://htmldog.com/guides/html/beginner/gettingstarted/
He will get context on what HTML is, and how it interacts with the browser. It's much easier to internalize knowledge with this website than it is elsewhere.
Keep the link as a reference but it also provides some good quizzes to learn and practice basic concepts. 8 years ago that's where I started learning HTML/CSS/PHP.
"To save your name type:"
"Good job! Now you know what a variable is. What? I have yet to see one person learn something useful using CodeAcademy except paste what the terminal is telling them to paste. I would stay away from this site.Respectfully, OP was asking for resources related to learning HTML and CSS from a non-technical point of view. From a standing start, JavaScript is a way down the line in the web development part -- not the beginnings of HTML and CSS for web design.
Sure, Codecademy is not the be-all solution, but they're accessible enough to get started for a broad section of non-technical folks, hence my recommendation.
Edit: italics.
"Copy paste this to pass this lesson" - No context given, just do this to pass. That's not good learning.
It's not always the case but for html/css, learning by doing is amazing.
https://www.bento.io/tracks/front-end - front end track
https://www.bento.io/grid/ - all their tutorial recommendations
They hand-pick some of the best free tutorials for each of the technologies you might need (including the other ones mentioned here) and even have curated tracks for front end.
Best online resource: http://learn.shayhowe.com/
It (a) assumes no knowledge coming in, (b) provides a linear progression from no knowledge to a portfolio of web applications, (c) lets you move as fast or slow as you want, (d) lets you skip lessons and topics you're already familiar with, and (e) has phenomenal online support. (EDIT: and it's free)
Once your friend has the fundamentals, I'd also suggest checking out http://flukeout.github.io/ and http://flexboxfroggy.com/ . They're fun little games to introduce lots of css and flexbox features.
Someone suggested bootstrap below, which I disagree with for a beginner but has a strong usecase for a programmer who needs to wrap their backend in something presentable. I would consider learning by using something like milligram or skeleton grid or even something much more opinionated like zurb foundation or bootstrap.
This is because, at least for me, most of the difficulty was around 3 things:
* modularity and structure
* actually positioning things
* terms and concepts
The browser is a processing engine which I think is in c++ or C but the point I am getting at is the big issue with onbboarding new programmers/designers is that they have a massive amount of peripheral knowledge to gain.
So, I personally liked envato http://webdesign.tutsplus.com/courses/30-days-to-learn-html-... which as a complete beginner took me 10 days. A competent programmer could probably finish in a day and get the relevenet bits, then use a grid and be pretty good.
tl;dr you can learn 90% of html/css in ~24-48 hours, that other 10% will take years.
My only gripe on the subjects covered is that they do jQuery before JavaScript. But if you're already competent, then let me just tell you jQuery is just a JavaScript library a lot of websites use instead of "pure JS" because it handles a lot of cross-browser issues and makes for a simplified/unified API. Instead of having to write one native DOM API method call for Chrome and another for IE inside an if (browser is IE) { ... }, you can just use jQuery's corresponding method and it'll do the right thing automatically. At least, that's the argument a lot of people use. That and the jQuery API just being more concise
However, jQuery is largely considered very cumbersome by more experienced devs, owing to being slow in performance and to being a large file include that slows page load times, and a lot of people try to avoid it for that reason. It's worth studying this link to see how you can do all common jQuery things with normal JS.
http://blog.garstasio.com/you-dont-need-jquery/
There's also "smaller" versions of jQuery, which provide the same/similar API without being huge, like Zepto. Zepto is 9.1kb, jQuery is 95. 95 is a lot.
So yeah, long speech on one little gripe, but I feel like it needed saying because that site is probably good for teaching most other stuff you'd need to know.
I whole heartedly disagree. Experienced devs consider jQuery a tool and know when to use smaller frameworks like vanillaJS or something heavier such as React/Aurelia. Also, in terms of web libraries/frameworks, 100kb is not that big.
On a side note, is it okay just to know Flexbox, or would a requirement be that you can manage without? Without ready made grid classes as well?
Plus the website is also open source :)
Here's a blog post I wrote about learning web design: http://hypertexthero.com/logbook/2012/04/web-design-where-to...
It has alot of good resources and a wealth of information. As a seasoned web developer, this is still one of my go-to sites for documentation on web related stuff.
https://developer.mozilla.org/en-US/Learn
Or is it like with LaTeX that you just start and on-demand google the pieces?
Once I know how it works, I can look at the technical description and fill in any gaps that W3S had.
don't! Just use boostrap studio ( https://bootstrapstudio.io ) or something (there exist free alternatives if you don't like paying 25 bucks) :)
- choose a small project. Something that creates discomfort but not crippling anxiety (this will require self-awareness - too small, you won't learn much, too big, you may give up and take a confident hit).
- split the project into parts so you have a bunch of questions. 'How do I build a site in HTML/CSS?' is fairly broad. Perhaps "how do I build a header?" is too. Break it down until you either know how or you can find the answer quickly, i.e 'how do I insert an image?' or 'how do I set a width, background colour and consistent space inside the edges of a box?'
- have someone who you can call upon to answer questions or help convert what you are trying to do into a phrase that uses industry terminology for which you can find ample resources. Forums/IRC can help here - there are some jerks who will kick off about you not using google but many will be understanding if you explain you are new and still need to pick up terminology to make searching easier
- repeat the above endlessly, expanding your skills and integrating new discoveries
An interesting example of this is of someone who built 200 or so Rails projects over a year. I may have got the numbers wrong.
Good books can help get started and reading certainly helps but making the process multi-modal by reading from many sources, listening (such as videos or a local web meet), doing via projects and experiments and seeing your results will be most effective.
I don't have recommendations for books - the only thing about HTML I read in a book was a small section of a cheap internet guide that got me started when I was a kid. This wasn't required when training an apprentice but probably useful.
http://headfirstlabs.com/books/hfhtml/
It will give them a good foundation and confidence to setup a website from scratch.
http://headfirstlabs.com/books/hfhtml/
Have them purchase a domain and setup a simple shared hosting account to publish a website. Shared hosting like hostgator is good enough to start, learn the basics, use FTP (recommend, MAMP/WAMP, sublime text, filezilla).
Then they can move on to more advanced topics.
Imo it is the best editor you can use to learn HTML and CSS.
Also, are you on OSX? I never use Ctrl + → but rather emacs shortcuts like option + f, option + b, ...
All the tutorials & videos are available there as well as the curriculum and assignments for each week.
There is not a lot of utility in HTML + CSS on its own, unless you want 1996 style web pages that are static.
Knowing HTML is one thing, being able to build something in Wordpress will be far more CV worthy.