Skip to main content

PRACTICAL 3_1

PRACTICAL 1

Study and Learn CSS 2.0 along with necessary attribute


THEORY

In this webpage,CSS 2.0 attributes are used to make a creative design.
Basically,there are three types of CSS:
  1. External CSS: An external style sheet is used to define the style for many HTML pages. 
  2. Inline CSS: An inline CSS is used to apply a unique style to a single HTML element.
  3. Internal CSS: An internal CSS is used to define a style for a single HTML page.

IMPORTANT TAGS & ATTRIBUTES:
  • <style>: Use the HTML<style> element to define internal CSS.
  • .class: The class selector selects elements with a specific class attribute.To select elements with a specific class, write a period (.) character, followed by the name of the class.
  • #id:The selector selects the element with specific id.
  • font-size: The font-size property sets the size of a font.
  • text-align:The text-align property specifies the horizontal alignment of text in an element.



SCREENSHOT WEB PAGE:









NAME:AYUSH SINGLA
ID:18CE122

Comments