Why we have to learn html when there are other ways, we can make a website. And how is .net and php is used in web. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why we have to learn html when there are other ways, we can make a website. And how is .net and php is used in web.

11th Mar 2017, 6:40 PM
Yasir Hussain
Yasir Hussain - avatar
2 Answers
+ 2
So HTML is the standard markup language for how a browser views a website. Its accompanied by server-side scripts like .net and PHP. These languages executes things in the background and only gives HTML code back to the browser that reads it. Client Side Languages like Javascript and CSS is to accompany the HTML. HTML = The Text that you see and images Javascript = Makes it interactive with what buttons and things that can happend CSS = Beautifies the site and makes it looks nice. When you write PHP code, it is executed within PHP a great example is like a form. A user clicks on a HTML button and submits something, the PHP grabs whats submitted and posts it to a database (like this post, when i click submit it gets stored in this "thread and post") If i was to inspect the code after that, i can't see the PHP because its the server that handles it, while my browser and your browser handles the HTML and what its fed. Hope this makes sense ? Also you can say python is used in the backend (Server Side) and javascript and HTML output (Client Side) Hope this made sense ?
11th Mar 2017, 6:51 PM
Simen Daehlin
Simen Daehlin - avatar
+ 1
To make a website you need to know HTML, you can't make a website without it but you can make a website only with it. It gives the structure and content for the website. If you want to add colors and style then you also add CSS to it, if you want interactive options you add JavaScript to it. If you want to add forms and log-in options to your website then you need PHP and SQL databases to handle them. PHP can be used to make templates for your pages using the php include feature, this means having your footer section in a single file and any changes to it be replicated in every single page you included that footer file. It also handles forms and log-ins, being an interface between your page and the database. In a .php file, anything outside the script <?php .... ?> tags is HTML.
11th Mar 2017, 7:22 PM
Jose Oliv
Jose Oliv - avatar