HTML Phrase Tags
Address Text
Address Text
- 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 <body> 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.
Example
<!DOCTYPE html> <html> <body> <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> </body> </html>
HTML Document Output
Marked Text
Marked Text
The <mark> tag defines marked text.
Use the <mark>tag if you want to highlight parts of your text.
Example
<!DOCTYPE html> <html> <body> <p>This is a <mark>Marked</mark> text.</p> </body> </html>
HTML Document Output
This is a Marked text.
Quoting Text
Quoting Text
The <blockquote> tag specifies a section that is quoted from another source.
Browsers usually indent <blockquote> elements.
Example
<!DOCTYPE html> <html> <body> <p>Here is a quote from WWF's website:</p> <blockquotecite="http://www.worldwildlife.org/who/index.html"> For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally. <blockquote> </body> </html>
HTML Document Output
Here is a quote from WWF's website:
For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally.
Short Quotations
The <q>...</q>element is used when you want to add a double quote within a sentence.
Example
<!DOCTYPE html> <html> <body> <p>Amit is in Spain, <q>I think I am wrong</q>.</p> </body> </html>
HTML Document Output
Amit is in Spain, I think I am wrong
.
Special Text
Special Terms
The <dfn> tag represents the defining instance of a term in HTML.
The defining instance is often the first use of a term in a document.
Example
<!DOCTYPE html> <html> <body> <p><dfntitle="HyperText Markup Language"> HTML </dfn> is the standard markup language for creating web pages.</p> </body> </html>
HTML Document Output
HTML is the standard markup language for creating web pages.
Text Abbreviation
Text Abbreviation
The <abbr> tag defines an abbreviation or an acronym, like "HTML", "Mr.", "Dec.", "ASAP", "ATM".
Example
<!DOCTYPE html> <html> <body> The<abbr title="World Health Organization"> WHO </abbr> was founded in 1948. </body> </html>
HTML Document Output
The WHO was founded in 1948.
0 Comments: