Elements, Tags and Attributes
- Element: a fundamental building block of an HTML document, represented by a tag. Elements can contain content, attributes, or both.
- Tag: a keyword surrounded by angle brackets (<>) that defines an element. Tags usually come in pairs, with an opening tag before the content and a closing tag after it.
- Attribute: additional information about an element, specified within the opening tag, such as its id, class, style, or href.
- Content: the text, image, or other media contained within an element.
Building a Simple Web Page
Use the <p> tag for paragraphs and the <h1> through <h6> tags for headings, and the <style> tag to add CSS styling to a simple web page.