Bootstrap Typography: No class attribute with appropriate values for uppercase and reverse not found

2.9k views Asked by At

The question is: Create a newspaper layout as depicted in the image(Which is looking same as the output of my code) using bootstrap and html components

Image link: https://drive.google.com/file/d/1KwcUdHZznQvVtKlsGVD-TZK7tWR5-d6X/view?usp=sharing

Concept Covered : Bootstrap Typography

Note :-

  1. The layout should be as given in the picture.

  2. Create a parent div within the body element with class as container.

  3. The title "THE NEWS" must be a h2 heading and the abbreviation for NEWS must be indicated as North South East West on mouse over [ use appropriate bootstrap typography components ].

  4. The text below "THE NEWS" must have a contextual success background.

  5. Make sure the "National News" and "World News" is being highlighted using bootstrap typography component.

  6. National News and World News must be in two separate panels. But both should be within the same panel group.

  7. The national news and world news panel body must be in small typography.

  8. The copyright info must be in uppercase using bootstrap class applied to a paragraph tag which is inside the appropriate bootstrap component.

  9. Similarly the warning info must be in a bootstrap warning class and the quote must be in reverse direction as indicated in the image.

     <html lang="en">
     <!-- DO NOT CHANGE ANY THING UNDER HEAD SECTION -->
      <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="/additional_files/js/webtechnology/bootstrap/bootstrap.min.js"></script>
             <script src="/additional_files/js/webtechnology/jquery/jquery.min.js"></script>
     </head>
     <body>
    
         <!-- CREATE THE PAGE LAYOUT ACCORDING TO GIVEN SPECIFICATIONS  -->
         <!-- HINT :- Use PANEL,abbr,mark,small,Various helper classes and various responsive utilities concepts related to bootstrap -->
         <div class="container">
             <h2>THE <u><abbr title="North">N</abbr><abbr title="East">E</abbr><abbr title="West">W</abbr><abbr title="South">S</abbr></u></h2>
             <p class="bg-success">This is an e-paper that collates national and world news</p>
    
             <div class="panel-group">
                 <div class="panel panel-default">
                     <div class="panel-heading"><mark>National News</mark></div>
                     <div class="panel-body text-primary"><small>This section displays all national news and events</small></div>
                 </div>
                 <div class="panel panel-default">
                     <div class="panel-heading"><mark>World News</mark></div>
                     <div class="panel-body"><small>This section displays all world news and events</small></div>
                 </div>
             </div>
         </div>
         <div><p class="text-uppercase">COPYRIGHT:- THE NEWS INDIA COMPANY</p>
         <blockquote class="blockquote-reverse warning">
         Warning:- Do Not Reproduce
         </blockquote>
         </div>
         </body>
         </html>
    
    
     <!-- end snippet -->
    

This code is giving the output properly with an error which I don't know how to resolve

The error message showing is: No class attribute with appropriate values for uppercase and reverse not found

2

There are 2 answers

0
Anonymous On

<link href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>

<div class="container">
    <h2>THE <abbr title="North South East West">NEWS</abbr></h2>
    <p class="bg-success">This is an e-paper that collatesnational and world news</p>
    <div class="panel-group">
        <div class="panel panel-default">
            <div class="panel-heading"><mark>National News</mark></div>
            <div class="panel-body text-primary">This section displays all national news and events</div>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading"><mark>World News</mark></div>
            <div class="panel-body">This section displays all world news and events</div>
        </div>
    </div>
    <div>
        <p class="text-uppercase">copyright :- the news india company</p>
        <blockquote class="blockquote-reverse text-warning">Warning:- Do Not Reproduce</blockquote>
    </div>
</div>

2
Walter White On
<div class="container">
  <h2>THE <abbr title="North South East West">NEWS</abbr></h2>
  <p class="bg-success">This is an e-paper that contains national and world news</p>
  <div class="panel-group">
    <div class="panel panel-default">
      <div class="panel-heading"><mark>National News</mark></div>
      <div class="panel-body text-primary"><small>This section displays all national news and events</small></div>
    </div>
    <div class="panel panel-default">
      <div class="panel-heading"><mark>World News</mark></div>
      <div class="panel-body"><small>This section displays all world news and events</small></div>
    </div>
  </div>
</div>
<blockquote>
  <p class="text-uppercase">Copyright :- The news India company</p>
</blockquote>
<blockquote class="blockquote-reverse">
  <p class="text-warning">Warning:- Do Not Reproduce</p>
</blockquote>