Tech
Connecting CSS to JS(CSS basics part 4/60)
How to connect CSS to JS
Cascading Style Sheets(CSS) is not just limited to external files, you can use it directly in a JS file.
An example of this would be changing the color of a text with the id of 'title':
let title = document . getElementById ( ' title ' );
title . style = ' color: blue; '
Going deeper with Linking CSS to JS
Did you know you can go deeper when linking CSS to JS?
You can edit a specific style:
le...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to