TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Best way to learn HTML and CSS for web design?

156 点作者 dpapathanasiou超过 9 年前
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.<p>Which books and&#x2F;or online resources would HN recommend for a person with a non-technical background?

34 条评论

metasean超过 9 年前
I run a group with almost 600 JavaScript learners. With this many people, we&#x27;ve been through the vast majority of self-study resources. My goto recommendation for learning HTML, CSS, &amp; JavaScript is <a href="http:&#x2F;&#x2F;www.freecodecamp.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.freecodecamp.com&#x2F;</a> This has consistently had the best results for our learners!<p>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&#x27;re already familiar with, and (e) has phenomenal online support. (EDIT: and it&#x27;s free)<p>Once your friend has the fundamentals, I&#x27;d also suggest checking out <a href="http:&#x2F;&#x2F;flukeout.github.io&#x2F;" rel="nofollow">http:&#x2F;&#x2F;flukeout.github.io&#x2F;</a> and <a href="http:&#x2F;&#x2F;flexboxfroggy.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;flexboxfroggy.com&#x2F;</a> . They&#x27;re fun little games to introduce lots of css and flexbox features.
评论 #11049799 未加载
评论 #11048782 未加载
评论 #11048888 未加载
评论 #11048856 未加载
jwdunne超过 9 年前
I would do this:<p>- choose a small project. Something that creates discomfort but not crippling anxiety (this will require self-awareness - too small, you won&#x27;t learn much, too big, you may give up and take a confident hit).<p>- split the project into parts so you have a bunch of questions. &#x27;How do I build a site in HTML&#x2F;CSS?&#x27; is fairly broad. Perhaps &quot;how do I build a header?&quot; is too. Break it down until you either know how or you can find the answer quickly, i.e &#x27;how do I insert an image?&#x27; or &#x27;how do I set a width, background colour and consistent space inside the edges of a box?&#x27;<p>- 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&#x2F;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<p>- repeat the above endlessly, expanding your skills and integrating new discoveries<p>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.<p>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.<p>I don&#x27;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&#x27;t required when training an apprentice but probably useful.
sergiotapia超过 9 年前
<a href="http:&#x2F;&#x2F;htmldog.com" rel="nofollow">http:&#x2F;&#x2F;htmldog.com</a> - Hands down the best way to learn HTML and CSS. It&#x27;s free!<p><a href="http:&#x2F;&#x2F;htmldog.com&#x2F;guides&#x2F;html&#x2F;beginner&#x2F;gettingstarted&#x2F;" rel="nofollow">http:&#x2F;&#x2F;htmldog.com&#x2F;guides&#x2F;html&#x2F;beginner&#x2F;gettingstarted&#x2F;</a><p>He will get context on what HTML is, and how it interacts with the browser. It&#x27;s much easier to internalize knowledge with this website than it is elsewhere.
评论 #11048443 未加载
saluki超过 9 年前
I would recommend getting started with Head First HTML and CSS.<p><a href="http:&#x2F;&#x2F;headfirstlabs.com&#x2F;books&#x2F;hfhtml&#x2F;" rel="nofollow">http:&#x2F;&#x2F;headfirstlabs.com&#x2F;books&#x2F;hfhtml&#x2F;</a><p>It will give them a good foundation and confidence to setup a website from scratch.<p><a href="http:&#x2F;&#x2F;headfirstlabs.com&#x2F;books&#x2F;hfhtml&#x2F;" rel="nofollow">http:&#x2F;&#x2F;headfirstlabs.com&#x2F;books&#x2F;hfhtml&#x2F;</a><p>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&#x2F;WAMP, sublime text, filezilla).<p>Then they can move on to more advanced topics.
jxm262超过 9 年前
I&#x27;ve always recommended Mozilla&#x27;s Developer Network (MDN) - <a href="https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;" rel="nofollow">https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;</a><p>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.
评论 #11048914 未加载
revorad超过 9 年前
I recommend the following:<p>1. Check out Jennifer Dewalt&#x27;s project 180 websites in 180 days - <a href="http:&#x2F;&#x2F;jenniferdewalt.com" rel="nofollow">http:&#x2F;&#x2F;jenniferdewalt.com</a><p>2. Free Code Camp is quite good (but the focus is more on coding rather than design) - <a href="http:&#x2F;&#x2F;www.freecodecamp.com" rel="nofollow">http:&#x2F;&#x2F;www.freecodecamp.com</a><p>3. Nathan Barry&#x27;s books are great - <a href="http:&#x2F;&#x2F;nathanbarry.com&#x2F;books" rel="nofollow">http:&#x2F;&#x2F;nathanbarry.com&#x2F;books</a><p>4. [Plug] - I&#x27;m starting a new site for online courses and need beta testers for some HTML and CSS courses which go from scratch to pro level. Happy to give your friend early access for free - <a href="http:&#x2F;&#x2F;learnetto.com" rel="nofollow">http:&#x2F;&#x2F;learnetto.com</a>
dolguldur超过 9 年前
Anchoring onto this, but with different requirements: Are there tightly condensed resources to learn the most important bits of HTML, CSS and plain JavaScript really fast for somebody who otherwise knows how to code and has written some HTML a long ago.<p>Or is it like with LaTeX that you just start and on-demand google the pieces?
评论 #11049055 未加载
thomasjbradley超过 9 年前
I teach web development in a graphic design program. You’re welcome to check out my resources: <a href="https:&#x2F;&#x2F;learn-the-web.algonquindesign.ca&#x2F;" rel="nofollow">https:&#x2F;&#x2F;learn-the-web.algonquindesign.ca&#x2F;</a><p>All the tutorials &amp; videos are available there as well as the curriculum and assignments for each week.
jonhmchan超过 9 年前
Take a look at Bento. <a href="https:&#x2F;&#x2F;www.bento.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.bento.io&#x2F;</a><p><a href="https:&#x2F;&#x2F;www.bento.io&#x2F;tracks&#x2F;front-end" rel="nofollow">https:&#x2F;&#x2F;www.bento.io&#x2F;tracks&#x2F;front-end</a> - front end track<p><a href="https:&#x2F;&#x2F;www.bento.io&#x2F;grid&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.bento.io&#x2F;grid&#x2F;</a> - all their tutorial recommendations<p>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.
mcbetz超过 9 年前
Best book for non-technical persons: John Ducket, Web Design with HTML, CSS, JavaScript and jQuery Set. <a href="http:&#x2F;&#x2F;www.amazon.com&#x2F;Web-Design-HTML-JavaScript-jQuery&#x2F;dp&#x2F;1118907442&#x2F;ref=sr_1_1?ie=UTF8&amp;qid=1454777537&amp;sr=8-1&amp;keywords=Jon+Duckett" rel="nofollow">http:&#x2F;&#x2F;www.amazon.com&#x2F;Web-Design-HTML-JavaScript-jQuery&#x2F;dp&#x2F;1...</a><p>Best online resource: <a href="http:&#x2F;&#x2F;learn.shayhowe.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;learn.shayhowe.com&#x2F;</a>
评论 #11048566 未加载
superplussed超过 9 年前
My girlfriend is teaching herself to code, and her favorite resource is <a href="http:&#x2F;&#x2F;codeschool.com" rel="nofollow">http:&#x2F;&#x2F;codeschool.com</a>. I&#x27;ve watched pieces of some of their lessons and they definitely spend more time going over programming (or even computer science) basics, whereas codeacademy seems to skip that and just throw jquery at the students. And they have a nice mix of well-produced video content to go with some interactive repl exercises.
AdmiralAsshat超过 9 年前
Mid-level web student here.<p>I&#x27;ve read several HTML&#x2F;CSS books and gone through half a dozen courses. I&#x27;m comfortable with your basic HTML&#x2F;CSS page, have a basic handle on Javascript (assuming I&#x27;m not doing anything more complicated than using getElementById to change some attributes on a click), and I can use jQuery&#x2F;Bootstrap when I need to.<p>Right now the biggest hump for me is figuring out how to make mobile-friendly sites WITHOUT resorting to a framework. I feel like the vast majority of books or e-courses right now will go the following route:<p>1) Teach basic HTML&#x2F;CSS for barebones basic and legacy pages<p>2) Introduce HTML5 syntax<p>3) Briefly show how to do a &quot;pure&quot; mobile-friendly page using viewports, flexbox, and media queries.<p>4) Spend fifteen minutes on the above, and then say, &quot;But that&#x27;s too much work. So now we&#x27;re gonna use Bootstrap and never do Step #3 again!&quot;<p>That above has happened consistently, and it disappoints me. I can do Bootstrap, but frankly I hate writing it. I feel like I have to go five or six div&#x27;s in deep before I&#x27;m actually writing any text that&#x27;s going to be visible to the end-user.<p>I&#x27;d really like to find more resources on making a mobile-friendly webpage that doesn&#x27;t rely on Javascript to resize itself. In particular, I&#x27;ve got a few webpages that I built as past projects or coding exercises that I otherwise think look fine, and I&#x27;d like to figure out how to easily retro-fit them so that, say, the images don&#x27;t stretch more than 100% of the screen width without having to rewrite the entire page using jQuery.<p>Anyone have any suggested resources for building mobile-friendly pure HTML&#x2F;CSS sites?
评论 #11052084 未加载
评论 #11052064 未加载
d0m超过 9 年前
For non-technical, head first html&#x2F;css is great: <a href="http:&#x2F;&#x2F;www.amazon.com&#x2F;Head-First-HTML-Elisabeth-Robson&#x2F;dp&#x2F;0596159900&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.amazon.com&#x2F;Head-First-HTML-Elisabeth-Robson&#x2F;dp&#x2F;05...</a><p>It&#x27;s not always the case but for html&#x2F;css, learning by doing is amazing.
TheAceOfHearts超过 9 年前
One year ago I was working as a frontend engineer and although my JS skills were good, my CSS skills were pitiful. Over the course of the year, I sat down and implemented most of material design. Now I can take a look at basically any mockup and wire it up.<p>I found it very helpful to look at how other people implemented certain components.
jmagaro88超过 9 年前
There is truly no substitute to just jumping into the thick of things, learning by doing, and looking up how to do things as you go along. However, I know that it&#x27;s intimidating when you are starting out and don&#x27;t know where to turn first. For that first kick-starter course to form some basic knowledge, I have found that <a href="http:&#x2F;&#x2F;www.lynda.com" rel="nofollow">http:&#x2F;&#x2F;www.lynda.com</a> has a really wide variety of beginner tutorials to get your feet wet in many different categories.
SerLava超过 9 年前
Not a designer but much of my job is styling web content and working with designers and devs. I&#x27;m paying for a couple months of &quot;team tree house&quot; which has pretty good videos, little quizzes, and a wysiwyg editor so can you follow along and code.<p>The videos spell things out nice and slow, sometimes a bit too slow but you can fast forward if you already know a section.<p>It&#x27;s meant for web designers, so I&#x27;d imagine it would work for your friend. The site also has courses for a few web programming languages and Wordpress etc.<p>Anyone else used this?
baby超过 9 年前
Check <a href="https:&#x2F;&#x2F;thimble.mozilla.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;thimble.mozilla.org&#x2F;</a><p>Imo it is the best editor you can use to learn HTML and CSS.
评论 #11070740 未加载
jonesb6超过 9 年前
I would just like to point out that people tend to take the most practical approach possible when learning HTML and CSS. So they learn JQuery, Bootstrap, Wordpress, Rails, etc. because it&#x27;s the fastest way to get things done.<p>It is my opinion that this leaves a large gap in ones education, and so supplemental &#x2F; lower-leveled resources should be sought out if one wants to have an &quot;expert-level&quot; understanding of HTML and CSS.
petecooper超过 9 年前
<a href="https:&#x2F;&#x2F;www.codecademy.com&#x2F;learn&#x2F;web" rel="nofollow">https:&#x2F;&#x2F;www.codecademy.com&#x2F;learn&#x2F;web</a>
评论 #11048461 未加载
imh超过 9 年前
I&#x27;ve only just started down this path, but <a href="http:&#x2F;&#x2F;www.theodinproject.com&#x2F;courses" rel="nofollow">http:&#x2F;&#x2F;www.theodinproject.com&#x2F;courses</a> seems pretty good so far. It&#x27;s more a curated, guided collection of other resources than a resource itself, but that works for me.
ausjke超过 9 年前
While not a perfect site, <a href="http:&#x2F;&#x2F;www.w3schools.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.w3schools.com&#x2F;</a> is my to-go place whenever I need check something. Its content might not be all fully correct, but strangely it gets to the point very efficiently for me.
评论 #11048814 未加载
评论 #11048966 未加载
评论 #11048899 未加载
评论 #11050529 未加载
tremendo超过 9 年前
A comprehensive guide, including in downloadable e-book format: <a href="https:&#x2F;&#x2F;frontendmasters.gitbooks.io&#x2F;front-end-handbook&#x2F;content&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;frontendmasters.gitbooks.io&#x2F;front-end-handbook&#x2F;conte...</a>
Theodores超过 9 年前
Wordpress. Add theme. Change what you don&#x27;t like by Googling stuff. Get site built.<p>There is not a lot of utility in HTML + CSS on its own, unless you want 1996 style web pages that are static.<p>Knowing HTML is one thing, being able to build something in Wordpress will be far more CV worthy.
pen2l超过 9 年前
Here is perhaps a controversial suggestion:<p>don&#x27;t! Just use boostrap studio ( <a href="https:&#x2F;&#x2F;bootstrapstudio.io" rel="nofollow">https:&#x2F;&#x2F;bootstrapstudio.io</a> ) or something (there exist free alternatives if you don&#x27;t like paying 25 bucks) :)
评论 #11048873 未加载
fibo超过 9 年前
See also my web Development resources list <a href="http:&#x2F;&#x2F;g14n.info&#x2F;2014&#x2F;01&#x2F;web-development-resources" rel="nofollow">http:&#x2F;&#x2F;g14n.info&#x2F;2014&#x2F;01&#x2F;web-development-resources</a>
err4nt超过 9 年前
I graduated graphic design in 2009, I worked from 2009-2011 building Joomla and WordPress websites for companies, then went freelance and I’ve been doing responsive front-end web stuff for about five years now. Here’s how I got from where you’re at to where I am now.<p>The web is built using three technologies: HTML, CSS, and JavaScript. Literally every other technology that gets used with the web has to interface to one or more of these three, so focus your learning on the foundational technologies. If you try to learn React and Bootstrap and Flux and Grunt and Parse and Node and SASS and everything else you’ll get worn out just trying to get started. By learning the foundational technologies you can quickly adopt any tool you truly need to use, but you could never keep up with all the tools available out there.<p>Here are some simple rules and attitude changes I adopted in my own discipline that resulted in rapid learning in CSS, then HTML, then JavaScript:<p>- when building new projects, don’t automatically include bootstrap, or other libraries. Only include what you need AS you need it<p>- don’t look at other people’s code before trying to write your own solution first, this helps you clarify your needs!<p>- when you do look at other people’s code, NEVER copy&#x2F;paste it, read and earn and rewrite what you need<p>- only ever copy&#x2F;paste code you have personally written in the past<p>- don’t be afraid to rewrite code at any time<p>- code is expendable, and the more code you write the better you will write code<p>- avoid preprocessors and compilers, they create extra work<p>- anything that can be built depending on a library can be built more efficiently without it<p><i></i>HTML Questions for Learning:<i></i><p>- can I still do it without that containing &lt;div&gt; as a wrapper?<p>- is there any HTML like &lt;div style=clear:both&gt;&lt;&#x2F;div&gt; trying to solve CSS problems using markup?<p>- how could this be rewritten without using any classes at all?<p>- what’s the fewest amount of tags I would need to mark up this design from scratch?<p>- what’s the most relevant or correct HTML5 tag for this ([and there are a lot of them!) <a href="https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en&#x2F;docs&#x2F;Web&#x2F;HTML&#x2F;Element" rel="nofollow">https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en&#x2F;docs&#x2F;Web&#x2F;HTML&#x2F;Element</a><p><i></i>CSS Questions for Learning:<i></i><p>- how could I write this CSS without using any classes at all?<p>- if I remove this line, does anything break?<p>- what styles can this element inherit from other CSS rules?<p><i></i>JS Questions for Learning:<i></i><p>- if jQuery does this, what regular JavaScript does jQuery use internally to do this?<p>- if jQuery didn&#x27;t exist, what would the solution designed to meet my needs look like?<p>And in addition to that, all I can say is that the more you do it the better you will get! Create some basic templates and get used to creating throwaway HTML pages to test one thing, or check something. Don’t get invested in and finesse and polish every project or page you build or you’ll have a very shallow level of skill and spend too much time on too few pieces.<p>One good habit would be to start pushing code to Github. You can view the traffic there, so if people are viewing and using your code you can be motivated by that.<p>Also, CodePen is like a social front-end coding playground. I would highly recommend you check that out and get the habit of testing and trying things out in the open.<p>The other last thing I will say is this: simplify! in 2013 my idea of a barebones HTML page was a whole site template like this: <a href="https:&#x2F;&#x2F;github.com&#x2F;tomhodgins&#x2F;5keleton" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tomhodgins&#x2F;5keleton</a><p>By 2015 I had it pared down to this: <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;tomhodgins&#x2F;c09dd6f9485d77d14e55" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;tomhodgins&#x2F;c09dd6f9485d77d14e55</a><p>But that was still so heavy it was slowing down my learning. Now when I want to test something here’s the HTML snippet I pop into a new text file:<p><pre><code> &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=utf-8&gt; &lt;title&gt;&lt;&#x2F;title&gt; &lt;style&gt;&lt;&#x2F;style&gt; &lt;&#x2F;head&gt; &lt;body&gt; &lt;script&gt;&lt;&#x2F;script&gt; &lt;&#x2F;body&gt; &lt;&#x2F;html&gt; </code></pre> Only when you distill it down to the basics can you do it at the scale you need to really experiment and learn.<p><i></i>Resources:<i></i><p>- Mozilla Developer Network for CSS: <a href="https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;CSS&#x2F;Reference" rel="nofollow">https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;CSS&#x2F;Reference</a>, and JavaScript: <a href="https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;JavaScript&#x2F;Reference" rel="nofollow">https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;JavaScript&#x2F;Refe...</a> Reference<p>- HTML5 Specification for HTML reference: <a href="https:&#x2F;&#x2F;www.w3.org&#x2F;TR&#x2F;html5" rel="nofollow">https:&#x2F;&#x2F;www.w3.org&#x2F;TR&#x2F;html5</a><p>- You Might Not Need jQuery for learning JS: <a href="http:&#x2F;&#x2F;youmightnotneedjquery.com" rel="nofollow">http:&#x2F;&#x2F;youmightnotneedjquery.com</a><p>- Ditching jQuery for learning JavaScript basics: <a href="http:&#x2F;&#x2F;gomakethings.com&#x2F;ditching-jquery" rel="nofollow">http:&#x2F;&#x2F;gomakethings.com&#x2F;ditching-jquery</a>
jcoffland超过 9 年前
As with any tech the best way to learn it is to use it. Work on a small project that you are interested in. Skim tutorials, other people&#x27;s code and manuals to figure out how to do so.
S4M超过 9 年前
I liked codeacademy.com for css and html. Thanks to it I managed to get a grasp of how html, styles, and css work. I was already a technical person so his&#x2F;her mileage may vary.
trumbitta2超过 9 年前
For all the &quot;just go to W3Schools&quot; people in this thread: <a href="http:&#x2F;&#x2F;www.w3fools.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.w3fools.com&#x2F;</a>
hypertexthero超过 9 年前
Check out [Simple &amp; Useful](<a href="https:&#x2F;&#x2F;s3.amazonaws.com&#x2F;simpleuseful&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;s3.amazonaws.com&#x2F;simpleuseful&#x2F;index.html</a>) and [Mozilla Thimble](<a href="https:&#x2F;&#x2F;thimble.mozilla.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;thimble.mozilla.org&#x2F;</a>).<p>Here&#x27;s a blog post I wrote about learning web design: <a href="http:&#x2F;&#x2F;hypertexthero.com&#x2F;logbook&#x2F;2012&#x2F;04&#x2F;web-design-where-to-begin&#x2F;" rel="nofollow">http:&#x2F;&#x2F;hypertexthero.com&#x2F;logbook&#x2F;2012&#x2F;04&#x2F;web-design-where-to...</a>
deepakkarki超过 9 年前
I would suggest <a href="http:&#x2F;&#x2F;www.freecodecamp.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.freecodecamp.com&#x2F;</a><p>Plus the website is also open source :)
chetanahuja超过 9 年前
Interesting suggestions all around. I&#x27;ve been looking for appropriate tutorials for a high schooler. Many of these suggestion seem to fit the bill.
hanniabu超过 9 年前
My opinion on best to worst codeschool(paid, ~$500&#x2F;year) codecademy freecodecamp or googling tutorials for what you want to learn to do
walterstucco超过 9 年前
studying