What is HTML Styles – CSS

HTML Styles – CSS CSS stands for Cascading Style Sheets. CSS saves a lot of work. It can control the layout of multiple web pages all at once. What is CSS? Cascading Style Sheets (CSS) is used to format the layout of a webpage. With CSS, you can control the color, font, the size of text, … Read more

HTML HSL and HSLA Colors

HSL stands for hue, saturation, and lightness. HSLA color values are an extension of HSL with an Alpha channel (opacity). 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, … Read more


A hexadecimal color is specified with: #RRGGBB, where the RR (red), GG (green) and BB (blue) hexadecimal integers specify the components of the color. 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 … Read more

HTML RGB and RGBA Colors

An RGB color value represents RED, GREEN, and BLUE light sources. An RGBA color value is an extension of RGB with an Alpha channel (opacity). RGB Color Values In HTML, a color can be specified as an RGB value, using this formula: rgb(red, green, blue) Each parameter (red, green, and blue) defines the intensity of the color … Read more

What is HTML Colors

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: Tomato, Orange, DodgerBlue, MediumSeaGreen, Gray, SlateBlue, Violet, LightGray. Background Color You can set the background color for HTML elements: [html]<hBest Answertyle="background-color:DodgerBlue;">Hello World</h1> <p … Read more

What is HTML Comments

HTML Comments HTML comments are not displayed in the browser, but they can help document your HTML source code. HTML Comment Tag You can add comments to your HTML source by using the following syntax: [html]<!– Write your comments here –>[/html] Notice that there is an exclamation point (!) in the start tag, but not in … Read more

What is HTML Quotation and Citation Elements

HTML Quotation and Citation Elements In HTML, we have different elements and methods to represent quotations and cite text. Some of the popular HTML elements for quotation are <q>, <blockquotes>, <abbr>. In this chapter we will go through the <blockquote>,<q>, <abbr>, <address>, <cite>, and <bdo> HTML elements. HTML <blockquote> for Quotations The HTML <blockquote> element defines a section that is quoted from another source. Browsers … Read more

What is HTML Text Formatting

HTML Text Formatting HTML contains several elements for defining text with a special meaning. Bellow have some example: This text is bold This text is italic This is subscript and superscript 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 … Read more

What is HTML Styles

HTML Styles The HTML style attribute is used to add styles to an element, such as color, font, size, and more. The HTML Style Attribute Setting the style of an HTML element, can be done with the style attribute. The HTML style attribute has the following syntax: [html]<tagname style="property:value;">[/html] The property is a CSS property. The value is a CSS value. Background Color The CSS background-color property … Read more

Why use HTML <'pre'> Element

In HTML, spaces and new lines are ignored: [html]<p> My Bonnie lies over the ocean. My Bonnie lies over the sea. My Bonnie lies over the ocean. Oh, bring back my Bonnie to me. </p>[/html] Display in your Browser: My Bonnie lies over the ocean. My Bonnie lies over the sea. My Bonnie lies over … Read more