ChatiumFor developersPlaygroundPricing
Sign in

Connecting the Stylesheet

  • In the IDE, click "Create File"

  • Select "Directory", enter the name static, and click "Add"

  • Navigate to the static directory

  • Click "Create File", select "Static File", and enter the name styles.css

  • In the opened file, enter:

body {
  background: beige;
}
h1 {
  color: red;
}
  • Save the styles.css file

  • Return to editing the my.html file

  • Add the following code in the <head> section:

<link rel='stylesheet' type='text/css' href='./static/styles.css'/>

Note that this is a relative path (it starts with a dot). This is done because for GetCourse accounts, file paths have the prefix /chtm.

  • Save the my.html file and check the result

Next step: Writing Server Code