def text2html_table(items):
    """Put the texts in `items` in an HTML table."""
    html_code = f'<table border="1" class="dataframe">\n'
    html_code += f"""  <thead>
    <tr style="text-align: left;">
"""
    for i in items[0]:
        html_code += f'      <th>{i}</th>\n'
    html_code += f'    </tr>\n  </thead>\n  <tbody>\n'
    for line in items[1:]:
        html_code += '    <tr>\n'
        for i in line:
            html_code += f'      <td>{i}</td>\n'
        html_code += '    </tr>\n'
    html_code += '  </tbody>\n</table><p>'
    return html_code
