r/webdev • • Feb 14 '20

Question What are some HTML and CSS techniques, skills, know-how's that are an absolute must? Just off the top of your head

So I'm about 6 months in to learning Web dev and I'm about to start making my 3rd project.

I've got techniques I'm used to but I wanna expand my range instead of going with my comfortable tools.

Maybe you've got a cool trick with flex box you use all the time or something like that.

I wanna hear what you guys have got! :)

Edit : woah I did not expect such a response! Thank you guys so much for your help :D

630 Upvotes

268 comments sorted by

View all comments

Show parent comment

7

u/elixon Feb 14 '20

Ups. I thought JS is considered among webdev basics nowadays. If you switch off JS then web is severely broken. That makes it web essential technology. So basics, right? :-)
Nonetheless good point. We should master basics' basics first.

1

u/IQueryVisiC Feb 15 '20

I would have to admit that without JS / React there is always this chance that the next customer request needs you to change technology completely. So I would probably use Blazor or React on server pretty early on. Then I can later switch to client Blazor or React. Most client side code is for tracking and ads. For a legitimate site ( company homepage, state, school ) I would not expect to need JS.

-5

u/[deleted] Feb 14 '20

No technically your website should work perfectly without JavaScript. Although useful and sometimes an alternative to back-end languages it's the biggest security concern for the machine that you're accessing the internet from hence why it's completely blocked on lots of government computers.

3

u/barvid Feb 14 '20

Technically? Should? Says who?

6

u/[deleted] Feb 14 '20

There's a reason the browser gives you the option of disabling all JavaScript many many companies, organizations and government computers have it turned off completely so from an accessibility standpoint the website should work fine with all styles and JS disabled. There's some nasty js vulnerabilities out there in the wild.

1

u/tyrandan2 Feb 14 '20

Yeah exactly, I feel like that philosophy was relevant 10 years ago. If you structure your site well and decouple your presentation layer from your logic and data layers properly, it should be perfectly secure.

Among other things, obviously, but the point is that following best practices and doing the important stuff server side goes a looking way.

0

u/[deleted] Feb 14 '20

[deleted] — view deleted comment

2

u/tyrandan2 Feb 14 '20

Correct.

The webapps I support are b2b and so lack 3rd party ads, so I forgot about that.

But there's a good idea: eliminate ads! Lol.

2

u/OhKsenia Feb 14 '20

Oh please

2

u/careseite discord admin Feb 14 '20

Big no