SlideShare a Scribd company logo
Copyright 2018 Automated Logical Software (P) Ltd.
AGENDA
• HTML5 Guidelines
• CSS3 Guidelines
• SMACSS Guidelines
• Design Guidelines
Copyright 2018 Automated Logical Software (P) Ltd.
HTML5
Note: Always keep your code tidy, clean, and
well-formed.
Copyright 2018 Automated Logical Software (P) Ltd.
HTML5
• Always declare the document type as the first line
in your document:
<!DOCTYPE html>
Copyright 2018 Automated Logical Software (P) Ltd.
HTML5
We recommend using lowercase element names because:
• Mixing uppercase and lowercase names is bad
• Developers normally use lowercase names (as in XHTML)
• Lowercase look cleaner
• Lowercase are easier to write
Use Lower Case File Names
Some web servers (Apache, Unix) are case sensitive about file
names: "london.jpg" cannot be
accessed as "London.jpg"
Copyright 2018 Automated Logical Software (P) Ltd.
HTML5
• Image Attributes :
Always add the "alt" attribute to images. This attribute is important when
the image for some reason cannot be displayed. Also, always define image
width and height. It reduces flickering because the browser can reserve
space for the image before loading.
Copyright 2018 Automated Logical Software (P) Ltd.
HTML5
Always follow this HTML Structure
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello world! in HTML5</title>
<link href=”#” rel=”stylesheets”>
</head>
<body>
<p>Hello world!</p>
<script></script>
</body>
</html>
Copyright 2018 Automated Logical Software (P) Ltd.
Copyright 2018 Automated Logical Software (P) Ltd.
Heading Hierarchy:
HTML5
Comments:
This element is used to add a comment to an HTML document. An HTML
comment begins with . HTML comments are visible to anyone that views the
page source code, but are not rendered when the HTML document is
rendered by a browser.
<!-- Comments -->
Copyright 2018 Automated Logical Software (P) Ltd.
HTML5
HTML5 layout:
Copyright 2009 Automated Logical Software (P) Ltd.
HTML5
Setting The Viewport :
<meta name="viewport" content="width=device-
width, initial-scale=1.0">
Prevent HTML Zoom:
<meta name="viewport" content="initial-scale=1.0,
maximum-scale=1.0, user-scalable=no" />
Copyright 2018 Automated Logical Software (P) Ltd.
HTML5
Protocol:
Use the HTTPS protocol for embedded resources where possible.
Always use the HTTPS protocol (https:) for images and other media files, style
sheets, and scripts, unless the respective files are not available over HTTPS.
Copyright 2018 Automated Logical Software (P) Ltd.
CSS3
CSS/CSS3 Guide Lines
Issues: If you’ve ever worked on a medium to large website, you have
probably come across a range of issues with CSS.
Repetition: Lots of floats, font-size references, heading levels repeated.
Unmanageable: It may have started out well, but it has become a mess?
Weight war: You need to add some CSS - so you must start adding to
selectors in order to win.
Coupling: Your CSS is specifically tied to HTML or location.
Copyright 2018 Automated Logical Software (P) Ltd.
• Weight in CSS Selectors
Copyright 2018 Automated Logical Software (P) Ltd.
Web Dev Philosophy
Respect the original design vision
Copyright 2018 Automated Logical Software (P) Ltd.
CSS3
ID vs Classes
Copyright 2018 Automated Logical Software (P) Ltd.
CSS3
• ID: An ID is a unique identifier which allows us to target a specific element
on the page and, since it is unique, it can only be used once in a page.
• Class: we have classes which allow us to do exactly the opposite. Classes
are used when you have the same element more than once on a page.
Use meaningful or generic ID and class names.
Instead of presentational or cryptic names, always use ID and class names
that reflect the purpose of the element in question, or that are otherwise
generic.
Copyright 2018 Automated Logical Software (P) Ltd.
CSS3
• Use meaningful or generic ID and class names.
• Instead of presentational or cryptic names, always use ID and
class names that reflect the purpose of the element in
question, or that are otherwise generic.
Copyright 2018 Automated Logical Software (P) Ltd.
CSS3
Shorthand Properties:
• Use shorthand properties where possible.
• CSS offers a variety of shorthand properties (like font) that should be used
whenever possible, even in cases where only one value is explicitly set.
• Using shorthand properties is useful for code efficiency and understandability.
Copyright 2018 Automated Logical Software (P) Ltd.
CSS3
Prefixes:
• Prefix selectors with an application-specific prefix (optional).
• In large projects as well as for code that gets embedded in other projects or on external sites
use prefixes (as namespaces) for ID and class names. Use short, unique identifiers followed
by a dash.
• Using namespaces helps preventing naming conflicts and can make maintenance easier, for
example in search and replace operations.
Copyright 2018 Automated Logical Software (P) Ltd.
CSS3
Copyright 2018 Automated Logical Software (P) Ltd.
CSS3
Quick tips for creating CSS
Copyright 2018 Automated Logical Software (P) Ltd.
CSS3
Copyright 2018 Automated Logical Software (P) Ltd.
CSS3
Copyright 2018 Automated Logical Software (P) Ltd.
CSS3
Copyright 2018 Automated Logical Software (P) Ltd.
CSS3
Copyright 2018 Automated Logical Software (P) Ltd.
CSS3
Copyright 2018 Automated Logical Software (P) Ltd.
CSS3
Copyright 2018 Automated Logical Software (P) Ltd.
CSS3
Copyright 2018 Automated Logical Software (P) Ltd.
CSS3
Copyright 2018 Automated Logical Software (P) Ltd.
CSS3
Copyright 2018 Automated Logical Software (P) Ltd.
SMACSS
Copyright 2018 Automated Logical Software (P) Ltd.
SMACSS
• Scalable to…
1. Scale with larger projects
2. Scale with larger teams
3. Scale over multiple projects
Copyright 2018 Automated Logical Software (P) Ltd.
SMACSS
• There are five types of categories:
1. Base
2. Layout
3. Module
4. State
5. Theme
Copyright 2018 Automated Logical Software (P) Ltd.
SMACSS
Copyright 2018 Automated Logical Software (P) Ltd.
SMACSS
1. Base:
CSS resets, default styles
(ex. html, body, h1, ul, etc)
Copyright 2018 Automated Logical Software (P) Ltd.
SMACSS
2. Layout:
Grid, major components
ex. header, sidebar, nav
Copyright 2018 Automated Logical Software (P) Ltd.
SMACSS
Copyright 2018 Automated Logical Software (P) Ltd.
SMACSS
3. Modules:
Content patterns
(ex. search-box, navigation, content-box)
Copyright 2018 Automated Logical Software (P) Ltd.
SMACSS
Copyright 2018 Automated Logical Software (P) Ltd.
SMACSS
4. States:
Module in various states
Copyright 2018 Automated Logical Software (P) Ltd.
SMACSS
Copyright 2018 Automated Logical Software (P) Ltd.
SMACSS
Copyright 2018 Automated Logical Software (P) Ltd.
5. Themes:
Module in various contexts
Grid System
Copyright 2018 Automated Logical Software (P) Ltd.
Typography Page
Copyright 2018 Automated Logical Software (P) Ltd.
Copyright 2018 Automated Logical Software (P) Ltd.
Copyright 2018 Automated Logical Software (P) Ltd.

More Related Content

Similar to Guidelines HTML5 & CSS3 - Atlogys (2018) (14)

SDP_-_Module_4.ppt
SDP_-_Module_4.pptSDP_-_Module_4.ppt
SDP_-_Module_4.ppt
ssuser568d77
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3
Gopi A
 
SEARCH Y - Bastian Grimm - Migrations Best Practices
SEARCH Y - Bastian Grimm -  Migrations Best PracticesSEARCH Y - Bastian Grimm -  Migrations Best Practices
SEARCH Y - Bastian Grimm - Migrations Best Practices
SEARCH Y - Philippe Yonnet Evénements
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
Jesus Cortes
 
Html5 - Tutorial
Html5 - TutorialHtml5 - Tutorial
Html5 - Tutorial
adelaticleanu
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
Edress Oryakhail
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
Divyesh Bharadava
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
Arjuman Shaikh
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
Jitendra Gangwar
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
Ali Haydar(Raj)
 
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to DevelopmentWordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
Evan Mullins
 
Overview of Web Technology Intro
Overview of Web Technology Intro Overview of Web Technology Intro
Overview of Web Technology Intro
webhostingguy
 
MTA html5 text_graphics_media
MTA html5 text_graphics_mediaMTA html5 text_graphics_media
MTA html5 text_graphics_media
Dhairya Joshi
 
High-Speed HTML5
High-Speed HTML5High-Speed HTML5
High-Speed HTML5
Peter Lubbers
 
SDP_-_Module_4.ppt
SDP_-_Module_4.pptSDP_-_Module_4.ppt
SDP_-_Module_4.ppt
ssuser568d77
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3
Gopi A
 
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to DevelopmentWordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
Evan Mullins
 
Overview of Web Technology Intro
Overview of Web Technology Intro Overview of Web Technology Intro
Overview of Web Technology Intro
webhostingguy
 
MTA html5 text_graphics_media
MTA html5 text_graphics_mediaMTA html5 text_graphics_media
MTA html5 text_graphics_media
Dhairya Joshi
 

More from Atlogys Technical Consulting (20)

Latest UI guidelines for Web Apps
Latest UI guidelines for Web AppsLatest UI guidelines for Web Apps
Latest UI guidelines for Web Apps
Atlogys Technical Consulting
 
Discipline at Atlogys
Discipline at AtlogysDiscipline at Atlogys
Discipline at Atlogys
Atlogys Technical Consulting
 
Reprogram your mind for Positive Thinking
Reprogram your mind for Positive ThinkingReprogram your mind for Positive Thinking
Reprogram your mind for Positive Thinking
Atlogys Technical Consulting
 
Docker @ Atlogys
Docker @ AtlogysDocker @ Atlogys
Docker @ Atlogys
Atlogys Technical Consulting
 
Tests for Scalable, Fast, Secure Apps
Tests for Scalable, Fast, Secure AppsTests for Scalable, Fast, Secure Apps
Tests for Scalable, Fast, Secure Apps
Atlogys Technical Consulting
 
Atomic Design with PatternLabs
Atomic Design with PatternLabsAtomic Design with PatternLabs
Atomic Design with PatternLabs
Atlogys Technical Consulting
 
Git and Version Control at Atlogys
Git and Version Control at AtlogysGit and Version Control at Atlogys
Git and Version Control at Atlogys
Atlogys Technical Consulting
 
Rabbit MQ - Tech Talk at Atlogys
Rabbit MQ - Tech Talk at Atlogys Rabbit MQ - Tech Talk at Atlogys
Rabbit MQ - Tech Talk at Atlogys
Atlogys Technical Consulting
 
BDD and Test Automation Tech Talk - Atlogys Academy Series
BDD and Test Automation Tech Talk - Atlogys Academy SeriesBDD and Test Automation Tech Talk - Atlogys Academy Series
BDD and Test Automation Tech Talk - Atlogys Academy Series
Atlogys Technical Consulting
 
QA Best Practices at Atlogys - Tech Talk (Atlogys Academy)
QA Best Practices at Atlogys - Tech Talk (Atlogys Academy)QA Best Practices at Atlogys - Tech Talk (Atlogys Academy)
QA Best Practices at Atlogys - Tech Talk (Atlogys Academy)
Atlogys Technical Consulting
 
Infinite Scaling using Lambda and Aws - Atlogys Tech Talk
Infinite Scaling using Lambda and Aws - Atlogys Tech TalkInfinite Scaling using Lambda and Aws - Atlogys Tech Talk
Infinite Scaling using Lambda and Aws - Atlogys Tech Talk
Atlogys Technical Consulting
 
How Solr Search Works
How Solr Search WorksHow Solr Search Works
How Solr Search Works
Atlogys Technical Consulting
 
Wordpress Tech Talk
Wordpress Tech Talk Wordpress Tech Talk
Wordpress Tech Talk
Atlogys Technical Consulting
 
Tech Talk on ReactJS
Tech Talk on ReactJSTech Talk on ReactJS
Tech Talk on ReactJS
Atlogys Technical Consulting
 
Atlogys Academy - Tech Talk on Mongo DB
Atlogys Academy - Tech Talk on Mongo DBAtlogys Academy - Tech Talk on Mongo DB
Atlogys Academy - Tech Talk on Mongo DB
Atlogys Technical Consulting
 
Atlogys Tech Talk - Web 2.0 Design Guidelines
Atlogys Tech Talk - Web 2.0 Design GuidelinesAtlogys Tech Talk - Web 2.0 Design Guidelines
Atlogys Tech Talk - Web 2.0 Design Guidelines
Atlogys Technical Consulting
 
Firebase Tech Talk By Atlogys
Firebase Tech Talk By AtlogysFirebase Tech Talk By Atlogys
Firebase Tech Talk By Atlogys
Atlogys Technical Consulting
 
Atlogys - Don’t Just Sell Technology, Sell The Experience!
Atlogys - Don’t Just Sell Technology, Sell The Experience!Atlogys - Don’t Just Sell Technology, Sell The Experience!
Atlogys - Don’t Just Sell Technology, Sell The Experience!
Atlogys Technical Consulting
 
Smart CTO Service
Smart CTO ServiceSmart CTO Service
Smart CTO Service
Atlogys Technical Consulting
 
Atlogys Technical Consulting
Atlogys Technical ConsultingAtlogys Technical Consulting
Atlogys Technical Consulting
Atlogys Technical Consulting
 
BDD and Test Automation Tech Talk - Atlogys Academy Series
BDD and Test Automation Tech Talk - Atlogys Academy SeriesBDD and Test Automation Tech Talk - Atlogys Academy Series
BDD and Test Automation Tech Talk - Atlogys Academy Series
Atlogys Technical Consulting
 
QA Best Practices at Atlogys - Tech Talk (Atlogys Academy)
QA Best Practices at Atlogys - Tech Talk (Atlogys Academy)QA Best Practices at Atlogys - Tech Talk (Atlogys Academy)
QA Best Practices at Atlogys - Tech Talk (Atlogys Academy)
Atlogys Technical Consulting
 
Infinite Scaling using Lambda and Aws - Atlogys Tech Talk
Infinite Scaling using Lambda and Aws - Atlogys Tech TalkInfinite Scaling using Lambda and Aws - Atlogys Tech Talk
Infinite Scaling using Lambda and Aws - Atlogys Tech Talk
Atlogys Technical Consulting
 
Atlogys - Don’t Just Sell Technology, Sell The Experience!
Atlogys - Don’t Just Sell Technology, Sell The Experience!Atlogys - Don’t Just Sell Technology, Sell The Experience!
Atlogys - Don’t Just Sell Technology, Sell The Experience!
Atlogys Technical Consulting
 

Recently uploaded (20)

Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
Unlocking the Power of IVR: A Comprehensive Guide
Unlocking the Power of IVR: A Comprehensive GuideUnlocking the Power of IVR: A Comprehensive Guide
Unlocking the Power of IVR: A Comprehensive Guide
vikasascentbpo
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
Top 10 IT Help Desk Outsourcing Services
Top 10 IT Help Desk Outsourcing ServicesTop 10 IT Help Desk Outsourcing Services
Top 10 IT Help Desk Outsourcing Services
Infrassist Technologies Pvt. Ltd.
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
Web and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in RajpuraWeb and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in Rajpura
Erginous Technology
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Social Media App Development Company-EmizenTech
Social Media App Development Company-EmizenTechSocial Media App Development Company-EmizenTech
Social Media App Development Company-EmizenTech
Steve Jonas
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Semantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AISemantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AI
artmondano
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
Unlocking the Power of IVR: A Comprehensive Guide
Unlocking the Power of IVR: A Comprehensive GuideUnlocking the Power of IVR: A Comprehensive Guide
Unlocking the Power of IVR: A Comprehensive Guide
vikasascentbpo
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
Web and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in RajpuraWeb and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in Rajpura
Erginous Technology
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Social Media App Development Company-EmizenTech
Social Media App Development Company-EmizenTechSocial Media App Development Company-EmizenTech
Social Media App Development Company-EmizenTech
Steve Jonas
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Semantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AISemantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AI
artmondano
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 

Guidelines HTML5 & CSS3 - Atlogys (2018)

  • 1. Copyright 2018 Automated Logical Software (P) Ltd.
  • 2. AGENDA • HTML5 Guidelines • CSS3 Guidelines • SMACSS Guidelines • Design Guidelines Copyright 2018 Automated Logical Software (P) Ltd.
  • 3. HTML5 Note: Always keep your code tidy, clean, and well-formed. Copyright 2018 Automated Logical Software (P) Ltd.
  • 4. HTML5 • Always declare the document type as the first line in your document: <!DOCTYPE html> Copyright 2018 Automated Logical Software (P) Ltd.
  • 5. HTML5 We recommend using lowercase element names because: • Mixing uppercase and lowercase names is bad • Developers normally use lowercase names (as in XHTML) • Lowercase look cleaner • Lowercase are easier to write Use Lower Case File Names Some web servers (Apache, Unix) are case sensitive about file names: "london.jpg" cannot be accessed as "London.jpg" Copyright 2018 Automated Logical Software (P) Ltd.
  • 6. HTML5 • Image Attributes : Always add the "alt" attribute to images. This attribute is important when the image for some reason cannot be displayed. Also, always define image width and height. It reduces flickering because the browser can reserve space for the image before loading. Copyright 2018 Automated Logical Software (P) Ltd.
  • 7. HTML5 Always follow this HTML Structure <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Hello world! in HTML5</title> <link href=”#” rel=”stylesheets”> </head> <body> <p>Hello world!</p> <script></script> </body> </html> Copyright 2018 Automated Logical Software (P) Ltd.
  • 8. Copyright 2018 Automated Logical Software (P) Ltd. Heading Hierarchy:
  • 9. HTML5 Comments: This element is used to add a comment to an HTML document. An HTML comment begins with . HTML comments are visible to anyone that views the page source code, but are not rendered when the HTML document is rendered by a browser. <!-- Comments --> Copyright 2018 Automated Logical Software (P) Ltd.
  • 10. HTML5 HTML5 layout: Copyright 2009 Automated Logical Software (P) Ltd.
  • 11. HTML5 Setting The Viewport : <meta name="viewport" content="width=device- width, initial-scale=1.0"> Prevent HTML Zoom: <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> Copyright 2018 Automated Logical Software (P) Ltd.
  • 12. HTML5 Protocol: Use the HTTPS protocol for embedded resources where possible. Always use the HTTPS protocol (https:) for images and other media files, style sheets, and scripts, unless the respective files are not available over HTTPS. Copyright 2018 Automated Logical Software (P) Ltd.
  • 13. CSS3 CSS/CSS3 Guide Lines Issues: If you’ve ever worked on a medium to large website, you have probably come across a range of issues with CSS. Repetition: Lots of floats, font-size references, heading levels repeated. Unmanageable: It may have started out well, but it has become a mess? Weight war: You need to add some CSS - so you must start adding to selectors in order to win. Coupling: Your CSS is specifically tied to HTML or location. Copyright 2018 Automated Logical Software (P) Ltd.
  • 14. • Weight in CSS Selectors Copyright 2018 Automated Logical Software (P) Ltd.
  • 15. Web Dev Philosophy Respect the original design vision Copyright 2018 Automated Logical Software (P) Ltd.
  • 16. CSS3 ID vs Classes Copyright 2018 Automated Logical Software (P) Ltd.
  • 17. CSS3 • ID: An ID is a unique identifier which allows us to target a specific element on the page and, since it is unique, it can only be used once in a page. • Class: we have classes which allow us to do exactly the opposite. Classes are used when you have the same element more than once on a page. Use meaningful or generic ID and class names. Instead of presentational or cryptic names, always use ID and class names that reflect the purpose of the element in question, or that are otherwise generic. Copyright 2018 Automated Logical Software (P) Ltd.
  • 18. CSS3 • Use meaningful or generic ID and class names. • Instead of presentational or cryptic names, always use ID and class names that reflect the purpose of the element in question, or that are otherwise generic. Copyright 2018 Automated Logical Software (P) Ltd.
  • 19. CSS3 Shorthand Properties: • Use shorthand properties where possible. • CSS offers a variety of shorthand properties (like font) that should be used whenever possible, even in cases where only one value is explicitly set. • Using shorthand properties is useful for code efficiency and understandability. Copyright 2018 Automated Logical Software (P) Ltd.
  • 20. CSS3 Prefixes: • Prefix selectors with an application-specific prefix (optional). • In large projects as well as for code that gets embedded in other projects or on external sites use prefixes (as namespaces) for ID and class names. Use short, unique identifiers followed by a dash. • Using namespaces helps preventing naming conflicts and can make maintenance easier, for example in search and replace operations. Copyright 2018 Automated Logical Software (P) Ltd.
  • 21. CSS3 Copyright 2018 Automated Logical Software (P) Ltd.
  • 22. CSS3 Quick tips for creating CSS Copyright 2018 Automated Logical Software (P) Ltd.
  • 23. CSS3 Copyright 2018 Automated Logical Software (P) Ltd.
  • 24. CSS3 Copyright 2018 Automated Logical Software (P) Ltd.
  • 25. CSS3 Copyright 2018 Automated Logical Software (P) Ltd.
  • 26. CSS3 Copyright 2018 Automated Logical Software (P) Ltd.
  • 27. CSS3 Copyright 2018 Automated Logical Software (P) Ltd.
  • 28. CSS3 Copyright 2018 Automated Logical Software (P) Ltd.
  • 29. CSS3 Copyright 2018 Automated Logical Software (P) Ltd.
  • 30. CSS3 Copyright 2018 Automated Logical Software (P) Ltd.
  • 31. CSS3 Copyright 2018 Automated Logical Software (P) Ltd.
  • 32. SMACSS Copyright 2018 Automated Logical Software (P) Ltd.
  • 33. SMACSS • Scalable to… 1. Scale with larger projects 2. Scale with larger teams 3. Scale over multiple projects Copyright 2018 Automated Logical Software (P) Ltd.
  • 34. SMACSS • There are five types of categories: 1. Base 2. Layout 3. Module 4. State 5. Theme Copyright 2018 Automated Logical Software (P) Ltd.
  • 35. SMACSS Copyright 2018 Automated Logical Software (P) Ltd.
  • 36. SMACSS 1. Base: CSS resets, default styles (ex. html, body, h1, ul, etc) Copyright 2018 Automated Logical Software (P) Ltd.
  • 37. SMACSS 2. Layout: Grid, major components ex. header, sidebar, nav Copyright 2018 Automated Logical Software (P) Ltd.
  • 38. SMACSS Copyright 2018 Automated Logical Software (P) Ltd.
  • 39. SMACSS 3. Modules: Content patterns (ex. search-box, navigation, content-box) Copyright 2018 Automated Logical Software (P) Ltd.
  • 40. SMACSS Copyright 2018 Automated Logical Software (P) Ltd.
  • 41. SMACSS 4. States: Module in various states Copyright 2018 Automated Logical Software (P) Ltd.
  • 42. SMACSS Copyright 2018 Automated Logical Software (P) Ltd.
  • 43. SMACSS Copyright 2018 Automated Logical Software (P) Ltd. 5. Themes: Module in various contexts
  • 44. Grid System Copyright 2018 Automated Logical Software (P) Ltd.
  • 45. Typography Page Copyright 2018 Automated Logical Software (P) Ltd.
  • 46. Copyright 2018 Automated Logical Software (P) Ltd.
  • 47. Copyright 2018 Automated Logical Software (P) Ltd.