This is my html code:
<html>
<head>
<style rel="stylesheet" type="text/css" href="{{ url_for('static', filename='main.css') }}"></style>
</head>
<body>
<h2 align="centre">Hello!</h2>
<h1>Hello Again!</h1>
<p>this is a paragraph!</p>
</body>
</html>
this is css code:
body {
background: #fafafa;
color: red;
}
header {
color: blue
}
this is python code:
from flask import Flask
from flask import render_template
from flask import request
app = Flask(__name__)
@app.route('/')
@app.route('/home')
def home():
return render_template("base.html")
if __name__ == "__main__":
app.run(debug=True)
just one url but its still not working i am not a html or css "expert" so i need some help, and i dont have any friends so stackoverflow was the only option
i also saw many people use <link>
tag instead of <style>
idk the difference
and google is showing something else, any help would be appriciated!