Aug 8, 2024
index.html
: serves as an instruction manual for every website.<h1>
- <h6>
).<html>
tag<head>
tag: holds meta information, scripts, stylesheets.<body>
tag: contains all visible content.!
+ tab.class
, id
).
class
: used for CSS styling or JavaScript selection.<img>
): requires src
attribute (URL of image).alt
, width
, height
.href
attribute.<ol>
) or unordered lists (<ul>
).<li>
tags.<form>
tag, includes various input types (text, email, password, checkboxes, radio buttons, dropdowns).for
attribute.action
attribute and individual name
attributes on inputs.disabled
, autofocus
, required
.div
: block-level container.span
: inline container.<style>
for CSS and <script>
for JavaScript within HTML file.<div>
, helps with SEO and maintainability.