> 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-6/activity-6.md).

# Activity 6

## Presentation

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

## Presentation Video

{% embed url="<https://youtu.be/-6yNyYpBrWs>" %}

## Starter Code - index.html

```markup
<!DOCTYPE html>
<html>
    <head>
        <title>Welcome to Activity 6</title>
    </head>
    <body>
        Welcome to Activity 6!
        <P>
        <h1>My Webpages</h1>
        <li><a href="/schedule">Schedule</a>
        <h1>My Favorite Websites</h1>
        <ol>
        <li><a href="https://www.trschools.com">Toms River Schools</A>
        <li><a href="https://tomsrivertownship.com/">Township of Toms River</A>
        </ol>
    </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("/schedule")
def schedule():
    return render_template('schedule.html')
```

## Starter Code - schedule.html

```markup
<!DOCTYPE html>
<html>
    <head>
        <title>My Schedule</title>
    </head>
    <body>
        <h1>My Schedule</h1>
        <table>
            <tr>
                <th>Period</th><th>Class<th>
                <td>1</td><td>Computer Science</td>
                <td>2</td><td> </td>
            </tr>
        </table>
    </body>
</html>
```

## Bootstrap CSS

```markup
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
```
