This media is not supported in your browser
VIEW IN TELEGRAM
Useful CSS Tips
Outline
If you encounter issues with the positioning or visibility of elements on a page, this rule helps you instantly see all the blocks, their borders, and structure. It’s especially useful when working with complex layouts where elements might overlap or disappear.
#css #tips #outline
Outline
If you encounter issues with the positioning or visibility of elements on a page, this rule helps you instantly see all the blocks, their borders, and structure. It’s especially useful when working with complex layouts where elements might overlap or disappear.
* {
outline: 4px solid green !important;
}#css #tips #outline
🔥2❤1👍1
Which CSS property is used to remove the underlines from links?
Anonymous Poll
71%
text-decoration
8%
line-decoration
8%
underline
13%
remove-underline
JavaScript Task
Check that this string consists of numbers only.
Difficulty: Easy😁
Check that this string consists of numbers only.
Difficulty: Easy😁
string = "1234567890"
How can you access an element with a specific id in HTML using JavaScript?
Anonymous Quiz
16%
document.querySelector(".example")
6%
document.getElementsByClassName("example")
3%
document.getElementsByTagName("example")
74%
document.getElementById("example")
Find errors in the code.
Given an array of numbers. Remove numbers from it that have two or more zeros.
Difficulty: Hard😤
Given an array of numbers. Remove numbers from it that have two or more zeros.
Difficulty: Hard😤
let numbers = [102, 304, 500, 1002, 20, 404, 80, 7];
function hasTwoOrMoreZeros(num) {
return (num.toString().match(/0/g) && []).length > 2;
}
let filteredNumbers = numbers.filter(num => !hasTwoOrMoreZeros(num));
console.log(filteredNumbers);
Which statement is used to execute a function in JavaScript?
Anonymous Quiz
13%
call
19%
run
61%
function
6%
execute
Find error in the code.
Difficulty: Easy😁
Difficulty: Easy😁
function addNumbers(a, b) {
return a + b;
}
let result = addNumbers(5, '10');
console.log('Результат: ' + result);What is the correct HTML for referring to an external style sheet?
Anonymous Quiz
13%
<style src="styles.css"></style>
68%
<link rel="stylesheet" href="styles.css">
8%
<stylesheet href="styles.css"></stylesheet>
13%
<link href="styles.css" type="text/css">
JavaScript Task
Given an array of numbers. Increase each number in the array by 10 percent.
Difficulty: Easy😁
Given an array of numbers. Increase each number in the array by 10 percent.
Difficulty: Easy😁
let numbers = [100, 200, 300, 400, 500];
What does the "DOM" stand for in JavaScript?
Anonymous Quiz
74%
Document Object Model
8%
Data Object Model
16%
Dynamic Object Model
3%
Document Order Model
❤1
Which of the following is the correct way to center a block element horizontally using margins?
Anonymous Quiz
11%
margin: 0;
51%
margin: 0 auto;
23%
margin: 0 50%;
14%
margin: auto 0;
Which HTML5 element represents a self-contained piece of content that could be distributed independently?
Anonymous Quiz
26%
<div>
21%
<section>
18%
<container>
35%
<article>
What will this code output? Spot the bug.
Difficulty: Hard😤
Difficulty: Hard😤
for (var i = 0; i < 5; i++) {
setTimeout(function() {
console.log(i);
}, 1000);
}Which HTML tag is used to define an unordered list?
Anonymous Quiz
74%
<ul>
9%
<li>
5%
<ol>
12%
<dl>
What does the flex-shrink property do in CSS Flexbox?
Anonymous Quiz
22%
It controls the growth of a flex item when there's extra space.
52%
It controls the shrinkage of a flex item when there's not enough space.
9%
It sets the width of a flex item.
17%
It aligns items in a flex container.
What is true about a variable declared with "const" in JavaScript?
Anonymous Quiz
41%
The variable must be initialized at the time of declaration.
41%
The value of the variable can never change.
14%
The reference of an object or array declared with const can change.
5%
const variables are function-scoped.
How can you select the element with the id 'example' in CSS?
Anonymous Quiz
26%
.example
8%
example
62%
5%
*example