First, we’re going to write html code and then styling so we use some tags in body tags like div, h1, ul. li, a, h1 and don’t forget to link css file in html boilerplate after it we get a poor design but that’s a mandatory start I hope that’s clear… let’s start the styling…
Output Html Code header
this is all css for creating the header project and designing Header.
Let’s start our styling doing starter styling by html reset or family-font then we give a color or text-decoration — None in <a> tag now we style our header by giving padding, border-bottom, flex, and space-between change the font size of header links or margin and inline-block if you want to customize more so try and our goal is to create a good looking header in just 60 lines of code or also you need to make responsive.
Output CSS Code header
This is the final output of our header using html css. In this article, we create this amazing header project and you absolutely love its design in less code.
How to use google font?
we has to many pre-installed fonts but they are not sufficient so we use google font for great look… and we use open sans in this project but we use open sans condensed for learning about google font.
Step 1 -> Search Google Font on Search Engine like Google, Bing, Safari, etc.
Step 2 -> Click on the first link Google Fonts
Step 3 -> When Google Font Site opens then search font you want to work with in above search box.
Step 4 -> Then click on font and a side bar appears gives option to add selected font in your site.
Options -> 1. Link the given cdn link to html file in head tag
2. Import using url to stylesheet than code in font family property
Step 5 -> Select the class or id you want to add font style than save code.
Output -> Fonts are changed
Hope you like this post and enjoy it. If we did any mistake please comment it down so this help full for also our users. Thank you for reading.
Written by Tushar Sharma