[Answered ]-Webpage is loading while css style is not ready?

1👍

CSS stylesheets are not scripts. Include them as follows into the HTML <head></head>:

<link rel="stylesheet" type="text/css" href="style1.css">
<link rel="stylesheet" type="text/css" href="style2.css">

1👍

<script src="style1.css"></script>
<!-- Html code -->
<script src="style2.css"></script>
<!-- Html code -->

script tag used to load scripting file javascript vbscripts.

for adding css file use link tag.

<link href="style1.css"></link>
<!-- Html code -->
<link href="style2.css"></link>
<!-- Html code -->

Complete Code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <title></title>
    <link href="style1.css"></link>
    <!-- Html code -->
    <link href="style2.css"></link>
    <!-- Html code -->
</head>
<body>

</body>
</html>

Leave a comment