为什么底部H3标题成为缩进?

问题描述 投票:0回答:2

我想补充两个标题:“教育”和“我的爱好”

他们为什么不对齐的?

我已经去通代码,并设法解决一些嵌套表的问题,但没有解决上述问题。

<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>

我想到头都被定位到最左侧。

html html5 header
2个回答
0
投票

你做了一个愚蠢的错误亲爱的。你必须只完成

 </ul>

标记之前

<h3>My Hobbies</h3>

之后进行纠正你的问题将得到解决。


0
投票

只是一个错字我期望的那样,有一个转义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>
© www.soinside.com 2019 - 2024. All rights reserved.