Difference between revisions of "HTML"

From wikieduonline
Jump to navigation Jump to search
Line 12: Line 12:
  
  
 +
===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.
 
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.
  
Line 17: Line 18:
 
  …
 
  …
 
</html></pre>
 
</html></pre>
 +
 +
===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.
 +
 +
<pre><html>
 +
  <head>…</head>
 +
</html></pre>
 +
 +
Defines information about documents, including metadata and scripts
  
 
==See also==
 
==See also==

Revision as of 14:43, 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

See also

Advertising: