HTML5

html

HTML acronym Tag

Not Supported in HTML5. The <acronym> tag was used in HTML 4 to define an acronym. What to Use Instead? Example An acronym or abbreviation are marked up with the <abbr> tag:The <abbr title="World Health Organization">WHO</abbr> was founded in 1948.

Read more...
html

HTML abbr Tag

Definition and Usage The <abbr> tag defines an abbreviation or an acronym, like "HTML", "Mr.", "Dec.", "ASAP", "ATM". Tip: An abbreviation or an acronym are both shortened versions of something else. Both are often represented as a series of letters. Tips and Notes Tip: Use the global title attribute to show the description of the abbreviation/acronym when you mouse over the <abbr> element. Global Attributes The <abbr> tag supports the Global Attributes in HTML. Default CSS Settings Most browsers will display the <abbr> element with the following default values: Example abbr {  display: inline;}

Read more...
html

HTML Tag

Definition and Usage The <a> tag defines a hyperlink, which is used to link from one page to another. The most important attribute of the <a> element is the href attribute, which indicates the link's destination. By default, links will appear as follows in all browsers: An unvisited link is underlined and blueA visited link is underlined and purpleAn active link is underlined and red Tips and Notes Tip: If the <a> tag has no href attribute, it is only a placeholder for a hyperlink. Tip: The following...

Read more...
html

HTML !DOCTYPE Declaration

Definision and Usage All HTML documents must start with a <!DOCTYPE> declaration. The declaration is not an HTML tag. It is an "information" to the browser about what document type to expect. In HTML 5, the declaration is simple:<!DOCTYPE html> Older HTML Documents In older documents (HTML 4 or XHTML), the declaration is more complicated because the declaration must refer to a DTD (Document Type Definition). HTML 4.01:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> XHTML 1.1:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> Tips and Notes Tip: The <!DOCTYPE> declaration is...

Read more...
html

HTML !–…– Tag

Definition and Usage 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. Tips and Notes You can use the comment tag to "hide" scripts from browsers without support for scripts (so they don't show them as plain text):<script type="text/javascript"><!--function displayMsg() {  alert("Hello...

Read more...