HTML Notes
HTML Notes
HTML NOTES
FOR
BOOTCAMP
HTML TAGS:
HTML STANDS FOR HYPERTEXT MARKUP LANGUAGE.
HTML USES TAGS TO DEFINE DIFFERENT ELEMENTS
WITHIN A WEB PAGE. TAGS ARE ENCLOSED IN ANGLE
BRACKETS < > AND USUALLY COME IN PAIRS: AN
OPENING TAG AND A CLOSING TAG.
EXAMPLE:-
<a href="https://www.example.com">Click here</a>
NOTES
<div>
<p>This is a paragraph inside a division.</p>
</div>
<div class="main-content">
<h1>Welcome to my website!</h1>
<p>This is the main content area of my page.</p>
</div>
EXAMPLE:
OUTPUT
NOTES
UNDERSTAND ID IN HTML
the id attribute uniquely identifies an individual element
within a web page. Unlike the class attribute, which can
be applied to multiple elements, the id attribute must be
unique within the HTML document. It provides a way to
target specific elements for styling with CSS or for
manipulation with JavaScript.
EXAMPLE:
OUTPUT