Skip to content

Instantly share code, notes, and snippets.

@rhatano
Created February 26, 2012 15:38
Show Gist options
  • Save rhatano/1917420 to your computer and use it in GitHub Desktop.
Save rhatano/1917420 to your computer and use it in GitHub Desktop.
Text Formatting
<hx></hx>
*//Creates a heading. Usually used to describe a portion of text. x-values range from 1-6, 1 being the largest, with 6 being the smallest
<b></b>
*//Creates bold text
<i></i>
*//Creates italic text
<tt></tt>
*//Creates teletype, or typewriter-style text, like this text.
<cite></cite>
*//Creates a citation, usually italic
<em></em>
*//Emphasises a word (with italic or bold)
<strong></strong>
*//Emphasizes a word (with italic or bold). Same-ish as <em>
<font size="x"></font>
*//Sets size of font, x goes from 1 to 7
<font color="x"></font>
*//Sets font colour, using name or hex value
<p></p>
*//Creates a new paragraph
<p align="left">
*//Aligns a paragraph to the left (default), right, or center.
<br>
*//Inserts a line break
<blockquote></blockquote>
*//Indents text from both sides
<dl></dl>
*//Creates a definition list
For use with <dl> :
• <dt>
*//Precedes each definition term
• <dd>
*//Precedes each definition
<ol></ol>
*//Creates a numbered list
<ul></ul>
*//Creates a bulleted list
<li></li>
*//Precedes each list item, and adds a number or symbol depending upon the type of list selected. By default it'll produce a bullet.
<div align="left">
*// A tag used to format large blocks of HTML.
<img src="name">
*// Adds an image. name takes the place of the source of an image; the URL at which the image is located.
Attributes of <img>:
• align="left"
*//Aligns an image: left, right, center; bottom, top, middle
• border="x"
*// Sets size of border around an image in units of pixels.
<hr/>
*//Inserts a horizontal rule. A line that demarcates sections of content. This tag does not need to be closed.
Attributes of </hr>:
• size="x"
*// Sets size (height) of rule in pixels.
• width="x%"
*//Sets width of rule, in percentage or absolute value
• noshade
*//Creates a rule without a shadow
@adu461386118
Copy link


*//Creates a heading. Usually used to describe a portion of text. x-values range from 1-6, 1 being the largest, with 6 being the smallest


*//Creates bold text


*//Creates italic text


*//Creates teletype, or typewriter-style text, like this text.


*//Creates a citation, usually italic


*//Emphasises a word (with italic or bold)


*//Emphasizes a word (with italic or bold). Same-ish as


*//Sets size of font, x goes from 1 to 7


*//Sets font colour, using name or hex value

*//Creates a new paragraph

*//Aligns a paragraph to the left (default), right, or center.
*//Inserts a line break

*//Indents text from both sides
*//Creates a definition list
  For use with <dl> :

  • <dt> 
    *//Precedes each definition term

  • <dd> 
    *//Precedes each definition
    *//Creates a numbered list
      *//Creates a bulleted list
    • *//Precedes each list item, and adds a number or symbol depending upon the type of list selected. By default it'll produce a bullet.
      *// A tag used to format large blocks of HTML. *// Adds an image. name takes the place of the source of an image; the URL at which the image is located.
         Attributes of <img>:
           • align="left"
             *//Aligns an image: left, right, center; bottom, top, middle
      
           • border="x" 
             *// Sets size of border around an image in units of pixels.
      

      *//Inserts a horizontal rule. A line that demarcates sections of content. This tag does not need to be closed.
         Attributes of </hr>:
          • size="x"
            *// Sets size (height) of rule in pixels.
      
          • width="x%" 
            *//Sets width of rule, in percentage or absolute value
      
          • noshade 
            *//Creates a rule without a shadow
      

      @ChristyPatel
      Copy link

      ChristyPatel commented Jul 18, 2022

      For the first time, I thought that the text formatting is so easy. But my idea is totally wrong. Because in every sector if you don't have the proper knowledge then it will not be so easy. So before starting everyone should have basic knowledge. If you still need help with the formatting you can try this https://citemysource.org/apa/ I hope this helps!

      Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment