HTML Doctype

HTML Doctype


Learning Outcomes

How to write comment in HTML?

How to write Acronym/Abbreviation such as to show its full version when you mouse over the respective element.


HTML <!--...--> Tag

The comment tag is used to insert comments in the source code. Comments are not displayed in the browsers.
You can use comments to explain your code, which can help you when you edit the source code at a later date. 
This is especially useful if you have a lot of code.

e.g.
<!--This is a comment. Comments are not displayed in the browser-->
<p>This is a paragraph.</p>


HTML <!DOCTYPE> Declaration

The <!DOCTYPE> declaration must be the very first thing in your HTML document, before the <html> tag.
The <!DOCTYPE> declaration is not an HTML tag;
It is an instruction to the web browser about what version of HTML the page is written in.

e.g. 
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>

<body>
The content of the document......
</body>

</html>


HTML <abbr>/ <acronym> Tag

The <abbr> tag indicates an abbreviation or an acronym, like "WWW" or “WHO".
By marking up abbreviations you can give useful information to browsers, spell checkers, translation systems and search-engine indexers.

e.g.
The <abbr title="World Health Organization">WHO</abbr> was founded in 1948.
Can I get this <acronym title="as soon as possible">ASAP</acronym>?



HTML <address> Tag

The <address> tag defines the contact information for the author/owner of a document or an article.
If the <address> element is inside the <body> element, it represents contact information for the document.
If the <address> element is inside an <article> element, it represents contact information for that article.
The text in the <address> element usually renders in italic. 
Most browsers will add a line break before and after the address element.


e.g.
<address>
Written by <a href="mailto:webmaster@example.com">Jon Doe</a>.<br> 
Visit us at:<br>
Example.com<br>
Box 564, Disneyland<br>
USA
</address>

Comments

Popular posts from this blog

A Javascript Program To make (open new window and close that window) button in your web browser.

A simple running clock in javascript