Skip to main content

The 10 HTML Codes You Need to Know for Writing on the Web

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.

The 10 HTML Codes You Need to Know for Writing on the Web

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


Quotes & Apostrophes (‘ ’ “ ”)


Your computer keyboard creates straight quotes (or dumb quotes) though what you really need to use are smart quotes (or curly quotes) that can be easily written in HTML. The dumb quotes are best used for writing programming code.

Use double quotation marks (“ and ”) to identify the exact words of a person, to indicate irony or for writing titles of creative works.

  • The last episode of “Friends” was the most-watched program of the year.

  • Thoreau said that “that government is the best which governs the least”.

  • They recalled the “toy safety” buttons as they were contained lead paint.


Use single quotes (‘ and ’) to indicate quotes within quotes. The right curly quotation mark (’) can also be used for smart apostrophe instead of the straight apostrophe.

  • John said, “I told her, ‘the traffic will only get worse.’”

  • Her answer was, “I’ll call you in the next hour or so.”


Prime (′ ″)


While we often use apostrophe (') or quotation marks to indicate units of measurement (like feet or seconds or degrees), the correct symbol is Prime that are likely slightly slanted quotes written as ′ (single) and ″ (double).

  • The height of this Ferrari car is 47′8″

  • I am currently at 27° 11′ 45.315″N, 78° 1′ 27.1668″ W.


Web Typography: Further Reading & Resources



























































Punctuation MarkSymbolHTML EntityCode Decimal
Apostrophe’’
En dash––
Em dash——
Ellipsis……
Single Quote (open)‘‘
Single Quote (close)’’
Double Quote (open)““
Double Quote (close)””

Comments

Popular posts from this blog

7 Data Recovery 2.3.0 Enterprise Serial Keys are Here ! Comprehensive Data Recovery Software for All Your Needs

Recover Your Data Efficiently and Effectively 7 Data Recovery is a complete and capable data recovery software designed to rescue your files under almost any conditions. Whether you've accidentally deleted files, have a damaged or formatted hard drive, or lost data from mobile devices, 7 Data Recovery has you covered. Main Features Accidentally Deleted Files Recovery:  Quickly recover files that have been mistakenly deleted. Complete Recovery from Local & External Drives:  Restore data from both internal and external storage devices. Recover Data from Lost and Deleted Partitions:  Retrieve data from partitions that have been lost or deleted. Recovery of Photos, Images, Videos, and Audio:  Recover various media files from different sources. Mobile Phone Recovery on Windows:  Extract lost data from your mobile devices using a Windows PC. Memory Card Recovery:  Recover files from memory cards used in cameras, phones, and other devices Download and Registra...

Revo Uninstaller Pro 3.0.8 (Latest) Crack is Here ! The Ultimate Solution for Software Removal

Revo Uninstaller Pro helps you effortlessly uninstall software and remove unwanted programs installed on your computer! Even if you face issues uninstalling programs via the default “Windows Programs and Features (Add or Remove Programs)” control panel applet, Revo Uninstaller Pro is your go-to solution. Why Choose Revo Uninstaller Pro? Revo Uninstaller Pro is a faster and more powerful alternative to the “Windows Programs and Features (Add or Remove Programs)” applet! It comes packed with powerful features to ensure complete uninstallation and removal of programs. Key Features of Revo Uninstaller Pro Extended Scanning for Leftovers: Advanced algorithms ensure no remnants are left behind. Real-Time System Monitoring: Track system changes during program installation. Forced Uninstall: Remove remnants of already uninstalled programs. Quick/Multiple Uninstall: Quickly uninstall one or multiple programs in a row. Logs Database Usage: Integrate with a database of installation logs for a be...

Auslogics BoostSpeed Premium 7.3.1.0 Serial Keys are Here ! [Latest]

Auslogics BoostSpeed 7 AusLogics BoostSpeed : the ideal solution to keep your PC running faster, cleaner and error-free. This powerful optimization suite will boost Internet connections, tweak Windows to its peak performance, clean registry and block annoying ads. It’s a great way to keep your computer clean and optimized. Modify Windows settings, file system and services to greatly increase system performance. Increase startup and shutdown speed, disable annoying CD autorun and error reporting features. BoostSpeed will keep monitoring your system for possible optimizations and let you know if such optimizations are possible. You can also run the System Optimization Wizard to periodically optimize your PC. Speed Up PC With BoostSpeed Modify Windows settings, file system and services to greatly increase system performance. Increase startup and shutdown speed, disable annoying CD autorun and error reporting features. BoostSpeed will keep monitoring your...