I understand that there are inline css, internal css, and external css in how to apply css. But I have a question. I heard that in the 1990s html was created and you used inline style on html to give the site style. And I know that css was born that can separate styles because I thought it was not good to write style code together in the html file. So are css and inline styles different? I know that there is an inline method within the way that css can be applied, but isn't the inline style a method that already existed before css was born? I'm panicking.
我知道有内联的CSS,内部的,和外部的,在如何应用的CSS。但我有一个问题。我听说在20世纪90年代创建了html,您在html上使用了内联样式来赋予站点样式。我知道css是可以分离样式的,因为我认为在html文件中一起编写样式代码是不好的。那么,css和内联风格有区别吗?我知道在可以应用CSS的方式中有内联方法,但是内联样式不是在CSS诞生之前就已经存在的方法吗?我很惊慌。
Can inline style be said to be a separate styling method from css?
Or has the inline style already existed before the css, but has it been reborn as a new inline css method that applies the css as an inline style since the birth of the css?
内联样式可以说是一种独立于CSS的样式方法吗?或者,内联样式在CSS之前就已经存在了,但它是不是重生为一种新的内联CSS方法,自CSS诞生以来,该方法就将CSS作为内联样式应用?
更多回答
优秀答案推荐
Yes "inline style" (at least in the manner you are using it) is different from "inline css".
是的,“inline style”(至少在你使用它的方式上)不同于“inline css”。
When we talk of inline css, we mean styles applied via the "style" attribute.
当我们谈论内联CSS时,我们指的是通过“style”属性应用的样式。
Elements in early HTML did not have a style attribute. Styling was applied via a collection of dedicated attributes, such as "align", "bgcolor" & "topmargin", as well as dedicated styling elements like "center", "font" & "big".
早期的HTML中的元素没有样式属性。样式是通过一组专用属性来应用的,比如“Align”、“bgcolor”和“topspace”,以及像“Center”、“Font”和“BIG”这样的专用样式元素。
更多回答
我是一名优秀的程序员,十分优秀!