Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML HTML Basics Getting Started with HTML What is HTML?

Do you need HTML if you use python Flask visa versa? Would you also need Java Script to?

Do you need HTML if you use python Flask visa versa? Are you not able to make a website with just Flask alone or just HTML, CSS? Would you also need Java Script to?

You can build websites with plain HTML and CSS. You just need to apply some server configurations to Apache or similar. JavaScript is not 100% necessary but will make your website less interactive / plain. Not sure about the Flask question, maybe you can Google it, but HTML is needed almost everywhere, they just mix things up. For example, React uses HTML in a way it's called JSX, which is a more advanced way to insert HTML into the page documents.

2 Answers

HTML is for the structure of the website. It basically tells the browser what each element is (is it text, is it a header, is it a title, etc).

CSS is for the style. It will tell the browser how it should be displayed (which color must it be, where should everything be in relation to each other, etc).

Javascript, Python, Ruby, PHP, etc. they are all the brains. They make things happens. Any kind of logic, scripts, functionality, interactivity, they are one of these programming languages.

Note that Javascript is the only language supported by the browser, all the other programming languages will have to be server-sided.

This answer lacks clarity. OP is asking if it is necessary to use HTML if you use FLASK(Python FrameWork for Web Dev).

john garzon
john garzon
3,403 Points

flask is a framework using python as its language, used on the "backend" of things, not "front-end". so I don't suppose you'll be needing html to work with flask. BUT... you should still learn html.