r/webdev•
dudrick

Writing html and css the right way..

Hi guys. Over the past couple of weeks I've written a bit of html and css and think I have the hang of it. I can imitate a lot of websites though I sometimes get stuck. However though I can usually get the websites to look the same (on desktop resolution) I still think that I have a lot to learn.

Do any of you guys have any good resources on responsive design, best practices and anything else that might make a person go from my level to a more advanced level. If not resources then suggestions on particular things that I would need to know to get to that level.

Also how competent would you suggest a person should be before they go on to learn javascript? Thanks.

Posted Mar 19, 2017, 2:53 AM UTC

34
6millionways2try•

For responsive design, it's worth learning how to use flexbox and media queries.

The best way to foster good practices is to understand how the DOM works and how you're actually manipulating it. Then you can integrate applying JS. Keep it mind how you can keep things reusable, extensible, maintainable, etc.

There is a lot to know once you get into more advanced subjects, so it really depends on what you would like to do in realm of web development.

3
somethingsimplerr•

For one, don't do more than necessary. If it's a really simple website with not much repetition just inline all the CSS/JS.

For learning more, check out https://www.udacity.com/courses/all they have great resources.

-4

It's good to keep your html and css separated. This allows you to make changes much easier. Doing inline css is generally bad practice.

1
somethingsimplerr•

I got a lot of hate, of course it is good practice to keep it seperated if you're doing multi-page with consistent design or what not, but if anyone who downvoted me was interested in learning web dev performance, inlining is smart to use in certain situations.

1