|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. 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
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>
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?
|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
Nairaland - Copyright © 2005 - 2020 Oluwaseun Osewa. All rights reserved. See How To Advertise. 23