<!DOCTYPE html>

<html lang="en">
    <head>
        <title>EndofCodes Demo</title>
        <?php
            include 'helpers/html.php';
            includeStyle( "general" );
            includeStyle( "header" );
            includeStyle( "home" );
            includeStyle( "register" );
            includeStyle( "login" );
        ?>
        <meta 
            http-equiv="Content-type" 
            content="text/html; charset=utf-8" />
    </head>
    <body>
        <div id="header">
            <ul>
                <li><a href="index.php">Endofcodes</a></li>
                <li><a href="">Rules</a></li>
                <?php
                    if ( isset( $_SESSION[ 'user' ]['username' ] ) ) {
                        ?><li><a href="index.php?resource=user&amp;method=view&amp;username=<?php
                            echo htmlspecialchars( $_SESSION[ 'user' ][ 'username' ] );
                        ?>">Profile</a></li><?php
                    }
                ?>
                <li><a href="http://blog.endofcodes.com">Blog</a></li>
                <?php
                    if ( isset( $_SESSION[ 'user' ][ 'username' ] ) ) {
                        ?><li id="login" class="username"><?php
                            echo htmlspecialchars( $_SESSION[ 'user' ][ 'username' ] );
                        ?><select>
                            <option> </option>
                            <option value="logout">Logout</option>
                        </select></li><?php
                    }
                    else {
                        ?><li id="login"><a href="index.php?resource=session&amp;method=create">Login</a></li><?php
                    }
                ?>
            </ul>
        </div>

<!DOCTYPE html>

<html lang="en">
    <head>
        <title>EndofCodes Demo</title>
        <?php
            include 'helpers/html.php';
            includeStyle( "general" );
            includeStyle( "header" );
            includeStyle( "home" );
            includeStyle( "register" );
            includeStyle( "login" );
        ?>
        <meta charset="utf-8"> 
    </head>
    <body>
        <div id="header">
            <ul>
                <li><a href="index.php">Endofcodes</a></li>
                <li><a href="">Rules</a></li>
                <?php
                    if ( isset( $_SESSION[ 'user' ]['username' ] ) ) {
                        ?><li><a href="index.php?resource=user&amp;method=view&amp;username=<?php
                            echo htmlspecialchars( $_SESSION[ 'user' ][ 'username' ] );
                        ?>">Profile</a></li><?php
                    }
                ?>
                <li><a href="http://blog.endofcodes.com">Blog</a></li>
                <?php
                    if ( isset( $_SESSION[ 'user' ][ 'username' ] ) ) {
                        ?><li id="login" class="username"><?php
                            echo htmlspecialchars( $_SESSION[ 'user' ][ 'username' ] );
                        ?><select>
                            <option> </option>
                            <option value="logout">Logout</option>
                        </select></li><?php
                    }
                    else {
                        ?><li id="login"><a href="index.php?resource=session&amp;method=create">Login</a></li><?php
                    }
                ?>
            </ul>
        </div>

Use HTML5 utf8 meta tag
Use HTML5 utf8 meta tag
