0% found this document useful (0 votes)
32 views

HTML Part1

The document provides information about HTML lectures for ICT Grade 10. It defines key terms like data, information, hardware, software, peopleware, and the EDP processing cycle. It also explains HTML elements and tags for headings, paragraphs, lines, rules, and other text formatting. Styles are described using attributes like background-color, color, font, size, and alignment. Common colors are also defined.
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)
32 views

HTML Part1

The document provides information about HTML lectures for ICT Grade 10. It defines key terms like data, information, hardware, software, peopleware, and the EDP processing cycle. It also explains HTML elements and tags for headings, paragraphs, lines, rules, and other text formatting. Styles are described using attributes like background-color, color, font, size, and alignment. Common colors are also defined.
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/ 8

Lectures for ICT Grade 10

Computer is electronics, programmable device that can store, retrieve and process data.

Data is a raw and unprocessed fact.


Information is a processed data.

Elements of EDP (Electronic Data Processing) System


1. Harware – the physical equipment that make up a computer system.
Examples: CPU, keyboard, mouse, printer, monitor, and etc
2. Software – the intangible element composed of programs that instruct the computer
what to do.
Examples: windows, linux, msoffice, paint, games, and etc
3. Peopleware – the people who work with computers and use the information
generated by the computer. Examples: encoders, programmers, students,
teachers, and etc

EDP Processing – the processing of data through the use of computers.


Data Processing – the manipulation of data into a more useful form.

Data Processing Cycle


1. Input – feeding of data or instructions to the CPU in a machine readable format
2. Process – transforming of data into information
3. Output – results of the processed data and instructions
4. Storage – saving of a given data and instructions

What is HTML?
 HTML stands for Hyper Text Markup Language
 HTML is the standard markup language for creating Web pages
 HTML describes the structure of a Web page
 HTML consists of a series of elements
 HTML elements tell the browser how to display the content
 HTML elements label pieces of content such as "this is a heading", "this is a paragraph",
"this is a link", etc.

Text Editor Used


1. Notepad
2. Notepad++
3. HTML Creator (using mobile)
4. File Manager + (using mobile)
Browser used
1. Chrome
2. Internet Explorer / Edge
3. Firefox
4. Safari
5. Opera

HTML Documents
All HTML documents must start with a document type declaration: <!DOCTYPE html>.
The HTML document itself begins with <html> and ends with </html>.
The visible part of the HTML document is between <body> and </body>.

HTML Structure
<!DOCTYPE html>
<html>
<head>
<title>HTML Lectures</title>
</head>
<body>

The content of the document......

</body>
</html>

HTML Page Title


 defines a title in the browser toolbar
 provides or adds a title for the page
 displays a title for the page in search engine-results

Example:
<title>HTML Tutorial</title>

HTML Headings Tag


 HTML headings are titles or subtitles that you want to display on a webpage.
 HTML headings are defined with the <h1> to <h6> tags.
 <h1> defines the most important heading, <h6> defines the least important heading.

Example:
<h1>Sto. Domingo Integrated High School</h1>
HTML Paragraphs Tag
 A paragraph always starts on a new line, and is usually a block of text.
 <p> element defines a paragraph.
 A paragraph always starts on a new line, and browsers automatically add some white
space (a margin) before and after a paragraph.

Example:
<p>SDIHS was founded in 1971.</p>

HTML Break Line


 Elements with no content are called empty elements.
 The <br> tag defines a line break, and is an empty element without a closing tag.

HTML Horizontal Rules


 The <hr> tag defines a thematic break in an HTML page, and is most often displayed as a
horizontal rule.
 The <hr> element is used to separate content (or define a change) in an HTML page:

What is an HTML Element?


 HTML element is defined by a start tag, some content, and an end tag
 <tagname> Content goes here... </tagname>
 The HTML element is everything from the start tag to the end tag

Example:
<h1>My First Heading</h1>
<p>My first paragraph.</p>

HTML Tag Reference


<html> - defines the root of HTML document
<title> - defines the title of the document
<body> - defines the document’s body
<h1> to <h6> - defines headings
<p> - defines a paragraph
<hr> - defines a thematic change in the document
<br> - inserts a single line break
<pre> - defines pre-formatted text
HTML Attributes
 All HTML elements can have attributes
 Attributes provide additional information about elements
 Attributes are always specified in the start tag
 Attributes usually come in name/value pairs like: name="value"

The style Attribute


 The style attribute is used to add styles to an element, such as color, font, size, and
more.
 Setting the style of an HTML element, can be done with the style attribute.

Syntax:
<tagname style = “property:value;”>

Background Color
 The CSS background-color property defines the background color for an HTML element.
Example:
<body style="background-color:powderblue;">
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>

Set background color for two different elements


Example:
<body>
<h1 style="background-color:powderblue;">This is a heading</h1>
<p style="background-color:tomato;">This is a paragraph.</p>
</body>

Text Color
 The CSS color property defines the text color for an HTML element
Example:
<h1 style="color:blue;">This is a heading</h1>
<p style="color:red;">This is a paragraph.</p>

Fonts
 The CSS font-family property defines the font to be used for an HTML element
Example:
<h1 style="font-family:verdana;">This is a heading</h1>
<p style="font-family:courier;">This is a paragraph.</p>
Text Size
 The CSS font-size property defines the text size for an HTML element
Example:
<h1 style="font-size:300%;">This is a heading</h1>
<p style="font-size:160%;">This is a paragraph.</p>

Text Alignment
 The CSS text-align property defines the horizontal text alignment for an HTML element:
Example:
<h1 style="text-align:center;">Centered Heading</h1>
<p style="text-align:center;">Centered paragraph.</p>

Chapter Summary
 Use the style attribute for styling HTML elements
 Use background-color for background color
 Use color for text colors
 Use font-family for text fonts
 Use font-size for text sizes
 Use text-align for text alignment

HTML Formatting Elements


Formatting elements were designed to display special types of text:

<b> - Bold text


<strong> - Important text
<i> - Italic text
<em> - Emphasized text
<mark> - Marked text
<small> - Smaller text
<del> - Deleted text
<ins> - Inserted text
<sub> - Subscript text
<sup> - Superscript text

HTML <b> and <strong> Elements


 The HTML <b> element defines bold text, without any extra importance.
Example:
<b>This text is bold</b>

 The HTML <strong> element defines text with strong importance. The content inside is
typically displayed in bold.
Example:
<strong>This text is important!</strong>
HTML <i> and <em> Elements
 The HTML <i> element defines a part of text in an alternate voice or mood. The content
inside is typically displayed in italic.
Example:
<i>This text is italic</i>

 The HTML <em> element defines emphasized text. The content inside is typically
displayed in italic.
Example:
<em>This text is emphasized</em>

HTML <small> Element


 The HTML <small> element defines smaller text:
Example:
<small>This is some smaller text.</small>

HTML <mark> Element


 The HTML <mark> element defines text that should be marked or highlighted:
Example:
<p>Do not forget to buy <mark>milk</mark> today.</p>

HTML <del> Element


 The HTML <del> element defines text that has been deleted from a document. Browsers
will usually strike a line through deleted text:
Example:
<p>My favorite color is <del>blue</del> red.</p>

HTML <ins> Element


 The HTML <ins> element defines a text that has been inserted into a document.
Browsers will usually underline inserted text:
Example:
<p>My favorite color is <del>blue</del> <ins>red</ins>.</p>

HTML <sub> Element


 The HTML <sub> element defines subscript text. Subscript text appears half a character
below the normal line, and is sometimes rendered in a smaller font. Subscript text can
be used for chemical formulas, like H2O:
Example:
<p>This is <sub>subscripted</sub> text.</p>
HTML <sup> Element
 The HTML <sup> element defines superscript text. Superscript text appears half a
character above the normal line, and is sometimes rendered in a smaller font.
Superscript text can be used for footnotes, like WWW[1]:
Example:
<p>This is <sup>superscripted</sup> text.</p>

HTML COLORS
 HTML colors are specified with predefined color names, or with RGB, HEX, HSL, RGBA, or
HSLA values.

Color Names
 In HTML, a color can be specified by using a color name:

Background Color
 set the background color for HTML elements
Example:
<h1 style="background-color:DodgerBlue;">Core Values</h1>
<p style="background-color:Tomato;">Maka-Diyos, Maka-Tao, Maka-Kalikasan, Maka-
Bansa</p>

Text Color
 You can set the color of text
Example:
<h1 style="color:Tomato;">Core Values</h1>
<p style="color:DodgerBlue;"> Maka-Diyos, Maka-Tao, Maka-Kalikasan, Maka-Bansa
</p>

Border Color
 You can set the color of borders
Example:
<h1 style="border:2px solid Tomato;">Mission</h1>
<h1 style="border:2px solid DodgerBlue;">Vision</h1>
<h1 style="border:2px solid Violet;">Core Values</h1>
RGB Color Values
 In HTML, a color can be specified as an RGB value, using this formula:
rgb(red, green, blue)
 defines the intensity of the color with a value between 0 and 255.

RGBA Color Values


 RGBA color values are an extension of RGB color values with an Alpha channel - which
specifies the opacity for a color.
 An RGBA color value is specified with:
rgba(red, green, blue, alpha)
 The alpha parameter is a number between 0.0 (fully transparent) and 1.0 (not
transparent at all):

HEX Color Values


 In HTML, a color can be specified using a hexadecimal value in the form:
#rrggbb
 Where rr (red), gg (green) and bb (blue) are hexadecimal values between 00 and ff
(same as decimal 0-255).
 For example, #ff0000 is displayed as red, because red is set to its highest value (ff), and
the other two (green and blue) are set to 00.
 Another example, #00ff00 is displayed as green, because green is set to its highest value
(ff), and the other two (red and blue) are set to 00.
 To display black, set all color parameters to 00, like this: #000000.
 To display white, set all color parameters to ff, like this: #ffffff.

HSL Color Values


 In HTML, a color can be specified using hue, saturation, and lightness (HSL) in the form:
hsl(hue, saturation, lightness)
 Hue is a degree on the color wheel from 0 to 360. 0 is red, 120 is green, and 240 is blue.
 Saturation is a percentage value. 0% means a shade of gray, and 100% is the full color.
 Lightness is also a percentage value. 0% is black, and 100% is white.

Examples:
<h1 style="background-color:rgb(255, 99, 71);">Mission</h1>
<h1 style="background-color:rgba(255, 99, 71, 0.5);">Vision</h1>
<h1 style="background-color:#ff6347;">Core Values</h1>
<h1 style="background-color:hsl(9, 100%, 64%);">Homework</h1>
<h1 style="background-color:hsla(9, 100%, 64%, 0.5);">Home</h1>

You might also like