This page will be updated as the semester progresses with new links and resources.
Text Editors ⤒
Text editors are very much a matter of taste.
That's fine, because there are numerous text editors suitable for front-end development, both free and paid. A good text editor will have:
- Syntax highlighting (color coding).
- Help you with tabbing and closing tags.
- Code folding, to collapse and expand chunks of code.
- Edit multiple lines at once.
- Popup dictionaries of tag names, attributes and CSS rules.
- Many can handle FTP as well, so you can sync and upload your files to your server from right inside the program.
Many students (and web developers) use Brackets or Sublime, which are feature-full, free, and available on all platforms. Paid programs all have a free trial period though, so try a few. Spend a week or so in each as the semester progresses. I personally use Coda, BBEdit, or vim depending on the task.
- TextWrangler - mac only - Free. Excellent general purpose text editor. Has all the features you need, but not the bells and whistles (autocomplete and tag closing). Very powerful find and replace features.
- Brackets - mac only - New. Adobe's free and open source player. Not bad, but I've found it still has some quirks.
- Sublime Text - win/mac - Highly functional. A favorite for many.
- Notepad++ - win only - Free. Very good windows-only option.
- UltraEdit - win/mac - Another good option particularly for windows.
- Coda - mac only - Also very good. Geared specifically toward web developers.
- BBEdit - mac only - TextWrangler's big brother. Adds a few helpful features, most notably autocomplete dictionaries.
- Atom - win/mac - Might be worth a try if you're on windows.
Finally, a note about Adobe Dreamweaver, which is installed on all of the lab computers as part of the Adobe suite. Dreamweaver is much better in recent versions, but it has several features that can become a crutch while learning, and actually get in our way. Avoid using Dreamweaver for this class.
Helpful Links ⤒
- Can I Use! - Check the current browser support for any CSS property or HTML feature.
- HTML Validator - Check your HTML syntax using this W3C tool.
- CSS Validator - Check your CSS syntax using this W3C tool.
- W3 Counter - Global Browser and Platform Market Share
- Chrome CSS Usage - CSS Feature Usage based on Chrome's anonymous usage statistics
Browser Developer Tools
One of the greatest things about the web is that you can freely poke around at the code for any web page.
All major browsers nowadays have a sophisticated collection of built in developer tools that are extremely useful for web development. When activated, they usually open as a pane within your browser window, but can easily pop out into their own window as well.
They make all of a web page's source code easily viewable, and you can even edit and preview code right in the browser.
Tip: Don't get too far ahead of yourself editing code in the browser. Get in the habit of switching to your text editor and updating your code after every couple of changes. Once you refresh the page in the browser, everything goes back to its original state!
Develop > Show Web Inspector
HTML Entities ⤒
How do I put quotes between quotes without closing my quotes?!
HTML code obviously uses a handful of characters that have special meanings.
< > for tags,
"" for attributes, etc.
But what happens when you want to literally display those characters on your web page, when they would otherwise be interpreted as code? And what about symbols and characters that we don't have keyboard keys for, like accented letters, special currencies, or greek letters?
Every unicode character has a code number, and many of them have an abbreviated name. These are called HTML Entities, or character references. Instead of typing the character that you want directly in your code, you use the named or numbered reference to that symbol.
& tells the browser you're entering a character reference, and the reference terminated with a semicolon
For example, this doesn't display the way you probably want in a browser:
<p>Only one of these spaces will show up.</p>
But this does.
<p>But these spaces will.</p>
Here are the symbols you may need to "escape" when you want them to display rather than be interpreted as code. I threw in a few other common ones as well.
Oftentimes it's useful to "take a picture" of exactly what's displayed on your screen. Fortunately this is easy to do on both Macs and PCs.
Using a program: Macs have an app called Grab.app in the Applications > Utilities folder (spotlight should also find it quickly). Most PCs running Windows Vista or newer have a tool called the Snipping Tool. In Windows 10, open the start menu and search.
Faster than using the programs though, you can just use keyboard shortcuts!
On a mac:
cmd + shift + 3
cmd + shift + 4
cmd + shift + 4, spacebar
Screenshots are saved to the desktop.
On a PC:
win + PrtScn
alt + PrtScn
The default file type on both systems is png.