camicroscope / caMicroscope

Digital pathology image viewer with support for human/machine generated annotations and markups.
BSD 3-Clause "New" or "Revised" License
256 stars 295 forks source link

Importhtml : W3C standards #924

Closed gbengaoluwadahunsi closed 8 months ago

gbengaoluwadahunsi commented 8 months ago

Summary I added the rel attribute to the CSS link tag and moved the styles tag from between the head and body tags to the head tag. This ensures better adherence to HTML standards and improves the organization of the document structure.

Motivation The motivation behind these changes is to ensure that the HTML document follows best practices and standards recommended by the W3C. Adding the rel attribute to the CSS link tag helps define the relationship between the current document and the linked resource, enhancing the document's semantics. Moving the styles tag to the head section ensures that styles are loaded before the content, which can improve the rendering performance of the page.

Testing These changes have been tested by validating the HTML document using online validators such as the W3C Markup Validation Service. Additionally, the rendering of the web page has been checked in various browsers to ensure consistency and compatibility.