0% found this document useful (0 votes)
3 views3 pages

Revision Guide- HTML

HTML (HyperText Markup Language) is the standard language for creating web pages. Key elements include tags for document structure, text formatting, images, and tables, with specific tags like <html>, <head>, <body>, <img>, <table>, <tr>, <th>, and <td> serving distinct purposes. Additionally, the bgcolor attribute can be used to set background colors for web pages.

Uploaded by

nyxzcymbrt
Copyright
© © All Rights Reserved
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)
3 views3 pages

Revision Guide- HTML

HTML (HyperText Markup Language) is the standard language for creating web pages. Key elements include tags for document structure, text formatting, images, and tables, with specific tags like <html>, <head>, <body>, <img>, <table>, <tr>, <th>, and <td> serving distinct purposes. Additionally, the bgcolor attribute can be used to set background colors for web pages.

Uploaded by

nyxzcymbrt
Copyright
© © All Rights Reserved
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
You are on page 1/ 3

Year 8 – HTML Revision

What is HTML? HTML stands for HyperText Markup Language. It is the standard language
used to create web pages and websites.

Tags: A piece of code used to add content to a webpage.

• <!DOCTYPE html>: Tells the browser that this is an HTML5 document.

• <html>: The root element of the HTML document.

• <head>: Contains meta-information like the title.

• <body>: Contains the content that appears on the web page.

TEXT FORMATTING HTML Tags:

• <h1> to <h6>: Headings (from largest to smallest). HTML provides six levels of
heading tags used to define headings and subheadings on a webpage.

• <p>: Paragraph - used to define a block of text as a paragraph.


Year 8 – HTML Revision

IMAGE Tag:

• <img> tag is used to display images on a webpage.


• The <img> tag is self-closing – it does not need a closing tag.

Consists of two attributes:

Tables-

The <table> tag in HTML is used to display data in rows and columns.

Structure of a table

<table> — Table Tag

• Purpose: Starts and ends the table.


• It holds all rows, headers, and cells.
Year 8 – HTML Revision

• Like a container for the entire data layout.

<tr> — Table Row

• Purpose: Defines a single row of data in the table.


• You need at least one <tr> for each row.

<th> — Table Header

• Purpose: Defines a heading cell (usually the top row).


• Text appears bold and centered by default.
• Use it for column or row titles.

<td> — Table Data

• Purpose: Defines a regular data cell in the table.


• Used to show actual content (numbers, names, etc.)

Common Tips:

• Always close each tag properly (</td>, </tr>, etc.)


• Use <th> for column titles.
• You can add border="1" to make the table visible.

Background Color in HTML

Bgcolor attribute is used to sets the background color: Following code will set the color to
blue.

You might also like