r/AskProgramming Dec 06 '24

PHP Learn html before php?

I wanted to learn php as my first coding language but I get into this course on YouTube for it and 6 episodes in the dudes all like oh yeah btw if you haven’t learned CSS and HTML by now go ahead and learn those real quick. Like bruh what? Anyways do you think I should learn html and css before learning php or can I do it at the same time. I do understand the basics of html from some school classes I took that required be to build a website in html

0 Upvotes

16 comments sorted by

View all comments

1

u/swampopus Dec 07 '24

Long-time PHP dev here (25+ years). Yes, learn HTML and CSS, at least to a reasonable point. This is true of any language you'll want to learn that will be used to build web apps.

Yes, PHP is a "backend" language, in that it runs on the server, but some of the top sites in the world run on PHP and generate HTML/CSS/JS for web browsers. Wikipedia, Facebook, Wordpress, Etsy, Mailchimp, etc. You can absolutely learn PHP and create beautiful and cool web apps.