[How] Can I add a border to a letter in html? | SoloLearn: Learn to code for FREE!

+5

[How] Can I add a border to a letter in html?

'https://code.sololearn.com/Wga6g941xq9X/?ref=app. This is my code. See it. I want to give color of indian flag to india written in the code. Bt after that I can't see "i" in India bcos of white color.' 'Yes but i want to add a border to any letter like this "🅰️" ' (we're assuming no CSS at this point) (we're discovering that maybe Ayush meant background color instead of border)

10/13/2020 10:10:07 AM

Ayush Singh

60 Answers

New Answer

+12

Ayush Singh see this code. I hope you can find your answer https://code.sololearn.com/W0D9L2zVdCih/?ref=app

+8

Hi Friend you can do that : <span>d</span> And add this to the CSS code : Span{background-color:black; border-radius:100%;} :D

+3

Yes😅

+3

You can by using css.

+2

It's ok

+2

Yes but i want to add a border to any letter like this "🅰️"

+2

+2

You are welcome Ayush Singh

+2

Through CSS you can apply border

+2

Ayush Singh No you can't set border to a letter in html and css. You should use Svg or Javascript

+2

And I was thinking a border will be rather something like this: https://code.sololearn.com/W52FfoBOdXGG/?ref=app

+1

What is boeder Ayush Singh ? you mean *Border*.....!

+1

Can you briefly define your question?😅 Because I don't know, why you want to add a border to a letter.

+1

https://code.sololearn.com/Wga6g941xq9X/?ref=app. This is my code. See it. I want to give color of indian flag to india written in the code. Bt after that I can't see "i" in India bcos of white color.

+1

Well Ayush Singh you can change your background colour to other colours.Not white <body bgcolor = "some colour">

+1

It's a good Idea. Bt my name is Ayush not anusha😅

+1

+1

Sorry Ayush Singh .I made mistake while mentioning name...😅

+1

Bt if I want to add a border to any letter then??

+1

You are welcome Ayush Singh 🙌👍