how can the backgound color of an elements be changed?

1 0
2 years ago 719 views
To set the background color in HTML, use the style attribute. The style attribute specifies an inline style for an element. The attribute is used with the HTML <body> tag, with the CSS property background-color. HTML5 do not support the <body> tag bgcolor attribute, so the CSS style is used to add background color.

what is the float property of css

1 0
2 years ago 635 views
The float CSS property places an element on the left or right side of its container, allowing text and inline elements to wrap around it. The element is removed from the normal flow of the page, though still remaining a part of the flow (in contrast to absolute positioning)

what property is used for changing the font face?

1 0
2 years ago 879 views
We can use the font-family property for achieving this. The font-family property is used for specifying what font needs to be applied on the targetted DOM element. It can hold several font names as part of “fallback” mechanism in case the browser does not support the fonts. For example, we can use:

what is a css preprocessor? what are sass, less, and stylus? why do people use them?

1 0
2 years ago 946 views
A CSS Preprocessor is a tool used to extend the basic functionality of default vanilla CSS through its own scripting language. It helps us to use complex logical syntax like – variables, functions, mixins, code nesting, and inheritance to name a few, supercharging your vanilla CSS. SASS: Sass is the acronym for “Syntactically Awesome Style Sheets”. SASS can be written in two different syntaxes using SASS or SCSS SASS vs SCSS SASS is based on indentation and SCSS(Sassy CSS) is not. SASS uses .sass extension while SCSS uses .scss extension. SASS doesn’t use curly brackets or semicolons. SCSS uses it, just like the CSS.

what is html id attribute?

1 0
3 years ago 725 views
The id attribute is used to specify the unique ID for an element of the HTML document. It allocates the unique identifier which is used by the CSS and the JavaScript for performing certain tasks.