background preloader

Maximdocs

Facebook Twitter

13 Ways to Browser Test and Validate Your Work - Nettuts+ Every day, when reviewing templates on ThemeForest, I test the submissions for validation and browser compatibility - not to mention my own work as well. Over time, I've scrounged the web for the best validation and browser compatibility testing tools around. Here's my favorites. HTML and CSS Validation First let's take a look at some methods to check HTML and CSS validation. I should mention that I work on a Mac so these are going to be more Mac biased. Not to worry though, there are many platform independent solutions. Along with validating your files, you should format your markup nicely as well. 1.

Probably most commonly known is the online W3C Validation Service. 2. W3C also has a CSS validation service that you're most likely familiar with. 3. The Web Developer toolbar extension for Firefox is very popular and has tons of great features along with some great tools to check HTML and CSS validation. 4. 5. Most development editors offer some sort of validation tool. 6. 7. 8. 9 & 10. 250+ Resources to Help You Become a CSS Expert | Webdesigner Dep. CSS is the second-most-important thing you can master when it comes to web design, right after HTML.

And the capabilities of CSS can be staggering (especially with the new CSS3 standard already making appearances in some browsers). If you can imagine it, it’s likely someone has already figured out how to do it with CSS. Below are more than 250 resources for mastering CSS. While they’re not likely to make it any less staggering, they can help you master the techniques that will help set your designs apart from the crowd. CSS3 Resources 30 Essential CSS3 Resources – A roundup of 30 great tutorials, tips, and other resources for what’s new in CSS3. 20 Useful Resources for Learning About CSS3 – A great collection of CSS3 tutorials.

CSS3 Unleashed—Tips, Tricks and Techniques – A huge roundup of CSS3 resources broken down by category. 20 Very Useful CSS3 Tutorials – Another rundown of good tutorials for learning the new capabilities of CSS3. References and Cheatsheets Tutorials and Techniques. HTML Coding Standards | Labs | Pete Goodman - Web Developer. Saturday 13th September 2008, 11:41 PLEASE NOTE: These guidelines are several years old. I will get round to updating them one day. Maybe. This is not a guide to writing semantically correct mark-up, nor does this guide document all of my HTML conventions, as these are evident in my latest projects1. This is simply a guide for how I attempt to structure the HTML code of my projects. Doctype & Content Type Unless specifically requested, I always set the doctype of every site to XHTML 1.0 Strict.

I set the content type to text/html, with the character set of ISO-8859-1 or UTF-8 if the site is likely to need localising into languages that contain foreign characters. HTML Tags I always place a standard set of tags in the head of any HTML document. I always import CSS files in the head of the document through <style> tags. The meta description and keywords should be present.

<! I always place an id attribute on every body tag to uniquely identify it within the site. Standard Structure title attribute. Swinburne HTML Coding Standards - SwinBrain. From SwinBrain Minimum requirements for file header comments and meta information: <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " xmlns=" Description: Sample HTML Document --><!

-- Author: Chris Pilgrim --><! -- Date: Aug 5 2008 --><! -- Validated: ok Sep 8 2008 --><head><title>Page Title</title><meta http-equiv="content-type" content="text/html; charset=utf-8" /><meta name="author" content="Chris Pilgrim" /><meta name="description" content="Some description of page content" /><meta name="keywords" content="keyword1, keyword2, keyword3, etc" /></head> The DOCTYPE should declare the appropriate version of the HTML used in the document.

The DOCTYPE should declare the appropriate version of the HTML used in the document. Examples of valid doctypes are: See full list of DOCTYPES at: Meta Elements Don't abuse meta tags. Comments Neat and consistent Case. Improving Code Readability With CSS Styleguides | CSS | Smashing. Advertisement Once your latest project is finished, you are very likely to forget the structure of the project’s layout, with all its numerous classes, color schemes and type setting. To understand your code years after you’ve written it you need to make use of sensible code structuring.

The latter can dramatically reduce complexity, improve code management and consequently simplify maintainability. However, how can you achieve sensible structuring? Indeed, developers came up with quite creative ways to use comments and text formatting to improve the maintainability of CSS-code. This article presents 5 coding techniques which can dramatically improve management and simplify maintainability of your code.

You may also be interested in the articles 1. First consider the structure of your layout and identify the most important modules in your CSS-code. However, this approach might not be enough for large projects where a single module is too big. 2. …or like this: 3. 4. 5. Conclusion. Create Maintainable Code with a CSS Styleguide | Loud Dog. By Matt DeClaire on Mar 20, 2008 in Web Engineering Back when I was in school a teacher instilled in me a strict eye for code style. We submitted our assignments electronically to a testing script on his account, but before an assignment began running the rigorous gamut of test cases, it had to first pass a style check.

The style check was quite a trial in and of itself. It usually took several iterations of submissions just to get the code’s style in order. Every student came out of that class with pristine code “handwriting.” The advantage to clean code style is readability. The specifics of the rules used in a style guide are not as important as consistency. Variable Names Variables should be camelcase, with a lowercase first letter — examples: articleDate, userDetails, spoonThe name should refect the semantics of the element, rather than the style — examples: tinyFont (bad), imageCaption (good) CSS Rules Organization reset Use a variation (if not exact) of Eric Meyer’s CSS Reset shell Hey!

7 Principles Of Clean And Optimized CSS Code | CSS | Smashing Ma. Advertisement Some of you may remember the days when 30KB was the recommended maximum size of a web page, a value which included HTML, CSS, JavaScript, Flash, and images. I find with every new project with even the slightest bit of complexity, it’s not long before that 30 KB ideal is well out of my reach. With the popularity of CSS layouts and JavaScript-enriched web page experiences, it’s not uncommon, particularly for large sites, for the CSS files alone to jump well beyond that 30KB ceiling.

But there are some principles to consider during and after you write your CSS to help keep it tight and optimized. Optimization isn’t just minimizing file size — it’s also about being organized, clutter-free, and efficient. You’ll find that the more knowledge you have about optimal CSS practices, smaller file size will inevitably come as an direct result of their implementation.

You may already be familiar with some of the principles mentioned below, but they are worth a review. 1. 2. 3. 4. 5. 6. » CSS Best Practices :: CSS, JavaScript and XHTML Explained. Separate content from presentation in order to make your website accessible to all users and devices, increase the longevity of your website (you won’t have to touch you HTML to alter the page’s layout), and enable the creating of new pages without worrying about consistency of appearance or layout. (Note that i wrote this in 2004 and posted here in 2007, so some stuff may be archaic). General CSS Rules Build and test your CSS in Firefox (or Safari if you are working on a Mac).Specify units for non-zero values, but not for zero values.Don’t use quotation marks around paths/URLs when setting a background image or loading in an imported fileTry to avoid applying padding/borders and a fixed width to an element. Stylesheet Maintenance Minimize and clean up your cssOrganize your CSS fileThere are pros and cons to using Multiple stylesheets HTML Development General CSS Rules Build and test your CSS in Firefox or Safari if you are working on a Mac.

Specify units for non-zero values. Avoid ! Write a well structured CSS file without becoming crazy. Big CSS files can be complex to manage but a good structured code can help you to make your life simpler. This is a descriptive post about how to write a well structured CSS file. I already spoken about code readability in CSS files, but after several most specific requests about this argument (mainly about the difficult of some readers to manage CSS file with a big quantity of layout elements), I decided to illustrate the process I use in these cases. I experienced, proceeding without "order" or a clear vision about what you want to realize can be harmful and you risk to add, change, remove classes and properties, with the only result to have untidy code with a lot of unused elements on your final product.

Before you start writing directly CSS code, I suggest you to prepare a "draft" with all sections your site will have. 1. Be simple Avoid everyting is not strictly necessary. Don't write a "book" about a div ID called #column-left. Let's go. Body, h1, h2, h3, p, ul, li, form - Yahoo! Future Media Standards &amp; Guidelines - Technical Standa. CSS coding standards. Status DEPRECATED. These old draft standards have been superseded by the new CSS coding standards. Links CSS coding standards issuesDrupal core "markup" component issuesOriginating groups.drupal.org discussionInitial proposal by Nick Lewis Write valid CSS All CSS code should be valid CSS, preferably to CSS 2.1. Concise terminology used in these standards: Selectors Selectors should be on a single linehave a space after the previous selectorend in an opening bracebe closed with a closing brace on a separate line without indentation .book-navigation .page-next { } .book-navigation .page-previous { } .book-admin-form { } A blank line should be placed between each group, section, or block of multiple selectors of logically related styles.

Multiple selectors Multiple selectors should each be on a single line, with no space after each comma: #forum td.posts, #forum td.topics, #forum td.replies, #forum td.pager { Properties All properties should be on the following line after the opening brace. Comments. Web Development Coding Standards. CSS Coding Standards | Labs | Pete Goodman - Web Developer. Saturday 13th September 2008, 11:25 PLEASE NOTE: These guidelines are several years old. I will get round to updating them one day. Maybe. These CSS coding standards are not a guide for how to write CSS, but instead give an overview of how I prefer to structure my CSS files. The reason for setting out these rules explicitly is to increase the legibility of my code, and to aid situations where I am working as part of a group of developers.

These guidelines should be read in conjunction with looking at the CSS for one of my latest sites, for example this one1. CSS files I always keep all CSS files within the directory /_includes/css/site/. Within each of these directories, I use a main stylesheet named global.css, along with a stylesheet named print.css. Coding conventions CSS style I always use consistent styling when writing my CSS styles. CSS ordering Within a CSS statement, I generally split all declarations into two distinct blocks. General tips I always code everything in lowercase. Web Coding Standards : eCommunication Standards : University of. The University of Minnesota web template HTML validates using XHTML 1.0 transitional. The XHTML and CSS coding follows standards developed by the W3C and University policy such as Accessibility of Information Technology.

XHTML tools Conversion from HTML to XHTML is easier using tools such as the following: Dreamweaver—a free XHTML conversion extension can be downloaded to make the conversion. The latest version of Dreamweaver has this built in, too. Under File > Convert, you can find a variety of conversion options including XHTML 1.0 Transitional. BBEdit TextMate Semantic markup Semantic markup is HTML that describes the content, rather than the manner, in which the content is presented.

Writing semantic code includes everything from using heading tags properly to naming CSS styles based on content description. To continue to use good semantic markup, consider a tool like the Web Standards Advisor (this is not an endorsement). Page titles Page titles are used to name the browser window. Coding Standards. Search for in the Coding Standards (Previous) Indenting and Line Length (Next) PEAR Manual Coding Standards Coding Standards Table of Contents The PEAR Coding Standards apply to code that is part of the official PEAR distribution.

The original coding standards have been adjusted several times through RFCs: Those RFCs have been integrated into this document. The PEAR2 Coding Standards define several other rules that have to be followed once PEAR2 is in place. Last updated: Mon, 05 Dec 2016 — Download Documentation Do you think that something on this page is wrong? View this page in: English User Notes: Note by: hm2k Redirected here from the "Add Patch" page with the statement "Make sure your coding style complies with Coding Standards". Note by: Jim Rules, rules and more rules. Note by: v1d4l0k4@gmail.com From the PEP 8 -- Style Guide for Python Code about maximum line length: "Limit all lines to a maximum of 79 characters. Note by: akronymn Note by: SnowDrummer Note by: thomas@apestaart.org. Aspectes: Web Coding Standard. TreeLogic Software Engineering Coding Standard: Web Languages January 14, 2005 Christopher M.

Balz Validity: All html must conform to the xhtml 1.0 Strict or Frameset standard, and must validate at w3c.org: Files: To maintain a clean separation between static document structure elements and interactive gui elements, most or all dynamic html should only be written dynamically, and should not be present in static html files. Whitespace: See the section on whitespace in JavaScript, below. Validity: All css must conform to the css-2 standard, and must validate at w3c.org.

Files: Css files, except ‘skin.css’, must correspond to major application gui elements. The ‘skin.css’ file defines all surface-related properties, such as border-style, image background, etcetera, for all major screen elements. 1.2.1.1 Inline CSS There will be no inline css. 2.1 JavaScript 2.1.1 Introduction 2.1.2 Inheritance // Complete the inheritance. Posh. Welcome to the POSH home page.

Origins The acronym POSH was coined on 6 April 2007 on the microformats IRC channel, by <kwijibo> as a shorthand abbreviation for "plain old semantic HTML". A discussion on among John Allsopp, Tantek Çelik, Jeremy Keith, and Chris Messina at the Microformats Dinner 2007 April 18 following Web 2.0 Expo reraised the idea of POSH and the importance of promoting the broader goal of POSH, which microformats are built from and are a proper subset of.

For more see History. Why The term semantic-html is a mouthful, and belies both how simple it is, how well established it is among modern web designers, and the fact that it has benefits far beyond the obvious doing the right thing for the Web by using semantic markup. What POSH encapsulates the best practices of using semantic HTML to author web pages. The POSH Process What can you do to be POSH and to make your websites POSH? Publish POSH content. The POSH Checklist poshformats See poshformats for more. Resources POSH Books. The Ultimate Testing Checklist [Server Side Essentials] 45 Incredibly Useful Web Design Checklists and Questionnaires | Hacker News | Ask HN: Which tools do you use to optimize your we. 5 Web Accessibility Improvement Tools. A Guide on Advanced Logging and Benchmarking with FirePHP. To Version Control or Not? « Boagworld. Painless Functional Specifications - Part 1: Why Bother? - Joel.

Minify - Project Hosting on Google Code. 12 Tools To Check Your Site’s Accessibility. The Woork Handbook. Collaborate and Connect with Subversion. RockStar Profiler Login. Measuring Usability: The Basics. SEO_Web_Developer_Cheat_Sheet.pdf (application/pdf Object) Composing Good HTML 3.0 (1 of 4) Web Page Analyzer - free website optimization tool website speed. The W3C Markup Validation Service. The W3C CSS Validation Service. Web Page Development: Best Practices. 10 Best CSS Practices to Improve Your Code. 10 Easy Steps to Great Website Optimization. | The Wojo Group.