Sept 5 2024 Learning Material Activity
Sept 5 2024 Learning Material Activity
HTML Headings
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 leasExample Output in the browser:
t important heading.
Example Code:
Expected Output on the Browser:
1
Page
The HTML <br> element defines a line break. Use <br> if you want a line break (a
new line) without starting a new paragraph:
HTML Styles
3
Page
The HTML style attribute is used to add styles to an element, such as color, font,
size, and more.
TVL – Computer Programming (G11) Edison e. Feranil
The property is a CSS property. The value is a CSS value. That will be discuss in
details in the future lesson.
Background Color
The CSS background-color property defines the background color for an HTML
element. In HTML, a color can be specified by using a color name.
Set the background color for a page to powderblue:
Fonts
Fonts is a design for a set of characters. A font is the combination of typeface
and other qualities, such as size, pitch, and spacing.
For example, Times Roman is a typeface that defines the shape of each
character. Within Times Roman, however, there are many fonts to choose from --
different sizes, italic, bold, and so on. (The term font is often used incorrectly as
a synonym for typeface.)
The height of characters in a font is measured in points, each point being
approximately 1/72 inch. The width is measured by pitch, which refers to how many
characters can fit in an inch.
Common pitch values are 10 and 12. A font is said to be fixed pitch if every
character has the same width. If the widths vary depending on the shape of the
character, it is called a proportional font.
5
Font style refers to the size, weight, color and style of typed characters within
Page
a document, in an email or on a webpage. In other words, the font style changes the
appearance of a complete set of characters that make up a typeface or font.
The CSS font-family property defines the font to be used for an HTML element:
Example Code: Expected Output on the Browser
Text Size
The CSS font-size property defines the text size for an HTML element:
Text Alignment
Page
The CSS text-align property defines the horizontal text alignment for an HTML element:
7
Page
8
Page