DEV Community

hatem ahmed
hatem ahmed

Posted on

Html semantic elements

<h4>I am the heading for this section</h4>
<p>I am the content for this section</p>
Enter fullscreen mode Exit fullscreen mode

used as to show block level element that can stand alone while used to show inline element

I am an inline element engineer

block element is one unit and new item after it make a new line and used to separate different section of html page while inline element does not make a new line so we used div and span style web page



            <ul id="nav-items">
                <li>
                    <a href="">Home</a>
                </li>
                <li>
                    <a href="">contacts</a>
                </li>
                 <li>
                    <a href="">about</a>
                </li>
            </ul>


<pre class="highlight plaintext"><code>

</code></pre></span>
Enter fullscreen mode Exit fullscreen mode

Top comments (0)