Boilerplate

HTML Boilerplate

<!DOCTYPE html>
<html>
<head>
<title><!-- add title here --></title>
<meta name="description" content="<!-- add description here -->">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<styles><!-- add styles here --></styles>
</head>
<body>
    <header>
        <nav>
            <ul>
                <li></li>
                <li></li>
                <li></li>
            </ul>
        </nav>
    </header>

Creating Recursive Folders in Terminal

Occasionally I have to create complex folder structures, for example, creating a new project. With the -p flag it's pretty easy creating parent and child folders in terminal.

mkdir -p thisfolder/thatfolder/myfolder

The -p flag creates all the required parent folders. Nice!

If you want to get real fancy, create a genProject shell script and run it every time you want to start a new html based project. This one includes the HTML boilerplate and a simple css reset to boot.

Subscribe to RSS - Boilerplate