In Flask, how do you render an HTML template?

In Flask, how do you render an HTML template?

a) render()
b) render_template()
c) template()
d) render_html()

Answer:

b) render_template()

Explanation:

The render_template() function in Flask is used to render an HTML template and return it as a response.

Reference:

Flask Quiz – MCQ Questions and Answers

Scroll to Top