Question

Very basic HTML questions Why do companies like their programmers to follow standard coding conventions? What...

Very basic HTML questions

  1. Why do companies like their programmers to follow standard coding conventions?

  2. What does Google’s Style Guide have to say about trailing whitespace?

  3. Convert the following code so that it is compliant with HTML5 standards and also proper coding conventions. To ensure compliance with the HTML5 standards, I recommend that you enter your converted code into the W3C’s HTML validation service. To ensure proper coding conventions, please carefully review the HTML5 coding conventions document.

    <html>
    <head>
    <meta charset="utf-8">
    <meta name="author" content="John Dean">
    <title>Mock Trial How-To<title>
    </head>
    
    <body>
    <H1>Mock Trial Opening Statements</H1>
    <hr>
    <strong><p>Prosecuting Attorney</strong>:<br>
    Good morning, I am the prosecuting attorney, and I represent the State. I will call three witnesses. At the conclusion of the case, we will ask you to convict the defendant of the crime as charged, thank you.
    </p>
    <p><strong>Defense Attorney</strong>:<br>
    Ladies and Gentlemen of the jury, I intend to prove that my client xxxxxx is innocent of the alleged murder of yyyyyy, and the evidence presented by the prosecution is circumstantial.
    </body>
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Companies follow the standard coding conventions because following different standards by different developers in the same project makes the code unreadable and it can also cause check-in wars between developers.

Google's style guide says that trailing white spaces are unnecessary and can cause extra work for others who are editing the same file as they have to remove that existing trailing spaces. It can also cause complication with diffs.

HTML File

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="author" content="John Dean">
<title>Mock Trial How-To</title>
</head>

<body>
<H1>Mock Trial Opening Statements</H1>

<hr>

<p><strong>Prosecuting Attorney</strong>:<br>
Good morning, I am the prosecuting attorney, and I represent the State. I will call three witnesses. At the conclusion of the case, we will ask you to convict the defendant of the crime as charged, thank you.
</p>
<p><strong>Defense Attorney</strong>:<br>
Ladies and Gentlemen of the jury, I intend to prove that my client xxxxxx is innocent of the alleged murder of yyyyyy, and the evidence presented by the prosecution is circumstantial.</p>
</body>
</html>

Screenshots

Add a comment
Know the answer?
Add Answer to:
Very basic HTML questions Why do companies like their programmers to follow standard coding conventions? What...
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
  • Hey I am having an issue with my HTML5 document. Everything is working fine except that...

    Hey I am having an issue with my HTML5 document. Everything is working fine except that I am not sure how to make my <h1> Objective </h1> to align towards the left. I have tried for instance <p align = "Left"> <h1> <strong>Objective </strong> </h1> </p> Any help would be great. Thanks <!DOCTYPE html> <html> <!-- Do I need to use <head> right here? I tried it without head or urf-8 and it worked--> <!-- I'm still a bit confused...

  • Both codes <!DOCTYPE html> <html> <head> <title>Week 8 Lab - JavaScript DOM and Arrays</title> <meta charset="utf-8">...

    Both codes <!DOCTYPE html> <html> <head> <title>Week 8 Lab - JavaScript DOM and Arrays</title> <meta charset="utf-8"> </head> <body> <h2>Order Form</h2> <form name="orderForm" method="post" action="processForm.html"> <table> <tr> <th colspan="2">Personal Information</th> </tr> <tr> <td>First Name:</td> <td><input type="text" name="firstName" id="firstName" size="30"></td> </tr> <tr> <td>Last Name:</td> <td><input type="text" name="lastName" id="lastName" size="30"></td> </tr> <tr> <td>Address:</td> <td><input type="text" name="address" id="address" size="30"></td> </tr> <tr> <td>City:</td> <td><input type="text" name="city" id="city" size="30"></td> </tr> <tr> <td>Province:</td> <td><select name="province" id="province" size="1"> <option disabled>Select a province</option> <option value="BC">British Columbia</option> <option value="AB">Alberta</option> <option...

  • How do I get my HTML and CSS to look similar to this mockup? HTML: <!DOCTYPE...

    How do I get my HTML and CSS to look similar to this mockup? HTML: <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>nitro site</title>     <link href="css/main.css" rel="stylesheet"/> </head> <body>     <header class="header">     <section class="navlist">         <img class="logo" src="assets/logobeans.png"/>         <h2 class="headertitle">nitro</h2>     <nav>         <ul>             <li><a href="index.html" target="_parent">About</a></li>             <li><a href="/html/menu.html" target="_blank">Menu</a></li>             <li><a href="/html/menu.html">Shop Now</a></li>         </ul>     </nav>     </section>     <section class="headerContainer">         <h1 class="heading">Nitro Coffee</h1>         <p class="productDesc">Coffee is a brewed drink prepared from roasted coffee beans, the seeds of berries from certain Coffea species.</p>...

  • can you do this js and html question. ill give you the html and js and...

    can you do this js and html question. ill give you the html and js and css files just fix my error use if and else like what i did dont use switch just fix my erorr. <!DOCTYPE html> <!-- Webpage HTML document for Lab 4. Authors: Amirhossein Chinaei, Andriy Pavlovych For: EECS 1012, York University, Lassonde School of Engineering --> <html lang="En"> <head> <meta charset="UTF-8"> <!-- title for web page --> <title> EECS1012: Lab 4 - Computational Thinking </title>...

  • <!-- Title: Week2 Lab2 Author: Lovcita Jean-Michel Date: 07/18/2020 --> <!DOCTYPE html> <html lang="en"> <head> <meta...

    <!-- Title: Week2 Lab2 Author: Lovcita Jean-Michel Date: 07/18/2020 --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title> Week2 Lab2 </title> </head> <body> <h1> Video Call Platforms </h1> <h2> Top Competition in Education </h2> <p> There are many companies competing to be platform of choice for viraleducation.Below are a few of the choices that schools may use. <ul> <li> Zoom </li> <li> Google Meet </li> <li> Microsoft Teams </li> </ul> <h2> Free Plan Details </h2> <p> Each platform offers free...

  • Design an original, professional web site following the specifications listed below. This web sit...

    Design an original, professional web site following the specifications listed below. This web site will be for a business you plan to set up for yourself or for someone else. The following is a detailed list of the requirements for your web site. READ them carefully. Instructions - Web Site Requirements for the web site: General: You will thoroughly test all your pages in more than one browser. All links MUST work. All graphics must show on the page. All...

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