This document provides tips for best practices when writing CSS code. It recommends avoiding inline styles, header styles, multiple CSS files, and !important. It also recommends using shorthand properties, avoiding universal selectors and IDs when possible, optimizing images, and using CSS3 properties instead of images. In summary, the document outlines techniques for writing efficient, well-structured CSS code to improve performance and maintainability.
This document provides an introduction to the BEM (Block, Element, Modifier) methodology for organizing HTML, CSS, and JavaScript code in a consistent semantic structure. It explains that BEM aims to address the lack of a unified semantic model across frontend technologies by introducing a common naming convention based on blocks, elements, and modifiers. It then details BEM's core concepts and provides examples and best practices for implementing BEM in HTML/CSS and JavaScript.
Introduction to Document Object Model
• Therefore, DHTML does the following:
• Works with JavaScript
• Works with Data Object Model (DOM)
• Works with CSS
• Combines HTML with JavaScript
The document discusses various aspects of HTML5 including its history, new elements, offline storage capabilities, and responsive web design. It provides information on HTML, CSS, JavaScript and how they make up the three layers of web design. It also summarizes the roles of different standards organizations and differences between HTML5 and the HTML living standard.
This document provides tips for best practices when writing CSS code. It recommends avoiding inline styles, header styles, multiple CSS files, and !important. It also recommends using shorthand properties, avoiding universal selectors and IDs when possible, optimizing images, and using CSS3 properties instead of images. In summary, the document outlines techniques for writing efficient, well-structured CSS code to improve performance and maintainability.
This document provides an introduction to the BEM (Block, Element, Modifier) methodology for organizing HTML, CSS, and JavaScript code in a consistent semantic structure. It explains that BEM aims to address the lack of a unified semantic model across frontend technologies by introducing a common naming convention based on blocks, elements, and modifiers. It then details BEM's core concepts and provides examples and best practices for implementing BEM in HTML/CSS and JavaScript.
Introduction to Document Object Model
• Therefore, DHTML does the following:
• Works with JavaScript
• Works with Data Object Model (DOM)
• Works with CSS
• Combines HTML with JavaScript
The document discusses various aspects of HTML5 including its history, new elements, offline storage capabilities, and responsive web design. It provides information on HTML, CSS, JavaScript and how they make up the three layers of web design. It also summarizes the roles of different standards organizations and differences between HTML5 and the HTML living standard.
JSON is a lightweight data format that is widely used for data interchange on the web. It stands for JavaScript Object Notation and uses human-readable text to transmit data objects consisting of attribute-value pairs and arrays. JSON is syntactically identical to JavaScript objects and is supported by many modern programming languages, making it ideal for data interchange. The document provides examples of JSON objects, arrays, and nested structures and explains how JSON is commonly used with web services to retrieve and display data in web pages.
Frameworks da web - Uma ferramenta de reutilização de softwareThomas Kanzig
O documento discute frameworks web, definindo-os como conjuntos de classes reutilizáveis para desenvolvimento de aplicações web. Apresenta suas características como modularidade, reusabilidade e extensibilidade. Discutem-se também os papéis envolvidos em seu uso e desenvolvimento, além de exemplos como CakePHP.
Media queries allow CSS styles to be applied conditionally based on characteristics of the device viewing the content, like screen width. They provide a way to target specific devices and change layouts without changing the HTML. The document discusses the syntax of media queries, including using media types, features, expressions, and keywords. It provides examples of using media queries to load different style sheets or apply different CSS rules for different screen widths.
JSON (JavaScript Object Notation) is a lightweight data-interchange format that is easy for humans to read and write. It uses conventions like those in C and Java and is built on two structures: a collection of name/value pairs and an ordered list of values. JSON is commonly used to transmit data between a server and web application, with the server side formatting data into JSON and the client side parsing the JSON into native JavaScript objects.
Padrões de projeto - Martin Fowler - P of EAAAricelio Souza
O documento apresenta uma introdução aos padrões de projeto de software descritos no livro "Patterns of Enterprise Application Architecture" de Martin Fowler. São descritos brevemente os padrões Lazy Load, Separated Interface, Value Object, Query Object, Repository, Identity Map, Unity of Work, Active Record e Service Layer.
JavaScript is a scripting language used for client-side and server-side web development. It is a dynamically typed language that is easy to code in and supports features like DOM manipulation, events, functions, and objects. JavaScript can be added to HTML documents in internal <script> tags or externally linked .js files and is used for everything from simple form validation to complex single-page applications.
Beyond Java discusses Java's innovations centered around Java 8. Key changes included lambda expressions, date/time API improvements, and stream processing. Lambda expressions were added after years of proposals and discussions. Java uses objects to pass behaviors as parameters rather than functions. Collections utilities demonstrate passing comparators to sort or find the minimum/maximum of a collection.
JSON is a lightweight data format that is widely used for data interchange on the web. It stands for JavaScript Object Notation and uses human-readable text to transmit data objects consisting of attribute-value pairs and arrays. JSON is syntactically identical to JavaScript objects and is supported by many modern programming languages, making it ideal for data interchange. The document provides examples of JSON objects, arrays, and nested structures and explains how JSON is commonly used with web services to retrieve and display data in web pages.
Frameworks da web - Uma ferramenta de reutilização de softwareThomas Kanzig
O documento discute frameworks web, definindo-os como conjuntos de classes reutilizáveis para desenvolvimento de aplicações web. Apresenta suas características como modularidade, reusabilidade e extensibilidade. Discutem-se também os papéis envolvidos em seu uso e desenvolvimento, além de exemplos como CakePHP.
Media queries allow CSS styles to be applied conditionally based on characteristics of the device viewing the content, like screen width. They provide a way to target specific devices and change layouts without changing the HTML. The document discusses the syntax of media queries, including using media types, features, expressions, and keywords. It provides examples of using media queries to load different style sheets or apply different CSS rules for different screen widths.
JSON (JavaScript Object Notation) is a lightweight data-interchange format that is easy for humans to read and write. It uses conventions like those in C and Java and is built on two structures: a collection of name/value pairs and an ordered list of values. JSON is commonly used to transmit data between a server and web application, with the server side formatting data into JSON and the client side parsing the JSON into native JavaScript objects.
Padrões de projeto - Martin Fowler - P of EAAAricelio Souza
O documento apresenta uma introdução aos padrões de projeto de software descritos no livro "Patterns of Enterprise Application Architecture" de Martin Fowler. São descritos brevemente os padrões Lazy Load, Separated Interface, Value Object, Query Object, Repository, Identity Map, Unity of Work, Active Record e Service Layer.
JavaScript is a scripting language used for client-side and server-side web development. It is a dynamically typed language that is easy to code in and supports features like DOM manipulation, events, functions, and objects. JavaScript can be added to HTML documents in internal <script> tags or externally linked .js files and is used for everything from simple form validation to complex single-page applications.
Beyond Java discusses Java's innovations centered around Java 8. Key changes included lambda expressions, date/time API improvements, and stream processing. Lambda expressions were added after years of proposals and discussions. Java uses objects to pass behaviors as parameters rather than functions. Collections utilities demonstrate passing comparators to sort or find the minimum/maximum of a collection.
This document discusses modern CSS architecture patterns. It introduces concepts like OOCSS, SMACSS, and BEM for organizing CSS in a modular, scalable and maintainable way. It provides examples of how to build reusable CSS modules and maintain them through techniques like naming conventions, categorization and decoupling CSS from HTML. The presentation emphasizes goals of building predictable, reusable, maintainable and scalable CSS architecture.
91. S 参考文献
※引用1 Jonathan Snook,斉藤祐也『SMACSS: Scalable and Modular Architecture for CSS』
https://smacss.com/ja
※引用2 KOJI ISHIMOTO『MOL - Designing for a Mobile World!』
http://t32k.me/mol/log/the-perfect-css-i-thought/
※引用3 Twitter『 Bootstrap』
http://getbootstrap.com/
谷 拓樹『Web制作者のためのCSS設計の教科書 モダンWeb開発に欠かせない「修正しやすいCSS」
の設計手法』
http://www.impressjapan.jp/books/1113101128
株式会社ピクセルグリッド『Code Grid』
https://app.codegrid.net/
Harry Roberts『CSS Wizardly』
http://csswizardry.com/