html - CSS not working on 000webhost -


i started simple website on 000webhost. uploaded following index.html file:

<!doctype html>    <html lang="en">        <head>            <title>tabs</title>         <meta charset="utf-8">                 <meta name="description" content="bootstrap.">          <link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">            <script src="http://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>         <script type="text/javascript" src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>     </head>    <body style="margin:20px auto">        <div class="container">         <div class="row header" style="text-align:center;color:green">              <ul class="nav nav-tabs">                 <li class="active"><a>tab 1</a></li>                 <li><a>tab 2</a></li>                 <li><a>tab 3</a></li>             </ul>              <p><br></p>          </div>     </div> </body> 

locally, , want show as, following: what want.

and shows on webhost, following: not want.

it's not using css/js scripts (bootstrap stuff) added @ top of page. idea why?

check console errors!

you're viewing 000webhost page on https (secure), it's not loading assets you're calling hardcoded on http (insecure).

you can either view site on http see loaded: http://temptry.000webhostapp.com/

or, more preferably, fix references assets https-agnostic (leading //), or point directly https. example:

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet"> 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -