Question

In: Computer Science

Dear Colleague, Earlier today I built my seventh website using HTML5, CSS3, and Bootstrap4. Bootstrap seems...

Dear Colleague, Earlier today I built my seventh website using HTML5, CSS3, and Bootstrap4. Bootstrap seems amazing, but it never did what it should do – make my website look better. Also, my page should have a blue theme that was provided in the CSS folder. This also didn’t work. My website is supposed to look like what is shown in Figure 1 (see below). Someone told me that there are exactly 10 errors on index.html, 10 errors on contact.html, and 10 errors on events.html. Yes, 30 errors total! Can you help me find all of the errors? Hint: You should not add ANY LINES to the code. There will never be more than one error per line number.

events.html ( HELP FIND the 10 ERRORS IN THIS CODE )

<!doctype html>
<html>
<head>
<title>Try Boro Kids Race Series</title>

<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css">
<!-- Bootstrap CSS -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet">
<!-- JQuery -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- Bootstrap core JavaScript -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/js/bootstrap.min.js"></script>

</head>
<body>
  
<div class="container-fluid">
  
  
<nav class="navbar navbar-expand-lg navbar-dark bg-danger">
<a class="navbar-brand" href="#">
<img src="" width="auto" height="30" alt="Running Man Logo">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="events.html">Placeholder Text <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html">Placeholder Text</a>
</li>
</ul>
<ul class="navbar-nav ml-auto">
<li class="nav-item"><a class="nav-link" href="http://www.tryborokidstri.org/" target="_blank">Try Boro</a></li>
<li class="nav-item"><a class="nav-link" href="https://www.facebook. com/TryBoroKids/" target="_blank"><img src="images/IconFacebook.png" class="iconsocial" alt="Facebook" width="auto" height="30"></a></li>
</ul>
</div>
</nav>
  
  
<div class="row">
<div class="col-1"><h2>Try Boro Events</h2>
</div>
</div>
<div class="rows">
  
<div class="col-md-6">
<img src="images/Tri_Left_KidBikeBlur.jpg" class="img-fluid rounded-circle" alt="Placeholder image">
<h3>Biking is a blur </h3>
<p>Triathlete rushing to get started in the transition. Kids get the whole experience of swimming, biking, and running.</p>
</div>
<div class="col-md-6">
<img src="images/Tri_Mid_TransDrink.jpg" class="img-fluid rounded-circle" alt="Placeholder image">
<h3>A triathlon can be exhausting</h3>
<p>When returning to transition, this participant gets some much deserved water before hitting the run.</p>
</div>
<div class="col-md-6">
<img src="images/Tri_Right_trans.jpg" class="img-fluid rounded-circle" alt="Placeholder image">
<h3>Time to get changed </h3>
<p>It not easy to get out of the pool, run down to transition, and get ready for the bike - all while soaking wet!</p>
</div>
</div>
<!-- #BeginLibraryItem "/Library/footer.lbi" -->

  
  
<footer class="footer bg-primary text-center text-white"></footer>
  
</div>
  
</body>
</html>

Solutions

Expert Solution

Error details :

Error 1:

  • As this is HTML5 website need to add the <!DOCTYPE html> as first line

Error 2 :

  • Need to add lang attribute in the <html> declaration like <html lang="en">

Error 3 :

  • As this is using HTML5 no need to specify the type="text/javascript" in script tag

Error 4 :

  • For img tag src attribute is empty which is invalid need to provide the source for the img

Error 5 :

  • Width can not be auto need to provide the width to the image like width="50" etc.

Error 6 :

  • Hyperlink that is <a> tag given in the last li which contains href attribute with space that needs to remove

Error 7 :

  •   width="auto" is invalid need to provide width in digits.

******************************************

Code after making corrections :

<!DOCTYPE html>

<html lang="en">

<head>

    <!-- title for web page -->

    <title>Try Boro Kids Race Series</title>

    <!-- Font Awesome -->

    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css">

    <!-- Bootstrap CSS -->

    <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet">

    <!-- JQuery -->

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

    <!-- Bootstrap core JavaScript -->

    <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/js/bootstrap.min.js"></script>

</head>

<body>

    <div class="container-fluid">

        <nav class="navbar navbar-expand-lg navbar-dark bg-danger">

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

                <img src="abc.jpg" width="50" height="30" >

            </a>

            <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"

                aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">

                <span class="navbar-toggler-icon"></span>

            </button>

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

                <ul class="navbar-nav">

                    <li class="nav-item active">

                        <a class="nav-link" href="events.html">Placeholder Text <span

                                class="sr-only">(current)</span></a>

                    </li>

                    <li class="nav-item">

                        <a class="nav-link" href="contact.html">Placeholder Text</a>

                    </li>

                </ul>

                <ul class="navbar-nav ml-auto">

                    <li class="nav-item"><a class="nav-link" href="http://www.tryborokidstri.org/" target="_blank">Try

                            Boro</a></li>

                    <li class="nav-item"><a class="nav-link" href="https://www.face1book.com/TryBoroKids/"

                            target="_blank"><img src="images/IconFacebook.png" class="iconsocial"

                                width="50" height="30"></a></li>

                </ul>

            </div>

        </nav>


        <div class="row">

            <div class="col-1">

                <h2>Try Boro Events</h2>

            </div>

        </div>

        <div class="rows">

            <div class="col-md-6">

                <img src="images/Tri_Left_KidBikeBlur.jpg" class="img-fluid rounded-circle" >

                <h3>Biking is a blur </h3>

                <p>Triathlete rushing to get started in the transition. Kids get the whole experience of swimming,

                    biking, and running.</p>

            </div>

            <div class="col-md-6">

                <img src="images/Tri_Mid_TransDrink.jpg" class="img-fluid rounded-circle" >

                <h3>A triathlon can be exhausting</h3>

                <p>When returning to transition, this participant gets some much deserved water before hitting the run.

                </p>

            </div>

            <div class="col-md-6">

                <img src="images/Tri_Right_trans.jpg" class="img-fluid rounded-circle" >

                <h3>Time to get changed </h3>

                <p>It not easy to get out of the pool, run down to transition, and get ready for the bike - all while

                    soaking wet!</p>

            </div>

        </div>

        <!-- #BeginLibraryItem "/Library/footer.lbi" -->

        <footer class="footer bg-primary text-center text-white"></footer>

    </div>

</body>

</html>

============================================

Screen when html is validated :


Related Solutions

Dear Colleague, Earlier today I built my seventh website using HTML5, CSS3, and Bootstrap4. Bootstrap seems...
Dear Colleague, Earlier today I built my seventh website using HTML5, CSS3, and Bootstrap4. Bootstrap seems amazing, but it never did what it should do – make my website look better. Also, my page should have a blue theme that was provided in the CSS folder. This also didn’t work. My website is supposed to look like what is shown in Figure 1 (see below). Someone told me that there are exactly 10 errors on index.html, 10 errors on contact.html,...
Dear Colleague, Earlier today I built my seventh website using HTML5, CSS3, and Bootstrap4. Bootstrap seems...
Dear Colleague, Earlier today I built my seventh website using HTML5, CSS3, and Bootstrap4. Bootstrap seems amazing, but it never did what it should do – make my website look better. Also, my page should have a blue theme that was provided in the CSS folder. This also didn’t work. My website is supposed to look like what is shown in Figure 1 (see below). Someone told me that there are exactly 10 errors on index.html, 10 errors on contact.html,...
Task 1: HTML and CSS Create a website using HTML5 and CSS3 only. Website theme can...
Task 1: HTML and CSS Create a website using HTML5 and CSS3 only. Website theme can be anything you want: a country, a town, a place, a hobby, people (yourself, your family...), pets, flowers, food, or anything that you find interesting or useful. It may be about real people/places/things or fictitious. Part 1: Content (HTML) After you decide the theme of your website, create HTML pages with the content you want to present. Remember to separate content from presentation. The...
Task 1: HTML and CSS Create a website using HTML5 and CSS3 only. Please no JavaScript...
Task 1: HTML and CSS Create a website using HTML5 and CSS3 only. Please no JavaScript or Bootstrap. Website theme can be anything you want: a country, a town, a place, a hobby, people (yourself, your family...), pets, flowers, food, or anything that you find interesting or useful. It may be about real people/places/things or fictitious. Part 1: Content (HTML) After you decide the theme of your website, create HTML pages with the content you want to present. Remember to...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT