Difference between revisions of "HTML"
Line 29: | Line 29: | ||
Defines information about documents, including metadata and scripts | Defines information about documents, including metadata and scripts | ||
+ | |||
+ | ===The <body> Tag=== | ||
+ | The body tag follows the head tag. | ||
+ | All visual-structural elements are contained within the body tag. | ||
+ | |||
+ | Headings, paragraphs, lists, quotes, images, and links are just a few of the elements that can be contained within the body tag. | ||
+ | |||
+ | <pre><html> | ||
+ | <head> | ||
+ | </head> | ||
+ | <body> | ||
+ | </body> | ||
+ | </html></pre> | ||
==See also== | ==See also== |
Revision as of 14:47, 24 February 2020
HTML stands for HyperText Markup Language.
Learn Basics
Unlike scripting or programming language that uses scripts to perform functions, a markup language uses tags to identify content.
Example:
To define a paragraph
<p> I'm a paragraph </p>
The <html> Tag
The structure of an HTML document has been compared with that of a sandwich. As a sandwich has two slices of bread, the HTML document has an opening and closing HTML tags.
<html> … </html>
The <head> Tag
Immediately following the opening HTML tag, you'll find the head of the document, which is identified by opening and closing head tags.
The head of an HTML file contains all of the non-visual elements that help make the page work.
<html> <head>…</head> </html>
Defines information about documents, including metadata and scripts
The <body> Tag
The body tag follows the head tag. All visual-structural elements are contained within the body tag.
Headings, paragraphs, lists, quotes, images, and links are just a few of the elements that can be contained within the body tag.
<html> <head> </head> <body> </body> </html>
See also
Advertising: