HTML5_Detailed_Notes
HTML5_Detailed_Notes
Markup languages are systems for annotating a document in a way that is syntactically
distinguishable from the text. These annotations instruct the system how to interpret the text.
2. Introduction to HTML5
HTML5 is the fifth and latest major version of HTML. It aims to improve the language with support
for the latest multimedia, keeping it easily readable by humans and consistently understood by
computers.
Key Features:
Optional tools:
Example:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
</body>
</html>
Content Models define what types of elements are expected inside certain HTML elements:
HTML5 Detailed Notes
- <meta charset="UTF-8">
8. Formatting Tags
- <sub> Subscript
- <sup> Superscript
HTML5 Detailed Notes
10. Lists
Example:
<ol>
<li>Item 1</li>
<li>Item 2</li>
</ol>
Syntax:
Anchor links can jump to different sections in the page using id attributes.
Adding Images:
HTML5 Detailed Notes
Image Maps allow clickable areas inside images using <map> and <area> tags.
<table>
</table>
<input type="submit">
</form>
Validation Attributes:
- required
- minlength
HTML5 Detailed Notes
- maxlength
- pattern
Example:
Block-level elements:
Inline elements:
- <audio controls>
</audio>
- <video controls>
</video>
Example:
<div class="container">
HTML5 Detailed Notes
<header>Header Content</header>
<nav>Navigation Bar</nav>
<main>Main Content</main>
<footer>Footer</footer>
</div>
DOM (Document Object Model) represents the page structure as a tree of objects.
JavaScript can manipulate the DOM using methods like getElementById(), createElement(),
appendChild().
MCQ:
(a) HighText Machine Language (b) HyperText and links Markup Language (c) HyperText Markup
Language (Answer: c)
Short Questions:
- Define HTML5.
HTML5 Detailed Notes
Medium Questions:
Long Questions: