What are TIL's?
TIL stands for Today I Learned... it's a place to share knowledge, tips and tricks with other members in your community. Snippets are up to 1500 characters.
<label for="myBrowser">Choose a browser from this list: </label> <input list="browsers" id="myBrowser" name="myBrowser" /> <datalist id="browsers"> <option value="Chrome"> <option value="Firefox"> <option value="Internet Explorer"> <option value="Opera"> <option value="Safari"> <option value="Microsoft Edge"> </datalist>
Checkout the Demo on CodePen.
When you are pairing sometimes only the host gets credited for praise/blame with pairing commits.
Today I learned that you can add a co-author:
git commit -m "Commit description > > Co-authored-by: John Smith <email@example.com>"
Just add 2 blank lines then the co-author message in.
It will be shown like this in GitHub:
TIL thanks to a tweet from Devon Govett...
If you add an ID of "test" to an element:
You can access it using the global variable
test from JS from the console. Could be
handy for debugging.
Also, incase you dind't know, any highlighted
selected in the "Elements" tab of developer
tools can be accessed directly in the console
🐛 Happy debugging!