2. Table of Contents
• Introduction
• Basic html structure
• Layout identification
• Application of style rules
• CSS prefixes
• Cross browser testing
• User interactivity and JS
• Question and answers
• References
2
3. Introduction
We will cover. . .
• HTML to define the content of web pages
• CSS to specify the layout of web pages
• JavaScript to program the behavior of web pages
• Magento theme and layout
3
5. Layout Identification
• A lot of HTML elements
• What we need?
• Which element to use?
<h1>My heading</h1>
<p> My first Paragraph</p>
<div> My first Division</div>
<ul>
<li>list item</li>
<li>list item</li>
</ul>
5
6. Layout Identification (cont…)
Building Blocks
• Main menu
• Left navigation
• Content
• FAQs
• Product category (list, grid)
• Product landing (gallery, tabs)
• Calculators
6
7. Application of Style Rules
• CSS Selectors
• Html element
• Class
• Id
• Nth-child(n)
• ::after & ::before
• CSS Properties
• Color
• Border and background
• Font
• Float
• Display
• Height & width
• Position
• align
7
10. User Interactivity with JS
• Programming language of web
and html
• Javsscript is not Java
• supported by all web browsers
• Function()
• Event
• validation
<script>
function myFunction() {
var x, text;
x = document.getElementById("numb").value;
if (isNaN(x) || x < 1 || x > 10) {
text = "Input not valid";
} else {
text = "Input OK";
}
document.getElementById("demo").innerHTML
= text;
}
</script>
10