Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
SshanLU999
Last edited May 26, 2021
Created on May 26, 2021
Forked from HTML Starter

This example shows a minimal web page that fetches a CSV file containing CSS named colors and logs its raw text to the browser console. The code uses the native `fetch` API to request the CSV from a GitHub gist URL, then chains a `response.text()` promise to parse the response body as a string. The parsed data is displayed solely through `console.log`, with no further processing or visualization on the page. Styling is applied via inline CSS, setting a large font size for the otherwise empty body.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes