Write HTML code to develop a web page about your school ?

 Write HTML code to develop a web page about your school ?


<!DOCTYPE html>

<html lang="en">

<head>

  <title>Bootstrap Example</title>

  <meta charset="utf-8">

  <meta name="viewport" content="width=device-width, initial-scale=1">

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

  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>

  <style>

    /* Remove the navbar's default margin-bottom and rounded borders */ 

    .navbar {

      margin-bottom: 0;

      border-radius: 0;

    }

    

    /* Add a gray background color and some padding to the footer */

    footer {

      background-color: #f2f2f2;

      padding: 25px;

    }

    

  .carousel-inner img {

      width: 100%; /* Set width to 100% */

      margin: auto;

      min-height:200px;

  }


  /* Hide the carousel text when the screen is less than 600 pixels wide */

  @media (max-width: 600px) {

    .carousel-caption {

      display: none; 

    }

  }

  </style>

</head>

<body>


<nav class="navbar navbar-inverse">

  <div class="container-fluid">

    <div class="navbar-header">

      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">

        <span class="icon-bar"></span>

        <span class="icon-bar"></span>

        <span class="icon-bar"></span>                        

      </button>

      <a class="navbar-brand" href="#">Logo</a>

    </div>

    <div class="collapse navbar-collapse" id="myNavbar">

      <ul class="nav navbar-nav">

        <li class="active"><a href="#">Home</a></li>

        <li><a href="#">About</a></li>

        <li><a href="#">Page 2</a></li>

        <li><a href="#">Page 3</a></li>

        <li><a href="#">Contact</a></li>

      </ul>

      <ul class="nav navbar-nav navbar-right">

        <li><a href="#"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>

      </ul>

    </div>

  </div>

</nav>


<div id="myCarousel" class="carousel slide" data-ride="carousel">

    <!-- Indicators -->

    <ol class="carousel-indicators">

      <li data-target="#myCarousel" data-slide-to="0" class="active"></li>

      <li data-target="#myCarousel" data-slide-to="1"></li>

    </ol>


    <!-- Wrapper for slides -->

    <div class="carousel-inner" role="listbox">

      <div class="item active">

        <img src="https://placehold.it/1200x400?text=IMAGE" alt="Image">

        <div class="carousel-caption">

          <h3>Photo Heading 1</h3>

          <p>Photo Caption 1</p>

        </div>      

      </div>


      <div class="item">

        <img src="https://thinkforu.org/1200x400?text=Another Image Maybe" alt="Image">

        <div class="carousel-caption">

          <h3>Photo Heading 2</h3>

          <p>Photo Caption 2</p>

        </div>      

      </div>

    </div>


    <!-- Left and right controls -->

    <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">

      <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>

      <span class="sr-only">Previous</span>

    </a>

    <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">

      <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>

      <span class="sr-only">Next</span>

    </a>

</div>

  

<div class="container text-center">    

  <h3>Our School Name</h3><br>

  <div class="row">

    <div class="col-sm-4">

      <img src="https://placehold.it/150x80?text=IMAGE" class="img-responsive" style="width:100%" alt="Image">

      <p>An event we have had at school</p>

    </div>

    <div class="col-sm-4"> 

      <img src="https://thinkforu.org/150x80?text=IMAGE" class="img-responsive" style="width:100%" alt="Image">

      <p>Another Event</p>    

    </div>

    <div class="col-sm-4">

      <div class="well">

       <p>Replace this p tag with a 'student of the week' or the 'liger leader' and include information about them.</p>

      </div>

      <div class="well">

       <p>Replace this p tag with some information about a sporting event or a club.</p>

      </div>

    </div>

  </div>

</div><br>


<footer class="container-fluid text-center">

  <p>Footer Text- This area should include contact information and the address for the school.</p>

</footer>


</body>

</html>

Comments

Last 7 Days

How to use referrerpolicy Attribute value (strict-origin ) with < iframe > tag in HTML ? with example

Tag is used to create inline frame ?