> For the complete documentation index, see [llms.txt](https://www.advancedpython.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.advancedpython.net/day-5/activity-5.md).

# Activity 5

{% embed url="<https://docs.google.com/presentation/d/1JVLNGXZkMhO9-1m0GuLcX_Zzjxq7nWSGRW244q1UTTQ/edit?usp=sharing>" %}

## Video Presentation

{% embed url="<https://youtu.be/Qnx6Q_6sJRc>" %}

## Starter Code - index.html

```markup
<!DOCTYPE html>
<html>
    <head>
        <title>hello, world!</title>
    </head>
    <body>
        Welcome to Activity 5!
        <P>
        Try my new flask route: <a href="/hello">hello!</A>
    </body>
</html>
```

## Starter Code - hello.html

```markup
<!DOCTYPE html>
<html>
    <head>
        <title>hello, world!</title>
    </head>
    <body>
        hello new page!
    </body>
</html>
```

## Starter Code - application.py

```python
from flask import Flask, render_template
app = Flask(__name__)

@app.route("/")
def index():
    return render_template('index.html')
    
@app.route("/hello")
def hello():
    return render_template('hello.html')
```
