Internet Publishing About eBook Gallery P1 2 3 4 5 6 7 8 9
HTML-CSS Inline CSS Internal CSS Assignment Examples

HTML-CSS

W3 Basic HTML Styles: Last week we started applying a few 'basic' elements, styles and formatting to make information easier to understand. However, the same layout may appear different, depending on the browser, operating system, and system settings. We also updated 'basic' styles with the 'inline' method.

CSS

Cascading Style Sheets (CSS) are used to format the layout, color, fonts, sizes, spacing between elements, how elements are positioned and laid out, what background images or background colors are to be used for different displays for different devices and screen sizes, and much more... —Wikipedia Logo



Inline CSS

W3 Inline CSS Style: The style 'ATTRIBUTE' is applied nestled inside elements (tags) nestled inside the 'BODY' section. It is used to apply a unique 'style' inside basic HTML tags such as headings and paragraphs, etc., nestled inside the opening and closing body tags. (See the video at 1:09 seconds). Gallery Examples: G1 and G2

Internal CSS

W3 Internal CSS Style:   The style 'ELEMENT' is applied inside the 'HEAD' section and is used to define style information for a single HTML page. The opening and closing style tags can control the body, headings, paragraphs, etc. (See the video at 0:49 seconds). Gallery Examples G3 and G4




W9 Assignment

Inline CSS to Internal CSS

See below and Blackboard for details.

Inline CSS in the 'Body' Section

Snipit of Inline-Style Example

Internal CSS in the 'Head' Section

1

Internal CSS

Step 1: Start applying internal styles to your index file. "Internal" CSS Style (video .49)   is when the 'style' element is applied inside the head section of your index file.   The opening and closing style tags can control the body, headings h1-6, paragraphs p, ordered ol and unordered ul lists li, etc.

NOTE: In Internal CSS: (cascading style sheet) The the opening and closing Style Element is written inside the 'head section' and is used to define the same styles for a 'single' HTML page .

2

Style Element

Step 2: You can customize the appearance of HTML elements, create layout structures, and control the overall design of your web page. Once completed, start removing the 'style' attribute inside the tags inside the 'body' section of your index file. Many styles may be used.

NOTE: Notice the different brackets used?
Notice the font sizes are both in percentages and pixels?
(All images open to full size.)


Snipit of Internal-Style Example

Assignment Examples


WEBSITE NAME

Your Name

"Slogan - Tagline - Quote"

INTRODUCTION

Replace 'Intro' placeholder text:   Lorem ipsum dolor sit amet consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim.

ABOUT

Replace 'About' placeholder text:   Lorem ipsum dolor sit amet consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim.

PURPOSE

Replace 'Purpose' placeholder text:   Lorem ipsum dolor sit amet consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim.

(Chunked text for small devices.)
© 2025 Copyright