Home »
MCQs »
SASS MCQs
Which is the correct syntax to define a mixin?
9. Which is the correct syntax to define a mixin?
-
@mixin name {
property: value;
property: value;
...
}
-
@import mixin name {
property: value;
property: value;
...
}
-
@mixin name .sass{
property: value;
property: value;
...
}
-
@mixin name {
@import _filename;
}
Answer: A)
@mixin name {
property: value;
property: value;
...
}
Explanation:
The correct syntax to define a mixin is:
@mixin name {
property: value;
property: value;
...
}