Brought to you by : Teaching for life
Basic HTML-LECTURE 1
Introduction to this lesson:
The document structure of the HTML. .html extension. The opening and closing tags. Write some contents to your page. Using the break tag. Attributes. Center tag. Text formatting. Headings Design all into one.
The document structure.
<html> <head></head> <body></body> </html>
The head tag can take the title tag and it is used to display the title on your window. Demonstration done in video.
<br> or <br/>
We use <br> for html. <br/> for xml. <br> tag is used to change lines.
attributes
A tag may tag attributes. There are a number of attributes like table takes border attribute, body bgcolor attribute and much more.
Specifying the attributes: <body bgcolor=red>content</body> Attributes are quoted.
Center tag
<center>xxxxxx</center> This will center the content in between the tags. You can also use the align attribute to align your content. See demonstration.
headings
h1 h2 h3 h4 h5 h6 Are the different heading 1 is the minimum and heading 6 is the maximum. h1 largest and h6 smallest.
Text formatting
<b></b> bold tag <i></i> italic tag <u></u> underlined tag.
<font> tag
You can make use also of the font tag to change your font. Make sure you use the attribute type . Demonstration required.
Note
All tags should be nested. All tag name should be same case. It will not generated an error but it will make you the worst programmer.
Coming next
Linking pages using <a> </a>, the iframe and how to use it.