1.
Ce inseamna CSS ?
Correct Answer
A. Cascading Style Sheets
Explanation
CSS stands for Cascading Style Sheets. It is a style sheet language used for describing the look and formatting of a document written in HTML. It is used to separate the content of a webpage from its presentation, allowing web designers to control the layout, colors, fonts, and other visual aspects of a website. CSS provides a more efficient and flexible way to style web pages compared to inline styling or using HTML attributes.
2.
Pe cate niveluri poate fi utilizat CSS in paginile WEB ?
Correct Answer
B. 3
Explanation
CSS can be used on multiple levels in web pages. The correct answer is 3 because CSS can be applied at three different levels: inline, internal, and external. Inline CSS is applied directly to individual HTML elements using the "style" attribute. Internal CSS is defined within the "head" section of an HTML document using the "style" tag. External CSS is defined in a separate CSS file and linked to the HTML document using the "link" tag. These three levels provide flexibility and allow for efficient management of styles across multiple pages.
3.
CSS poate fi folosit fara HTML
Correct Answer
B. Fals
Explanation
CSS (Cascading Style Sheets) is a styling language used to describe the look and formatting of a document written in HTML. It cannot be used without HTML because CSS is applied to HTML elements to define their appearance. Without HTML, there would be no structure or content for CSS to style. Therefore, the statement "CSS poate fi folosit fara HTML" (CSS can be used without HTML) is false.
4.
Utilizarea CSS inline se face:
Correct Answer
C. Cu ajutorul atributului STYLE, atasat oricarui tag
Explanation
CSS inline se face cu ajutorul atributului STYLE, care poate fi atașat oricărui tag HTML. Acest atribut permite specificarea stilurilor CSS direct în interiorul tagului respectiv, în loc să fie definite într-un fișier separat sau în zona HEAD a documentului HTML. Astfel, stilurile CSS inline au prioritate mai mare decât cele definite într-un fișier extern sau în zona HEAD, ceea ce le permite să suprascrie alte stiluri.
5.
Unde, intr-un document HTML, se plaseaza codul necesar utilizarii CSS intern (embeded)?
Correct Answer
D. In zona HEAD
Explanation
The correct answer is "In zona HEAD". In an HTML document, the CSS code necessary for internal use is placed within the HEAD section. This is where meta information and other document-related elements are typically included. By placing the CSS code in the HEAD section, it ensures that the styles are loaded and applied before the content in the BODY section is rendered, allowing for consistent styling throughout the document.
6.
Care sintaxa CSS este corecta ?
Correct Answer
D. Body {color: black}
Explanation
The correct answer is "body {color: black}". This is the correct syntax for applying the CSS property "color" with the value "black" to the "body" element. The selector "body" targets the body element, and the declaration "color: black" sets the text color to black.
7.
Cum adaugati o culoare de fundal elementelor h1 ?
Correct Answer
C. H1 {background-color:#FFFFFF}
Explanation
The correct answer is "h1 {background-color:#FFFFFF}". This CSS rule sets the background color of the h1 elements to white (#FFFFFF). The other options, "all.h1" and "h1.all", are not valid CSS selectors and will not apply the background color to the h1 elements.
8.
Cum stabiliti culoarea rosie pentru un element, in CSS ?
Correct Answer
B. Color: #ff0000
Explanation
The correct answer is "color: #ff0000". In CSS, the "color" property is used to set the color of the text content within an element. The value "#ff0000" represents the color red in hexadecimal format. Therefore, by using the "color" property and specifying the value "#ff0000", the text within the element will be displayed in red.
9.
Care sintaxa va fi utilizata, daca se doreste schimbarea fontului unui element ?
Correct Answer
B. Font-family:
Explanation
The correct answer is "font-family". This property is used to specify the font or list of fonts for an element. By using the "font-family" property, we can change the font of an element to a desired font.