HTML is reffered to a markup language for describing web documents (web pages).
HTML stands for Hyper Text Markup Language.
A markup language is a set of markup tags(HTML tags)
HTML Tags
HTML tags are keywords surrounded by angle("<>","</>") brackets:
The first tag in a pair is the start tag ("<>"), the second tag is the end tag(" </> ")
The end tag is like the start tag, but with a slash before the tag name
i.e. <a>-</a>,<p>-</p>,<h1>-</h1>.
Web Browsers
Web browsers (Chrome, IE, Firefox, Safari) use to read HTML documents and display them.
HTML Page Structure
Preview of HTML page structure:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>The <abbr class="abbr" title="World Health Organization">WHO</abbr> was Established in 1948.</p>
</body>
</html>
<html>
<head>
</head>
<body>
<p>The <abbr class="abbr" title="World Health Organization">WHO</abbr> was Established in 1948.</p>
</body>
</html>
Example Explained
The <!DOCTYPE> declaration defines the document type to be HTML
The text between <html> and </html> describes an HTML document
The text between <head> and </head> provides information about the document
The text between <title> and </title> provides a title for the document
The text between <body> and </body> describes the visible page content
The <!DOCTYPE> Declaration
It helps the browser to display a web page correctly.
The doctype declaration is not case sensitive. All cases are acceptable:
<!DOCTYPE html> <!doctype html> <!Doctype Html>
HTML Versions
Version Year
HTML 1991
HTML 2.0 1995
HTML 3.2 1997
HTML 4.01 1999
XHTML 2000
HTML5 2012
it's nic
ReplyDelete