You are on page 1of 2

Write HTML Using Notepad ot Text Edit.

Step 1: Open Notepad

Step 2: Write Some HTML

Step 3: Save the file on your computer.

Select File> Save as in the notepad

Name the file “group1.html” and set the encoding UTF-8(preferred encoding for HTML)

Step 4: View the HTML Page in Your Browser.

Basic Codes

HTML DOCUMENTS
<!DOCTYPE html> -------------------> All documents must start with a document type declaration.

<html> </html>--------------------------------->HTML document itself begins with <html> opening tag; </html> closing tag>>

<body></ body>---------------------------------> visible part of the HTML document

HTML HEADINGS
<h1>This is a Heading</h1>------------------> <h1> defines the most important heading; <h6> defines the least important

Heading

HTML PARAGRAPHS
<p>This is a paragraph</p>------------------>html paragraphs are defined with the <p> tag.

HTML LINKS
<a href=””></a>----------------------------> This is a link <a> is the tag,

HTML images
<img src =”” alt = “” width=”” height=””>
Src- source file; alt- alternative text; width and height are provided as attributes.

HTML buttons
<button></button>
HTML lists
<ul> -unordered/bullet list
<ol> ordered/numbered list
<li> list items
HTML table
<table border=5 style="background:yellow;>

<colgroup>

<col span=1 style="background:blue;">

<col span=1 style="background:red;">


<col span=1 style="background:green;">

</colgroup>

<thread>

<tr>

<td>name</td>

<td>year</td>

<td>age</td>

</tr>

<tr>

<td>manelyn</td>

<td>kyle</td>

<td>jaylord</td>

</tr>

</thread>

Bold = <b> </b>

Italic=<i></i>

HTML BACKGROUND COLOR


<body bgcolor="black" text= "white">

You might also like