HTML Headings

Headings:
  • Headings are defined with <h1> to <h6> tags
  • The first and most important heading should always be <h1>
  • The less important your heading becomes, the higher the tag number should be. 
  • Example:
  • <h1>This Is The Most Important Heading, and is the biggest</h1>
  • <h2>This heading isn't as important and is a little smaller than the first</h2>
  • <h3>This heading isn't as important and is a little smaller than the second</h3>
  • <h4>This heading isn't as important and is a little smaller than the third</h4>
  • The lower your tag is in the text, the smaller the text becomes.
  • Don't use headings to make your text bigger or bolder. There are attributes for that. 
<hr>
  • This tag means "horizontal"
  • Using this tag will place a horizontal line within your page
  • Use the <hr> tag to separate content.
  • This tag has no "end tag"
<head> and </head>
  • This is where "Meta Data" will go. 
  • You typically put the title of your page here. 
  • This will not appear within your page because it is "meta data"
  • Meta data means, data about the data.
    • This is information that you can reference to.
    • Information like, title and/or character set. 
  • The <head> element is placed between <html>  start tag and <body> start tag. 
  • Example:

  • <title> is meta data.
    • This will not display on your document but may be displayed in the browser tab. 
  • <meta> is also meta data. 
    • You can use this to put information about your character set and other information about your document. 
    • As the example indicates: begin with (<meta) then the attribute (charset=) and in this case the character set is ("UTF-8") then end the tag with the opposing angle bracket (>).
NOTE: UTF-8 is "Plain Text Encoding". You choose this option after you save your "Text Edit" document. The full description is "Unicode (UTF-8).
NOTE: If you want to view the HTML code of another webpage, right click, select "view page source" or "view source" and another page containing the HTML code will appear.

Comments