Published: 27 Apr 2020 › Updated: 27 Apr 2020
Creating a header in html
Here you would be learning how to create and style a header in HTML. Its Simple
first
- Write a Html code with a div tag and optionally give it any class name of your choice, I gave mine the name header.
Remember this is what you're going to be referencing in the CSS page
<div class="header">
<h1>Header</h1>
<p>My header</p>
</div>
Header
My header
- I gave my class name header( not compulsory) use another name
- On your CSS page use these format to arrange, color and size it to your taste
.header {
padding: 60px;
text-align: center;
background: #1abc9c;
color: white;
font-size: 30px;
}
Stay closeby, I would be dropping other brief tutorials .
Leave Creating a header in html to:
Read more #hive-103590 posts
Best Posts From suleimanz
We have not curated any of suleimanz's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From suleimanz
- Dealing with Arrays in javascript
- Creating a Simple table with HTML only
- Creating and styling a button
- Creating a header in html
- What to know before my first programming Tutorial
- My first post on Hive Blog
- Necessary change needed in Essential launcher
- Bug Detected in SocialChat app login page
- Bug detected on Kolab Notes
- PocketMaps app Automatically crashes while opening it