Create GeeksforGeeks logo using HTML and CSS (original) (raw)

Last Updated : 21 May, 2024

**Creating a logo using HTML and CSS involves designing graphical elements with HTML tags, styling them using CSS properties such as colors, sizes, and positions, and possibly incorporating SVG graphics or images. This approach allows for custom, scalable, and interactive logo designs on web pages.

GeeksforGeeks is an online study platform and we will see how to design a GeeksforGeeks logo using HTML and CSS only.

Steps:

**Step 1: To create the GFG logo, use two inline divs for circles, wrapped in a flex-display wrapper div. Apply a 10px solid green border for the outline.

Step 2: Now create a triangle on both the circles using the pseudo-element:after” and absolute position property.** After applying the triangle we will get the shape like this.

Here the triangle’s background-colors are yellow, this is just for explanation. Change the background-color of triangles into white.

After applying the white background color into the triangles the result is :

**Step 3: Now using the pseudo-element ****:before** and position **absolute property, create a square. You can apply this rule to any of the circles. The resulting logo looks like this:

**Approach:

**Example: In this code we will see the implementation of geeksforgeeks logo using htnl and CSS .

HTML `