Important & Useful HTML Codes for Punctuation Marks | Bucklol

10 HTML Codes Every One should Know to use online

The computer keyboard creates “dumb” punctuation marks that may not be acceptable in printed work but are common on web pages. It outputs straight quotation marks (“) while your writing may require curly quotes. You can only type hyphens using the keyboard while an em or en dash may have made your text look more elegant and professional.

HTML Entities for Punctuation
HTML Entities for Punctuation

HTML CODES FOR PUNCTUATION

Your keyboard lacks the keys for inserting the correct punctuation marks but there are simple HTML character codes, on entities, that you can use to mimic the typography of printed books on the web. Here’s a quick guide to using HTML codes for inserting typographically-correct punctuation marks in web writing.

HYPHENS (-)

Hyphens, or half-dashes, are most commonly used to join together two or more words. You can type a hyphen directly without using any HTML codes.

  • The next-generation iPhone is expected to become available in mid-September.
  • The word email contains no hyphen but there’s one inside e-books and e-commerce.

DASHES (– —)

Dashes come in two sizes: the En dash (–) and the Em dash (—). The En dash is longer than a hyphen but shorten than an Em dash.

The En dash (–) is used for suggesting a range of numbers such as time periods, sports scores or page ranges.

  • Our bank is open 8a.m.–8p.m., Monday–Friday.
  • The players are disappointed after losing the match 3–1 to Spain.
  • Abraham Lincoln (1809–1865) was the 16th President of the United States.

The Em dash (—) is used to indicate breaks or pauses in a sentence, to quote sources or to separate a series of words within a phrase.

  • We plan to visit London this summer — if the visa is approved.
  • My three friends — John, Peter and Richards — are moving to New York.
  • “Well done is better than well said.” — Benjamin Franklin.

ELLIPSIS (…)

An ellipsis (…) is a series of three dots (periods) and two spaces in a row and they are used to indicate omission of one or more words in the quoted material. If the ellipses follow a complete sentence, end that sentence with a period, insert a space, then the ellipsis (…) followed by a space.

  • “All the world’s a stage, and all the men and women merely players.…” — Shakespeare
  • “I have a dream … they will not be judged by the color of their skin but by the content of their character.” — Martin Luther King, Jr

To Read this Full Article , Please Visit https://www.labnol.org/internet/html-punctuation-codes/28479/

Facebook Comments

Add a Comment

Your email address will not be published. Required fields are marked *