HTML Css Js Notes
HTML Css Js Notes
Features/Characteristics of HTML5
- Semantic elements (e.g., <header>, <footer>)
- Audio and video support (<audio>, <video>)
- Local storage (localStorage, sessionStorage)
- New form controls (e.g., <datalist>, <date>)
- Canvas and SVG support
- Mobile-friendly & responsive
- Geolocation API
Disadvantages:
- Static content (needs CSS/JS for dynamic pages)
- Browser compatibility issues
- Limited security
Presentation Elements: <b>, <i>, <u>, <mark>, <small>, <strong>, <em>, etc.
Example:
<ol><li>Step 1</li><li>Step 2</li></ol>
<ul><li>Milk</li><li>Bread</li></ul>
<dl><dt>HTML</dt><dd>Hypertext Markup Language</dd></dl>
6. Tables in HTML
Tags: <table>, <tr>, <td>, <th>, <thead>, <tbody>, <tfoot>
Example:
<table border="1">
<tr><th>Name</th><th>Age</th></tr>
<tr><td>John</td><td>30</td></tr>
</table>
8. Forms in HTML
Example:
<form action="submit.php" method="post">
Name: <input type="text" name="name"><br>
<input type="submit" value="Submit">
</form>
Features:
- Media queries
- Flexbox and Grid layout
- Animations and transitions
- Rounded corners and shadows
Disadvantages:
- Browser compatibility
- No logic or interactivity
15. JS Basics
- Literals: "hello", 42, true
- Variables: let x = 5;
- Primitive Types: String, Number, Boolean, Null, Undefined
- Composite Types: Object, Array
- Scope: Global, Local
- Operators: +, -, ==, ===, &&, ||
- Methods: alert("Hello"); prompt("Enter name:"); confirm("Are you sure?");