Div and Span tags

 <!DOCTYPE html>

<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Elements</title>
  </head>
  <body>
    <!-- BLOCK ELEMENTS -->
    <!-- Header and paragraph are block elements -->
    <h2>Header tag is a Block element</h2>
    <p>this is a block element</p>

    <!--INLINE ELEMENTS  -->
    <!-- image and anchor tags are inline elements -->
    <img src="https://tse2.mm.bing.net/th?id=OIP.6OMyubGuYeMOj6-kIzXfvQHaEg&pid=Api&P=0&h=180">
    <img src="https://tse2.mm.bing.net/th?id=OIP.KNsSoiAhZ307af_RUakRTQHaDt&pid=Api&P=0&h=180">

    <a href="https://www.youtube.com/">Youtube</a>
    <a href="https://web.snapchat.com/">snap</a>

    <!-- DIV ELEMENT -->
     <div>
<img src="https://tse2.mm.bing.net/th?id=OIP.6OMyubGuYeMOj6-kIzXfvQHaEg&pid=Api&P=0&h=180">
     </div>
        <img src="https://tse2.mm.bing.net/th?id=OIP.KNsSoiAhZ307af_RUakRTQHaDt&pid=Api&P=0&h=180">
        <div>
            <a href="https://www.youtube.com/">Youtube</a>
        </div>
        <a href="https://web.snapchat.com/">snap</a>

<!-- SPAN ELEMENT -->
 <span>
  <a href="https://www.youtube.com/">Youtube</a>
  <a href="https://web.snapchat.com/">snap</a>
 </span>
 <a href="https://in.search.yahoo.com/search?fr=mcafee&type=E210IN885G0&p=google">google</a>
  </body>
</html>

Comments

Popular posts from this blog

TextArea

unordered list with image link

Select input form