HTML Basics: Elements, Attributes, Structure, Images, Headings, Paragraphs, and Links
Classified in Computers
Written on in English with a size of 1.58 KB
HTML Basics
All HTML documents must start with a document type declaration: <!DOCTYPE html>.
The HTML document itself begins with <html> and ends with </html>.
The visible part of the HTML document is between <body> and </body>.
HTML Elements
Elements consist of a start tag and end tag, with the content inserted in between:
<tagname>Content goes here...</tagname>
HTML Attributes
All HTML elements can have attributes.
Attributes provide additional information about an element.
Attributes are always specified in the start tag.
Attributes usually come in name/value pairs like: name="value"
HTML Structure
<!DOCTYPE html>
<html>
<body>
My First Heading</h1>
My first paragraph.</p>