Skip to content

Instantly share code, notes, and snippets.

@jubalm
Last active August 29, 2015 14:26
Show Gist options
  • Select an option

  • Save jubalm/b537ab6b726be1d6d4cb to your computer and use it in GitHub Desktop.

Select an option

Save jubalm/b537ab6b726be1d6d4cb to your computer and use it in GitHub Desktop.

Revisions

  1. jubalm revised this gist Aug 4, 2015. No changes.
  2. jubalm revised this gist Aug 4, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion guide.html-rules.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ## HTML Authoring
    ## HTML Authoring Conventions

    - HTML should present itself without the stylesheet
    - Check for unclosed tags
  3. jubalm revised this gist Aug 4, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion guide.html-rules.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ## Writing Better HTML
    ## HTML Authoring

    - HTML should present itself without the stylesheet
    - Check for unclosed tags
  4. jubalm created this gist Aug 4, 2015.
    16 changes: 16 additions & 0 deletions guide.html-rules.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    ## Writing Better HTML

    - HTML should present itself without the stylesheet
    - Check for unclosed tags
    - Check for Doctype declaration
    - Do not use inline-styles
    - Document should have title and meta tags
    - Do not use headings for font size
    - Use line breaks to separate text, not sections
    - Always put proper alt tags to images
    - Specify image width and height
    - If it's not going to be displayed, it should not be in the markup
    - Don't use the `<center>` tag to align text
    - Use lowercase letters for tag name
    - Make sure IDs are only used once
    - Validate