All little basic, but I've got to start somewhere right.
JS
A little hot take button where I target an element by its ID so does not work on a class.
<p id="hottake">Pinapple does not belongs on pizza</p>
<button onclick="document.getElementById('hottake').innerHTML = 'You\'re wrong!'">Change my Mind</button>
CSS
I'm probably ok with CSS and may well be ready already to jump into something more advanced.
All the same here is something a little more fun and interesting I learned today.
html {
background-image: linear-gradient(to top,
rgb(211, 94, 70, 0.2),
rgb(111, 222, 16, 0.8));
}
For the gradient of the linear gradient specified in the first parameter. This also accepts:
On bottom
On top
on left
on right
45deg ( or whatever degree you want so 184deg if I want it at that particular angle )
PHP
The ability to access information created by the web server.
It's important to note that not all web servers display all possible information that can be extracted.
print $_SERVER['REQUEST_URI'];
print $_SERVER['PATH_INFO'];
print $_SERVER['DOCUMENT_ROOT'];
print $_SERVER['SERVER_PORT'];
I can access my configuration settings too.
//incorrect usage
echo phpinfo(INFO_ENVIRONMENT);
Not quite, I misunderstood the term customised as used in the PHP manual.
If I want environment values I must use instead