Web Basic
Web Basic
What is HTML
</body>
</html>
Description of <!DOCTYPE html>
•Inline Elements
• <em>,<strong>,<a>,…
•Nesting Elements
• <p>I love <strong> Node js </strong>
Language.</p>
•Empty Elements
• <img src=“/images/test.png”>
HTML Attributes
Cannot modify and the value is never sent with the rest of
disabled
the form data
Internal Stylesheet
Inline Stylesheet
CSS Syntax
selector
P{
color : red;
declaration
property} value
CSS Selector
Element selector
Element selector: Use elements
Class selector
Class selector: Use elements class name, .className
Id selector
Id selector: Use elements ID, #id
CSS Selector
Combinators
Attribute selector
[attr]
[attr=val]
|=, ^=, $=, *=
CSS Selector
Pseudo-classes
What is JavaScript
JavaScript is a cross-platform, object-
oriented scripting language.
External JavaScript
A Multi-line comments
Troubleshooting
Type of error
Declaring a variable
With initial value With no value: set undefined
Variable types
Numbers
Strings
Booleans
Arrays
Objects
Numbers
Creating a number Arithmetic operators
+ addition
-
Types of numbers Subtraction
Integers *
aFloats Multiplication
Doubles / Division
Binary, Octal, Hexadecimal %
Reminder(modulo
)
Numbers
Assignment operators Comparison operators
Concatenating strings