Issues with the loading and display of Bootstrap Carousels

Hey there! I'm facing an issue with implementing a Bootstrap carousel on my website. Despite trying out several examples from Bootsnip and even the one from the official Bootstrap website, the carousel slides are not working as expected. Any ideas on what could be causing this? At first, I suspected it might be due to the JavaScript link, but upon checking, everything seems fine.

HTML CODE

<!DOCTYPE html>
<html>

<head>
    <title>The Beckwood - Scunthorpe</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
        <link href="https://fonts.googleapis.com/css?family=Satisfy" rel="stylesheet">

<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">

    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <link rel="stylesheet" type="text/css" href="assets/css/style.css">

</head>

<body>
<div id="wrap">
    <div class="header-main">

        <nav class="navbar navbar-default">
            <div class="container">
                <a class="navbar-brand" href="index.html" >
                     <img src="assets/img/logo.png">

                </a>
                <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>
                </div>
                <div class="collapse navbar-collapse" id="myNavbar">
                    <ul class="nav navbar-nav navbar-right">
                        <li><a id="activenav" href="index.html">HOME</a></li>
                         <li><a href="menu.html">MENU</a></li>
                          <li><a href="gallery.html">GALLERY</a></li>
                           <li><a href="about.html">ABOUT</a></li>
                            <li><a href="book.html">BOOK A TABLE</a></li>
                            <li><a href="contact.html">CONTACT</a></li>
                        </ul>

                    </div>
            </div>
        </nav>
        <div class="hero">
            <h1 id="welcome">Welcome to The Beckwood.</h1>
            <p>The Beckwood is a family run pub located in scunthorpe offering quality homemade food, carverys, events and live sports.</p>
            <div class="btn btn-primary"><a href="menu.html">View Menu</a></div>
            <div class="btn btn-primary"><a href="menu.html">Book a table</a></div>
        </div>
    </div>

</div>

...
...

<footer id="myFooter">
        <div class="container">
            <div class="row">
                <div class="col-sm-3">
                    <img id="footerlogo" src="assets/img/logo.png">



                </div>
                <div class="col-sm-4">
                    <h5>Opening Times</h5>

                             <p class="opening hours"></p>
                    <p>Tue-Thu ~ 12:00 - 23:00</p>
                    <p>Friday ~ 12:00 - 00:00</p>
                    <p>Saturday ~ 12:00 - 00:00</p>
                    <p>Sunday ~ 12:00 - 22:30</p>


                </div>
                <div class="col-sm-1">
                    <h5>Navigation</h5>
                    <ul>
                        <li><a href="index.html">Home</a></li>
                        <li><a href="menu.html">Menu</a></li>
                        <li><a href="gallery.html">Gallery</a></li>
                        <li><a href="about.html">About</a></li>
                        <li><a href="book.html">Book</a></li>
                        <li><a href="contact.html">Contact</a></li>
                    </ul>
                </div>

                <div class="col-sm-4">
                    <div class="social-networks">
                        <a href="#" class="twitter"><i class="fa fa-twitter"></i></a>
                        <a href="#" class="facebook"><i class="fa fa-facebook"></i></a>
                        <a href="#" class="google"><i class="fa fa-instagram"></i></a>
                    </div>

<img class="center" src="assets/img/hygeine.png">


                </div>

            </div>
        </div>
        <div class="footer-copyright">
            <p>© 2018 The Beckwood.</p>
        </div>
    </footer>



<script src="https://code.jquery.com/jquery-3.2.1.min.js" type="text/javascript"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>

<script src="validator.js"></script>
<script src="contact.js"></script>

</body>

</html>

Answer №1

To make it work, I think you need to bring in Bootstrap and JS within the <head> section.

I trust this information is useful

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Unable to create a clickable image

My approach involves using asp:Hyperlink controls to create an image that acts as a link. Here is the sample code in both aspx and C#: <asp:HyperLink ID="mainInteractiveFileLink" runat="server"> </asp:HyperLink> C# mainInteractiveFileLink ...

Steps for using selenium to select a radio button

Looking to leverage Selenium in Python 3.9 for button clicking automation. Link to the website https://i.stack.imgur.com/KWsKG.png The goal is to click on "Effective Date", then select "July 2021", and finally click "OK". Initially, the first two steps ...

Is there a way to display the # symbol instead of characters in the input text field?

I have a text input field in a PHP page with a maxlength attribute set to 11. This input field is specifically used for entering phone numbers. The requirement is that when the user types a phone number, it should display as "#" symbols for all 11 characte ...

Python CGI presents a challenge when dealing with HTTP GET parameters

I'm currently studying Python web development. When I access the HTML, I see Ferrari, Fiat, Ford as expected. However, when I click on Ferrari, it leads to a new page showing make and model instead of Ferrari Dino. Can you assist me in identifying th ...

HTML and JQUERY elements transitioned

I am currently working with a pre-existing code that was developed by someone else. The website is built using PHP, HTML, and JQUERY (WordPress with WooCommerce). My task involves inserting tabs into an existing section of the website. However, I am facin ...

What is the best way to generate unique mousedown callbacks on the fly?

My goal is to create multiple divs, each with a unique mousedown callback function. However, I want each callback function to behave differently based on the specific div that is clicked. Below is the code I have been using to create the divs and set the ...

Having trouble making a background image stay fixed to the window with Bootstrap 3

Having trouble getting a full background image in Bootstrap 3? The image is cropping below and not displaying properly on all devices. Can anyone help me out? I've been trying to fix this for quite some time. background-repeat: no-repeat; min- ...

What is the best way to implement changes in position from react-easy-crop to update a live image displayed in a separate div on the webpage?

Once an image is selected, it is displayed in two different places: one within react-easy-crop with a 4:3 aspect ratio, and the other in a separate div sized at 960w*510h. When the crop position is changed in react-easy-crop, the position of the image in ...

Do the elements only find their rightful position when the window is interacted with?

I've encountered a strange issue with a button in my code that inserts HTML textareas onto the page. Initially, when the button is clicked, everything appears as expected. However, upon subsequent clicks, the textareas start to appear in random places ...

Transforming a Microsoft Word document containing images into HTML code

Looking for a solution to extract images from a Word document, save them to a folder, re-link them back into the document and then convert it to HTML for uploading to our intranet site. Any suggestions on how this can be achieved? ...

Limiting text based on the space it occupies

Is it feasible to restrict the number of characters allowed in an input field based on the space they occupy? For instance, W's and M's require enough space for 34 of them. https://i.sstatic.net/xQW5p.png However, regular sentences of the same ...

What could be causing my image to not completely fill the background?

I'm struggling to get my background image to fit 100% screen width and height. Unfortunately, the image isn't showing up at all. Can anyone tell me what I'm doing wrong? Below is the code I've tried, but for some reason, it's not ...

IE Compatibility with CSS 3 Text Shadow

Currently, I am implementing a CSS 3 text shadow to mimic a bevel and emboss effect on my web application. Unfortunately, when viewed on IE 10, the shadow appears distorted which is quite frustrating. I have not yet tested it on IE 9. Is there a solution t ...

Problems with Bootstrap Dropdown menu failing to appear

Despite looking at similar questions, I have not been able to resolve my issue. I am currently setting up a page using Python and Flask with Bootstrap. As someone new to all of this, I tried creating a dummy navigation bar by copying the nav class from ...

The combination of min-width and min-height is ineffective on Internet Explorer

My current issue involves CSS for media min-height and min-width, which works perfectly on Chrome but not on IE11. Here's the code snippet in question: @media (min-width: 0) and (max-width: 992px) { @media (min-height: 0) and (max-height: 480px ...

The x-axis label in D3.js gets cut off when converting the SVG to an image

I'm using C3.js to create a line chart. After generating the SVG, I am converting it into a .png image using a canvas element. Everything is functioning properly, except that the x-axis label is getting cut off in the image. I have set the canvas wid ...

I found it challenging to select a particular choice using Selenium in Python

My goal is to use Selenium and Python to select the "Yazar" option within this particular HTML tag. However, I have encountered a problem where I am unable to successfully click and choose the "Yazar" option. Can anyone provide guidance on how to achieve t ...

Steps to insert an h2 element within a MeanMenu container

My current project involves working on a website that utilizes the meanmenu plugin. I have been facing a challenge for the past two days in trying to display a title inside the mean menu container. Here is the HTML code snippet for the menu: ...

Issue arises when attempting to submit multiple form fields with identical 'name' attributes, preventing the fields from being posted

Currently, I am facing a challenge with old HTML/JavaScript code. Some parts I have control over, while others are generated from an external source that I cannot manage. There is a form created dynamically with hidden fields. The form is produced using a ...

Create text that alternates between blinking and changing content simultaneously

I'm currently working on a website and I am curious about how to achieve the effect of making text blink and change content simultaneously, similar to what is seen on this particular website . Sorry for not being more specific in my question. Thank yo ...