InterviewSolution
| 1. |
What Are The General Rules And Principles? |
|
Answer» In general, follow these basic steps to use an MDL component in your HTML page:
Remember to include the meta viewport tag in your document so mobile devices will RENDER correctly. <meta name="viewport" content="width=device-width, initial-scale=1.0"> A note about HTML elements and MDL CSS classes Material Design Lite uses namespaced BEM classes—which can apply to almost any HTML element—to construct components. For some components you can use almost any element. The examples in each component's documentation use elements that perform well as that component. If you must use elements other than those shown in the examples, we encourage you to experiment to find the best combination of HTML elements and MDL CSS classes for your application. In general, follow these basic steps to use an MDL component in your HTML page: Remember to include the meta viewport tag in your document so mobile devices will render correctly. <meta name="viewport" content="width=device-width, initial-scale=1.0"> A note about HTML elements and MDL CSS classes Material Design Lite uses namespaced BEM classes—which can apply to almost any HTML element—to construct components. For some components you can use almost any element. The examples in each component's documentation use elements that perform well as that component. If you must use elements other than those shown in the examples, we encourage you to experiment to find the best combination of HTML elements and MDL CSS classes for your application. |
|