0% found this document useful (0 votes)
14 views11 pages

Introduction to HTML Document Structure

This document provides an introduction and overview of basic HTML tags and structures. It discusses: - The basic HTML document structure using <html>, <head>, and <body> tags. - Common text formatting tags like <br>, <b>, <i>, and <u>. - How to add attributes to tags to further specify properties, like using bgcolor in the <body> tag. - Tags for headings, centering content, and changing fonts. - The importance of properly nesting tags and maintaining consistent case when coding HTML.

Uploaded by

Suraj Motee
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views11 pages

Introduction to HTML Document Structure

This document provides an introduction and overview of basic HTML tags and structures. It discusses: - The basic HTML document structure using <html>, <head>, and <body> tags. - Common text formatting tags like <br>, <b>, <i>, and <u>. - How to add attributes to tags to further specify properties, like using bgcolor in the <body> tag. - Tags for headings, centering content, and changing fonts. - The importance of properly nesting tags and maintaining consistent case when coding HTML.

Uploaded by

Suraj Motee
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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.

You might also like