Stylesheet validation can also be done online or offline. Among other things, it is necessary to specify that stylesheets can be used in two ways: embedded within the document or linked from the document itself.
The use of the second option is strongly recommended, especially for optimizing update times: by modifying individual stylesheets, all pages linked to them will be updated in real-time. Validation therefore allows for the identification of any syntactic errors in the CS content, offering two validation modes: validation with “warnings” (i.e., alerts) and complete validation. Warning validation allows the use of the W3C CS logo but informs the user that there might be attributes making the code non-“standard.” For example, in this case, Line: 122 Level: 1 You have no color with your background-color:.sfondomenu The background-color attribute has not been defined for the .sfondomenu style, which does not prevent the style from displaying but could cause problems with certain configurations. As noted, even in the stylesheet validator, the line of code with the error description is indicated. Complete validation allows for the “certification” of total compliance with the W3C recommendation for the Level 1.0 or 2.0 stylesheet. However, this does not guarantee perfect display across all browsers, as manufacturers have not yet fully adapted to these recommendations: viewing the official W3C page on CS (www.w3.org/Style/CSS) with different browsers will yield extreme results, especially with Internet Explorer version 6.x.
Pubblicato in Digital Tools
Be the first to comment