Welcome, Guest: Join Nairaland / LOGIN! / Trending / Recent / New
Stats: 2,549,077 members, 5,872,453 topics. Date: Wednesday, 23 September 2020 at 01:53 AM

How To Create your buhari HTML tag in 2 mins. - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / How To Create your buhari HTML tag in 2 mins. (213 Views)

The Most Important Html Tag / Wapkiz Voting Tag Code / Biko How Do I Tag A Friend On Nairaland?? Pls Help A Friend!! (2) (3) (4)

(1) (Reply)

How To Create your buhari HTML tag in 2 mins. by ColeDrain(m): 5:52pm On Jun 18
So I wanna create a HTML tag named buhari with my own preferred properties.

Just like we have h1, h2, p tags.
Something like this <buhari></buhari>

To have an idea of how interesting this is. The h1 tag for example comes with a bolder font weight and 30px font size, anywhere the browser sees h1 it applies those properties, the same with our buhari tag.


1. Open your stylesheet(CSS file)
and create a selector using buhari, then add your preferred properties
N:B You can use internal CSS

buhari{
color: blue;
font-size: 30px;
text-decoration: underline;
}


So any text within the buhari tag will have a blue text color, a font size of 30px and will be underlined.

2. Go to your HTML file, link it with your CSS file.
Then use the buhari tag.
<buhari>I work like any other HTML tag.</buhari>
<buhari>This is a buhari tag.</buhari>



Voila! It should give you the last image below. Simple as abc.

N:B This is not advised as it is bad practice. Just for fun tho...
I am crazy right? grin

1 Like

(1) (Reply)

Learn Web Design From Zero To Mastery For 3 Weeks And Get Paid Internship / Checkout My New Python Django Website / Query Selection

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2020 Oluwaseun Osewa. All rights reserved. See How To Advertise. 23
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.