Question

<!-- DOCTYPE declaration --> <!DOCTYPE html> <!-- HTML boilerplate code --> <html lang="en">    <!-- head...

<!-- DOCTYPE declaration -->
<!DOCTYPE html>
<!-- HTML boilerplate code -->
<html lang="en">
   <!-- head tag -->
   <head>         
       <meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Personal Webpage</title>
   </head>

   <!-- body tag -->
    <body>         
   <style>
       .sidenav {
           height: 100%;
            width: 160px;
           position: fixed;
           z-index: 1;
            top: 0;
           left: 0;
           background-color: #111;
           overflow-x: hidden;
           padding-top: 20px;
       }

       .sidenav a {
           padding: 6px 8px 6px 16px;
           text-decoration: none;
           font-size: 25px;
           color: #818181;
           display: block;
       }

       .sidenav a:hover {
           color: #f1f1f1;
       }

       .centerImage {
            text-align:center;
            display:block;
       }

       .main {
          margin-left: 160px; /* Same as the width of the sidenav */
           font-size: 28px; /* Increased text to enable scrolling */
           padding: 0px 10px;
       }
   </style>
       <div class="sidenav">
       <a href="index.html">Home</a>
       <a href="resume.html">Resume</a>
       <a href="projects.html">Projects</a>
       <a href="contact.html">Contact</a>
       <a href="social.html">Social</a>
       </div>

      
       <div class="main">
           <h2>Megumin</h2>
           <p>This is my personal webpage to introduce myself.</p>
           <p>This my photo.</p>
           <center>
           <img src="./images/photo.jpg" alt="centered image" height="680" width="500">
           </center>
       </div>
   </body>
</html>

Please help me to fix the problem in W3C Markup Validator

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Ans)You cannot use tags like center for w3c validator:

blow code will work fine

----------------------------------------------------------------------------------------------------------------------------------------

<!-- DOCTYPE declaration -->

<!DOCTYPE html>

<!-- HTML boilerplate code -->

<html lang="en">

   <!-- head tag -->

   <head>         

       <meta http-equiv="content-type" content="text/html; charset=UTF-8">

<title>Personal Webpage</title>

<style>

    .sidenav {

        height: 100%;

         width: 160px;

        position: fixed;

        z-index: 1;

         top: 0;

        left: 0;

        background-color: #111;

        overflow-x: hidden;

        padding-top: 20px;

    }

    .sidenav a {

        padding: 6px 8px 6px 16px;

        text-decoration: none;

        font-size: 25px;

        color: #818181;

        display: block;

    }

    .sidenav a:hover {

        color: #f1f1f1;

    }

    .centerImage {

         text-align:center;

         display:block;

    }

    .main {

       margin-left: 160px; /* Same as the width of the sidenav */

        font-size: 28px; /* Increased text to enable scrolling */

        padding: 0px 10px;

    }

    .main .img{

        text-align: center;

       

    }

</style>

   </head>

   <!-- body tag -->

    <body>         

   

       <div class="sidenav">

       <a href="index.html">Home</a>

       <a href="resume.html">Resume</a>

       <a href="projects.html">Projects</a>

       <a href="contact.html">Contact</a>

       <a href="social.html">Social</a>

       </div>

      

       <div class="main">

           <h2>Megumin</h2>

           <p>This is my personal webpage to introduce myself.</p>

           <p>This my photo.</p>

          <div class="img">

           <img src="./images/photo.jpg" alt="centered image" height="680" width="500">

           </div>

       </div>

   </body>

</html>

--------------------------------------------------------------------------------------------------------------------------------------

Add a comment
Know the answer?
Add Answer to:
<!-- DOCTYPE declaration --> <!DOCTYPE html> <!-- HTML boilerplate code --> <html lang="en">    <!-- head...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • <!-- DOCTYPE declaration --> <!DOCTYPE html> <!-- HTML boilerplate code --> <html lang="en">    <!-- head...

    <!-- DOCTYPE declaration --> <!DOCTYPE html> <!-- HTML boilerplate code --> <html lang="en">    <!-- head tag -->    <head>                 <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Social</title>    </head>    <!-- body tag --> <body>                 <style>        .sidenav {            height: 100%;             width: 160px;            position: fixed;            z-index: 1;             top: 0;            left: 0;            background-color:...

  • I cant seem to get the CSS at the bottom of this HTML to work. <!doctype...

    I cant seem to get the CSS at the bottom of this HTML to work. <!doctype html> <html lang="en"> <head> <!--Madison McCuiston--> <meta charset="utf-8"> <title>Amelie Boulangerie</title> <link href="style.css" rel="stylesheet" type="text/css"> </head> <body> <div id="wrapper"> <header>Amelie Boulangerie</header> <!-- change this to header tag --> <nav> <ul> <li><a href="index.html">Home</a></li> <li><a href="pastries.html">Pastries</a></li> <li><a href="events.html">Events</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav> <main> <H2>Experience the Difference</H2> <p><span class="bakery">Amelie Boulangerie</span> is the master of flavor combinations.The jewel-colored macarons come in the most tempting of flavors. Experience the difference...

  • HTML and css using notepad++ WHen you run the code, you will see a horizontal menue...

    HTML and css using notepad++ WHen you run the code, you will see a horizontal menue with several options. I want a small horizontal line between each option. I also want that done using div inside a div. Thank you <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Title of the document</title> <style> body{ background-color:#FFA07A; } #h1{ color:white; text-decoration:none; padding:30px; } #h2{ color:white; text-decoration:none; padding:30px; } #navbar1{ background-color:grey; text-align:center; font-size:35px; height:100%px; border:1px solid black; position:absolute; text-decoration:none; margin-left:300px; } #h3{ color:white; text-decoration:none; padding:30px;...

  • HTML css When i refresh the page, the picture doesnt move at all for #i1 i...

    HTML css When i refresh the page, the picture doesnt move at all for #i1 i have width and height but the pictuers doesn't move please fix it. <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Title of the document</title> <style> body{ background-color:#FFA07A; } #h1{ color:white; text-decoration:none; padding:30px; } #h2{ color:white; text-decoration:none; padding:30px; } #navbar1{ background-color:grey; text-align:center; font-size:35px; height:100%px; border:1px solid black; position:absolute; text-decoration:none; margin-left:300px; } #h3{ color:white; text-decoration:none; padding:30px; } #b1{ background-color:grey; font-size:30px; } i1{ width:10px; height:20px; } </style> <body> <div...

  • Look at the following illustrated output for an HTML and a css given below <!DOCTYPE html>...

    Look at the following illustrated output for an HTML and a css given below <!DOCTYPE html> <head> <title>TABLE with STYLE SHEET</title> <meta charset="utf-8" /> <meta name="description" content="Godaddy Webpage original" /> <link rel = "stylesheet" href="GoDaddy_assignment_1.css"> <body> <img src= "GoDaddy.png"/> <p>Welcome to:<strong>webhamster.com</strong></br> This web page is parked<strong>Free</strong>courtesy of <a class="aclass1" href ="https://www.godaddy.com">GoDaddy.com</a></p> <h1>Want to buy<span class ="span2">webmaster.com ?</span></h1> <div class ="div1"> <a class ="aclass2" href="https://www.godaddy.com">Learn How</a> </div> </hr> <button>Search Ads</button> </body> </html> “ QUESTION continued Given the corresponding css file .aclass1{color:purple;}...

  • below is an html code, Modify the design to implement the following pattern. “Sticky Footer”. <!DOCTYPE...

    below is an html code, Modify the design to implement the following pattern. “Sticky Footer”. <!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Responsive Menu Lab</title> <style type="text/css"> div { border: 1px solid blue; margin: 5px; }    #container { width: 98%; margin: auto; }    #main { padding: 10px; } #menu { list-style: none; padding-left: 2px; }    #menu li { display: inline-block; width: 70px; }    #menu li a { display: block; text-decoration: none; } </style> </head>...

  • As part of this assignment we are using the base Gallery HTML and writing JavaScript code...

    As part of this assignment we are using the base Gallery HTML and writing JavaScript code that will: 1) preload the images provided to us, 2) Create rollover functionality for each of the thumbnails in your image gallery 3) Use appropriate images found in the images folder. 4) Write developer comments to describe the variables being declared and explain the functions and logical blocks of JavaScript code pertaining to the gallery. I know it has to be an external JS...

  • <!DOCTYPE html> <html> <head> <title>Products</title> <style> .heading { text-align: center; font-size: 40px; } #menu { text-align:...

    <!DOCTYPE html> <html> <head> <title>Products</title> <style> .heading { text-align: center; font-size: 40px; } #menu { text-align: center; } #menu li { display: inline; font-size: 26px; margin-left: 20px; } .container{ overflow: hidden; margin: 30px; } img { float: left; width: 40vh; height: 40vh; margin-left: 10%; } table { float: right; margin-right: 10%; } table, th, td { border: 1px solid black; border-collapse: collapse; } th, td { font-size: 26px; padding: 10px; text-align: left; } a { color: black; } a:visted {...

  • use the sample html file below with a submit button to modify the style of the...

    use the sample html file below with a submit button to modify the style of the paragraph text through JavaScript code. By clicking on the button, the font, the font size, and the color of the paragraph text will be changed. <!DOCTYPE html> ·         <html> ·         <head> ·         <meta charset=utf-8 /> ·         <title>Change Paragraph Text</title> ·         </head>   ·         <body> ·         <p id ='text'>I’m going to change this text, I hope.</p>   ·         <div> ·         <button id="jschange" ·         onclick="js_style()">Style</button> ·         </div> ·         </body> ·         </html>

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT