HTML Structure:
- HTML documents have a basic structure that includes
<!DOCTYPE html>,<html>,<head>, and<body>tags. - Example:
- HTML documents have a basic structure that includes
Elements and Tags:
- HTML is made up of elements, which are defined by tags.
- Tags usually come in pairs: an opening tag
<tag>and a closing tag</tag>. - Example:
Attributes:
- Tags can have attributes that provide additional information about the element.
- Attributes are placed within the opening tag and have a name and value.
- Example:
Common Tags:
- Some common HTML tags include:
<h1>to<h6>for headings<p>for paragraphs<a>for hyperlinks<img>for images<div>and<span>for generic containers
- Example:
- Some common HTML tags include:
Semantic HTML:
- Use semantic tags to improve the readability and accessibility of your HTML.
- Semantic tags include
<header>,<nav>,<section>,<article>,<footer>, etc. - Example: