Basic HTML (Part 1)
HTML, which stands for HyperText Markup Language, is a markup language used to create web pages. The web developer uses “HTML tags” to format different parts of the document. For example, you use HTML tags to specify headings, paragraphs, lists, tables, images and much more.
Basic Tags
<HTML> Beginning of an HTML code. Needs to be closed with </HTML>
<HEAD> Used to place the title and also to place JavaScript functions and META Tags. Needs to be closed with </HEAD>.
<TITLE> To place the title of the webpage.Must be closed with </TITLE>.Must be placed within the <HEAD> and </HEAD> tags.
<BODY> Used to place all the main codes. All other tags must be placed within this tag except for <FRAMESET> tags. Must be closed with </BODY>.
<H1> To write text with a header size 1. Must be closed with </H1>. The header values range from <H1> to <H6>.
<B> To bold the text. Need to closed with </B>
<I> To italicize the text. Need to be closed with </I>
<U> To underline the text. Need to be closed with </U>.
<BR> To give a line break. Need not be closed.
<P> To give a paragraph break. Need not be closed.
<HR> To give a horizontal line. Has attributes like size, width and color.
<FONT> To format the font face, size and color of the text. Need to be closed with </FONT>.
<UL> To define an Unordered List. The elements will be displayed as bulleted. Need to be closed with </UL>.
<LI> To display each element within a list. Need not be closed.
<OL> To define an Ordered List, where the elements will be displayed as ordered numbers. (e.g. 1,2,3…).
<DL> To define a Description List. The other tags within this tag are <DT>, meaning Description Term, and <DD>, meaning Description Data. <DL> tag must be closed with a </DL>.