How can i create an unordered list with 2 column? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How can i create an unordered list with 2 column?

I want to create an unordered list with two column with HTML. Please tell me the codes in HTML. Example- my code: <ul> <li>A</li> <li>B</li> <li>C</li> <li>D</li> <li>E</li> <li>F</li> </ul> Desired output: A B C D E F

1st Aug 2019, 6:00 AM
Saurabh Kumar
Saurabh Kumar - avatar
8 Answers
+ 4
<style> <!--for placing css code in html page--> </style > Else you can make a css file (External CSS) for that you may have to provide a link to the file in <head> <link rel="stylesheet" href="yourfilename.css" /> </head>
1st Aug 2019, 6:39 AM
$hardul B
$hardul B - avatar
+ 5
You're welcome Saurabh Kumar
1st Aug 2019, 6:43 AM
$hardul B
$hardul B - avatar
+ 4
There's another way to provide styling in the tag itself I won't suggest that as it's quite confusing sometimes //especially when you have to do lots of styling
1st Aug 2019, 6:40 AM
$hardul B
$hardul B - avatar
+ 3
I don't think it might be possible with pure html... 🤔You may use table instead
1st Aug 2019, 6:28 AM
$hardul B
$hardul B - avatar
+ 1
I have already watched this but it has to use both html+ css $hardul B
1st Aug 2019, 6:17 AM
Saurabh Kumar
Saurabh Kumar - avatar
+ 1
$hardul B so how can i add css code in html?
1st Aug 2019, 6:31 AM
Saurabh Kumar
Saurabh Kumar - avatar
+ 1
Thanks $hardul B
1st Aug 2019, 6:41 AM
Saurabh Kumar
Saurabh Kumar - avatar