English 中文(简体)
HTML - Formatting
  • 时间:2024-11-03

HTML - Formatting


Previous Page Next Page  

If you use a word processor, you must be famipar with the abipty to make text bold, itapcized, or underpned; these are just three of the ten options available to indicate how text can appear in HTML and XHTML.

Bold Text

Anything that appears within <b>...</b> element, is displayed in bold as shown below −

Example

<!DOCTYPE html>
<html>

   <head>
      <title>Bold Text Example</title>
   </head>
	
   <body>
      <p>The following word uses a <b>bold</b> typeface.</p>
   </body>
	
</html>

This will produce the following result −