<!DOCTYPE html>
<html>
    <head>
        <link type='text/css' rel='stylesheet' href='style.css'/>
        <title>Get Started!</title>
    </head>
    <body>
        <p><?php echo ""; ?></p>
    </body>
</html>

I thought css needed to be imbeded or linked from the <sript> tag?

Recommended Answers

CSS inclusion above is correct. <script> is for Javascript.

Jump to Post

All 3 Replies

CSS inclusion above is correct. <script> is for Javascript.

<script type="text/javascript" src="put the path of javascript file here"> </script>

If you include an external js file, you should do so after the reference to your external stylesheet.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.