+ 7

how do you get rid of dots in unordered list if I only want to use html? thanks

getting rid of dots in <ul> in html

8th Jul 2018, 8:41 PM
Andrea
Andrea - avatar
13 ответов
+ 2
be sure to style using a css declaration vs an html style attribute whenever possible. that separation of concerns allows you to apply the style to more than one html element and also more easily maintain the styles
9th Jul 2018, 10:46 AM
Lisa F
Lisa F - avatar
+ 15
<li style='list-style-type:none'></li>
8th Jul 2018, 8:59 PM
Michael55555
Michael55555 - avatar
+ 2
use <ol> (ordered list)you will get rid of it
9th Jul 2018, 10:01 PM
vansh bhardwaj
vansh bhardwaj - avatar
+ 2
Set list-style-type and list-style-display to none. This will not show any form of bullets
10th Jul 2018, 8:16 AM
Benjamin Bekoe Ohene
Benjamin Bekoe Ohene - avatar
+ 2
KrOW right. you cannot do it correctly without css. it really frustrates me to see so many code examples use the HTML style attribute when that limits the style to one html element and makes that style essentially impossible to maintain in the real world given it is mashed up with the HTML the whole point of css is to style and position content in a way that is reusable and maintainable. that's important!! so....let's dump bad habits including the html style attribute. use css for style and layout!!!
11th Jul 2018, 1:45 AM
Lisa F
Lisa F - avatar
+ 2
great work Jay Matthews!! professional separation of concerns !! if you want to reduce your html a little bit I think you could put the id attribute in the opening ul tag vs adding div elements.
14th Jul 2018, 2:16 PM
Lisa F
Lisa F - avatar
+ 2
KrOW yes technically you're still using css properties and declarations when using inline CSS!! yes that is true!! even though it is implemented through the html style attribute. good point! but the css is still "in" the html file. Inline css is just a very, very bad habit in 99% of the cases though....that's all I'm trying to say. it's similar to the problems when you use html onclick attribute to implement javascript vs pure external javascript ...but I see that a lot too. makes me wonder how newbies are ever going to learn best practices? I guess that just comes later....but it wouldn't need to if we have these discussions. thanks
14th Jul 2018, 2:59 PM
Lisa F
Lisa F - avatar
+ 1
Jay Matthews using style attribute == using CSS
11th Jul 2018, 7:27 AM
KrOW
KrOW - avatar
+ 1
Jay Matthews don't do it without CSS. that's the whole point of CSS. When you use the style attribute in your HTML you're styling one element at a time. Very unproductive, very verbose, not reusable, and hard to maintain
13th Jul 2018, 5:28 PM
Lisa F
Lisa F - avatar
+ 1
KrOW the style attribute is using html. not CSS. you're really shortchanging yourself and making your web pages and web site much more difficult to maintain if you use the html style attribute. see csszengarden.com to experience the power of external style sheets....
13th Jul 2018, 6:12 PM
Lisa F
Lisa F - avatar
+ 1
Lisa F Good habits can be only suggested BUT for learn they, you have to going in context where you understand really because they are good habits... Next the question has in it " only HTML" and i pointed that its not possible with html and used inline css because i dont know how he knowed selector in CSS (i posted the easy way not the best because because i havent some info about knowldgments of Andrea)
14th Jul 2018, 3:07 PM
KrOW
KrOW - avatar
0
You cannot do it without css
8th Jul 2018, 9:11 PM
KrOW
KrOW - avatar
0
Lisa F https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style P.S. Though im a beginner, i know CSS and pro/cons of using internal/external/inline form but thank you
13th Jul 2018, 7:44 PM
KrOW
KrOW - avatar