<!DOCTYPE html>
<
html
lang
=
"en"
>
<
head
>
<
meta
charset
=
"UTF-8"
>
<
meta
name
=
"viewport"
content
=
"width=device-width, initial-scale=1.0"
>
<
title
>onscroll attribute</
title
>
<
style
>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
section {
width: 80%;
margin: auto;
padding: 20px;
}
#content {
border: 1px solid #ccc;
padding: 20px;
height: 300px;
overflow: scroll;
transition: color 0.3s ease;
}
</
style
>
</
head
>
<
body
>
<
section
>
<
div
id
=
"content"
onscroll
=
"changeFontColor()"
>
<
p
><
strong
>
GeeksforGeeks is an portal for computer
geeks where you will find a bunch of articles, quizzes on
programming and algorithm. As top product based
companies want to hire an employee with great
programming skills and it is the perfect place
to begin and master them. You will find problems as
categorized in school, easy, medium, hard,advanced.
There is a lot of variety of problems there and
you will find a multiple solution for one problem
which improves your perception about how you see
the problem, and how you should approach the problem.
If you are beginner you can start with basic
or easy category and once you find comfortable
yourself you can move to higher level.
If you want to learn a algorithm you should have
a patience because it requires time, discipline.
You have to move step by step. Make a proper goal
and give yourself enough time atleast 5–6 months
to learn. Try to solve atleast one question per day.
Learn with mistakes and improve yourself.
Note:- Before going to give coding test for any
companies make sure you should do “must do coding
question on geeks for geeks”.</
strong
></
p
>
</
div
>
</
section
>
</
body
>
</
html
>