Почему нижний заголовок h3 становится отступом? - PullRequest
0 голосов
/ 06 февраля 2019

Я добавляю два заголовка: «Образование» и «Мои увлечения»

Почему они не выровнены?

Я прошел через код и сумел исправить некоторые проблемы со списком вложений, но это не помогло решить вышеуказанную проблему.

<body>
    <h1>Vlad Myshchuk</h1>
    <p><em><strong>Software Engineer</strong><br>Full Stack Developer</em></p>
    <p>I am self-taught student of programming. My focus as a Software Engineer is primarily on Full Stack Software & Web Development. I hold a degree in Accounting A.A.S. as well as Computer Information Systems A.A.S.</p>
    <hr>
    <h3>Education</h3>
      <ul>
        <li>Hudson Valley Community College</li>
        <li>State University of New York College at Oneonta</li>
        <li>Recent courses at Udemy:
          <ul>
            <li>The Complete 2019 Web Development Bootcamp with Professor Angela Yu</li>
          </ul>
        </li>
        <li>Books
          <ul>
            <li>Pragmatic Thinking and Learning by Andy Hunt</li>
            <li>Code: The Hidden Language of Computer Hardware and Software by Charles Petzold</li>
            <li>Code Complete: A Practical Handbook of Software Construction by Steve McConell</li>
            <li>Clean Code: A Handbook of Agile Software Cragsmanship by Robert C. Martin</li>
          </ul>
        </li>

      <h3>My Hobbies</h3>
        <ol>
            <li>Completing algorithms on codechef.com and codingame.com</li>
            <li>Practice a variety of meditation and yoga.</li>
            <li>Weight training and high intensity interval training (HIIT).</li>
            <li>Reading books on psychology as well as philosophy.</li>
            <li>Listening to educational podcasts and recorded lectures.</li>
        </ol>

  </body>

Я ожидаю, что оба заголовка будут расположены слева.

Ответы [ 2 ]

0 голосов
/ 06 февраля 2019

Вы сделали глупую ошибку, дорогая.Вы должны просто заполнить тег

 </ul>

до

<h3>My Hobbies</h3>

после того, как исправите его, ваша проблема будет решена.

0 голосов
/ 06 февраля 2019

Просто опечатка, я ожидаю, был неэкранированный тег h3.Есть удобный инструмент для проверки: https://www.aliciaramirez.com/closing-tags-checker/

<body>
  <h1>Vlad Myshchuk</h1>
  <p><em><strong>Software Engineer</strong><br>Full Stack Developer</em></p>
  <p>I am self-taught student of programming. My focus as a Software Engineer is primarily on Full Stack Software & Web Development. I hold a degree in Accounting A.A.S. as well as Computer Information Systems A.A.S.</p>
  <hr>
  <h3>Education</h3>
  <ul>
    <li>Hudson Valley Community College</li>
    <li>State University of New York College at Oneonta</li>
    <li>Recent courses at Udemy:
      <ul>
        <li>The Complete 2019 Web Development Bootcamp with Professor Angela Yu</li>
      </ul>
    </li>
    <li>Books
      <ul>
        <li>Pragmatic Thinking and Learning by Andy Hunt</li>
        <li>Code: The Hidden Language of Computer Hardware and Software by Charles Petzold</li>
        <li>Code Complete: A Practical Handbook of Software Construction by Steve McConell</li>
        <li>Clean Code: A Handbook of Agile Software Cragsmanship by Robert C. Martin</li>
      </ul>
    </li>
  </ul>
  <h3>My Hobbies</h3>
  <ol>
    <li>Completing algorithms on codechef.com and codingame.com</li>
    <li>Practice a variety of meditation and yoga.</li>
    <li>Weight training and high intensity interval training (HIIT).</li>
    <li>Reading books on psychology as well as philosophy.</li>
    <li>Listening to educational podcasts and recorded lectures.</li>
  </ol>

</body>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...