Web Systems MR
Web Systems MR
STYLE ATTRIBUTES
Style Attribute
-is used to add styles to an element, such as color, font, size, and more. LABEL ELEMENT
Example: <p style="color:red;">This is a red paragraph.</p> - defines a label for many form elements.
- is useful for screen-reader users, because the screen-reader will read out
LANG ATTRIBUTES loud the label when the user focuses on the input element.
-to declare the language of the Web page
-to assist search engines and browsers RADIO BUTTONS
-should always include the <html> tag • The <input type="radio"> defines a radio button.
• The following example specifies English as the language: <html lang="en"> • Radio buttons let a user select ONE of a limited number
• Country codes can also be added: <html lang="en-US"> of choices.
BACKGROUND-COLOR
-Background-color property specifies the background color of an element
COLOR NAMES
-In CSS, a color can be specified by using a predefined color name
CSS Border Color
<h1 style="border:2px solid DodgerBlue;">Hello World</h1>
-Use the padding property to add space inside the
COMMENTS text field.
-used to explain the code, and may help when you edit the source code at a later date. Tip: When you have many inputs after each other,
-are Ignored by browsers. you might also want to add some margin
-A CSS comment is placed inside the <style> element, and starts with /* and ends with */
Example: /* This is a single-line comment */
BACKGROUND-COLOR OPACITY
Opacity property
-specifies the opacity/transparency of an element
-It can take a value from 0.0-1.0.
-The lower value, the more transparent
div {
background-color: green;
STYLING A INPUT BUTTONS
opacity: 0.3;
}
BACKGROUND PROPERTIES
Background: Sets all the background properties in one declaration
Background-attachment: Sets whether a background image is fixed or scrolls with the
rest of the page
Background-clip: Specifies the painting area of the background
Background-color: Sets the background color of an element
Background-image: Sets the background image for an element
Background-origin: Specifies where the background image(s) is/are positioned NAVIGATION BAR
Background-position: Sets the starting position of a background image -contains a list of links to help visitors navigating through your website.
Background-repeat: Sets how a background image will be repeated
Background-size: Specifies the size of the background image(s)