Class #2 Feb 26 2021 CSS is great

Ramon Cruz-Hinojosa
1 min readFeb 27, 2021

Today in class I learned a ton of great keyboard shortcuts to use while coding. The most useful one for me right now is ctrl+?. Being able to highlight code and comment out a large chunk without having to ever use the mouse is quick and handy. Also hitting the up arrow when using the terminal to scroll through previously entered commands is a life saver.

Two pseudo selectors I like are :hover and :visited. Hover is how you get elements on the page to react to the mouse hovering over them. I’ve used it to make links change color when moused over. Visited will change a link in a specified way after the link was clicked. I’ve used this to make links a different color so the user knows they’ve already clicked on that link before.

One of the things I currently struggle with is keeping my code clean. I’ve heard of the DRY method which is just making sure to not repeat any code to make things more readable for everyone. A friend recommended an extension for the code editor I use that cleans your code up after every save. It’s very helpful when learning because I can type a large chunk of code while trying to keep things properly spaced and hit save to see if I messed up after. I have seen others code in a slightly different way to make things clean but for now I’ll focus on making sure my code is at least readable.

--

--