Hey I was wondering what the difference between HTML and PHP is. Sometimes when I an coding in html I notice that I use tags from php and when coding in php you are allowed to use tags from html coding. Which should I pursue coding in?
Hey I was wondering what the difference between HTML and PHP is. Sometimes when I an coding in html I notice that I use tags from php and when coding in php you are allowed to use tags from html coding. Which should I pursue coding in?
HTML is just a markup language that describes how elements appear on a screen. PHP is an actual programming language and can be used without even having anything to do with web pages.
On a web server, php and html files can get intermixed.
If you want to make web pages, learn HTML (along with Javascript). If you want to make web sites that interface with databases or do other actions such as email users or edit files, learn PHP-but you'll have to learn HTML as well. There are a million books out there to learn from.
It depends on what the project is...Thanks, so I need to teach my class in how to do something for a project should I teach them how to code HTML or PHP? I was thinking HTML because it is really easy and they have no idea what coding even is soo..
And last but not least, HTML can be easily seen on any browser, so you can just edit the HTML and then refresh the local or remote file and that's it.
For PHP, you need a PHP Server running the code (that is, dynamically parsing it).
So depending on availability, you could run into a lot of work to get PHP to run (there are easy solutions that will install php+mysql+other stuff, but I never used them, even when I was a newbie, because I like to learn stuff).
Thanks, so I need to teach my class in how to do something for a project should I teach them how to code HTML or PHP? I was thinking HTML because it is really easy and they have no idea what coding even is soo..
PLease take this in the spirit it's intended -- I'm honestly not trying to be a jerk. But if you don't know the answer to your original question, you are probably not qualified to teach anything about PHP or HTML, don't you think?
well. I'm teaching a group of 7th graders who no absolutely nothing about coding.PLease take this in the spirit it's intended -- I'm honestly not trying to be a jerk. But if you don't know the answer to your original question, you are probably not qualified to teach anything about PHP or HTML, don't you think?
well. I'm teaching a group of 7th graders who no absolutely nothing about coding.
so I guess I'll just do html. If I did PHP would the project be called how to code in PHP or How to code PHP and HTML? Also If I did PHP would I not be able to use notepad? would I need to bring my macbook pro into the school and hook it up to the smartboard?
so I guess I'll just do html. If I did PHP would the project be called how to code in PHP or How to code PHP and HTML? Also If I did PHP would I not be able to use notepad? would I need to bring my macbook pro into the school and hook it up to the smartboard?
so I guess I'll just do html. If I did PHP would the project be called how to code in PHP or How to code PHP and HTML? Also If I did PHP would I not be able to use notepad? would I need to bring my macbook pro into the school and hook it up to the smartboard?
This entire thread is pretty much equivalent to asking whether you should teach students about World War 2 or Nietzsche. I mean, they're both historical right?
Ohhhh! I get it now! Ok. Ya i will only code PHP if I know I will need to. Like for a website of mine or someone elses who owns a server.Like the others have said...you NEED a server of some sort (meaning either the normal web server or a local server) for PHP. While you can write PHP files in notepad, you'll have no way of running those files.
I'd stick with HTML. PHP is like an "upgrade." It can do pretty much anything HTML can do (technically, you can take most HTML files and just change the extension [as well as any internal links] to PHP). HTML in and of itself can fill up an entire class or two or more.
EDIT: Though I do agree with lucasgladding.
One question I have is will I not be able to go into CSS using notepad?
HTML and CSS can both be written in Notepad. The CSS code can either be internal or linked to in the head element.
Ohhhh! I get it now! Ok. Ya i will only code PHP if I know I will need to. Like for a website of mine or someone elses who owns a server.
----------
Yeah its just a computer class for 7th grade and I know the students in this particular class do not know about HTML. I guess I should mention that I am in the 7th grade and in the class that I am teaching.. haha It's a project I have to do for the class and teacher. I already kind of planned what I am going to do and I am definitely going to use notepad, unfortunately in the computer lab I will be in there are only PC's. One question I have is will I not be able to go into CSS using notepad?