+ 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
13 Réponses
+ 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
+ 15
<li style='list-style-type:none'></li>
+ 2
use <ol> (ordered list)you will get rid of it
+ 2
Set list-style-type and list-style-display to none. This will not show any form of bullets
+ 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!!!
+ 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.
+ 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
+ 1
Jay Matthews using style attribute == using CSS
+ 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
+ 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....
+ 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)
0
You cannot do it without css
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