Open In App

How to create Non-Rectangular Header using HTML & CSS ?

In this article, we are going to create a Non-Rectangular-header using the basics of HTML and CSS.



Approach:

HTML Code:



Example: Here we are Implementing the above-explained method.




<!DOCTYPE html>
<html lang="en">
<head>
    <title>Document</title>
    <link rel="stylesheet" href="style.css">
</head>
 
<body>
    <header>
        <div class="main_box">
            <h1>Geeks For Geeks</h1>
            <p>A computer science portal for geeks</p>
        </div>
    </header>
</body>
</html>

Combining the above two sections (HTML and CSS) of codes and running it on the browser.

Output:

Article Tags :