Connecting script?

Does anyone know to connect javascript,html,and css together to make them all work for the same purpose?