HTML
HyperText Markup Language
HTML (Hypertext Markup Language) is the standard markup language for creating web pages. It provides headings, paragraphs, lists, tables, images, and other elements that describe the structure of text-based and multimedia content.
Elements
Building Blocks of HTML
An HTML element is a piece of a webpage, such as a paragraph, a heading, or an image. It includes an opening tag, content, and a closing tag. Elements are the "building blocks" used to construct a webpage. Some elements don't need a closing tag because they don't contain content, such as <br> for a line break or <img> for an image.
Attributes
Information for Elements
Attributes provide additional information about elements. They are written inside the opening tag and consist of a name and a value. Example: <img src="photo.jpg" alt="My Cat Bear">
Document Structure
Document Structure
Every HTML document begins with <!DOCTYPE html>, followed by the <html> element, which contains the <head> and <body> sections. This structure tells the browser how to interpret and display the page.