- This topic is empty.
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
IT, Programming, & Web Development › Forums › CS50’s Introduction to Computer Science by Harvard University on Edx › Week 9: Flask › Is method attribute mandatory in Flask even for just rendering a plain html page without a form
ChatGPT:
No, the method
attribute is not mandatory in Flask when rendering a plain HTML page without a form. The method
attribute is typically used in HTML forms to specify the HTTP method to be used when submitting the form data. If you’re just rendering a plain HTML page without any form submission or interaction with the server, you don’t need to include the method
attribute. You can simply render the HTML page using Flask’s render_template
function.