Intro to CSS

CSS is going to be a life saver if you’re working with an HTML website, as long as you know the basics of HTML. What is CSS? CSS Stands for Cascading Style Sheets CSS defines how to display HTML elements External Style Sheets can save a lot of work for …

CSS Text

Text Color With CSS, a color is most often specified by: a HEX value – like “#ff0000” an RGB value – like “rgb(255,0,0)” a color name – like “red” The default color for your website is defined in the body selector: body {  color: blue; } h1 {  color: #00ff00; } h2 {  color: rgb(255,0,0); } …

CSS Syntax

CSS Syntax A CSS rule set consists of a selector and a declaration block: h1 {color:red; font-size:12px;} “h1” is the selector, it points to the HTML element you want to style. Everything within the curly brackets is the declaration. “color” and “font-size” are the properties. “red” and “12px” are the …

CSS Selectors

CSS Selectors CSS selectors allow you to select and manipulate HTML elements. Selectors are used to fine/select certain HTML elements based on their ID, attributes, classes, values, etc. Element Selector The element selector selects elements based on the element name. For example, by selecting the <p> element, then all the <p> …

CSS Background

Background Color The background-color property specifies the background color of an element. The background color of a page is defined in the body selector: body { background-color: #FFFFFF; } With CSS, a color is most often specified by: a HEX value – like “#ff0000” an RGB value – like “rgb(255,0,0)” …

Basic HTML Examples

Here are some basic HTML examples. Most, if not all, of these tags are used on every HTML web page. Once your HTML document is uploaded, it’ll turn into your first web page once opened in a web browser. HTML Headings Headings are defined with the <h1> to <h6> tags …

Intro to HTML

What is HTML? HTML, you’ve probably heard of it but what is it? HTML stands for Hyper Text Markup Language. It’s a language for describing web pages. The markup language is a set of markup tags and the tags describe document content. HTML Tags HTML tags are keywords (tag names) …

HTML with CSS

Using CSS with HTML will give you more control to be able to style HTML elements. CSS can be added to HTML in three ways: Inline – Using the style attribute in HTML elements Internal – Using the <style> element in the <head> section External – Using an external CSS …

HTML Text Formatting

HTML tags use <b> and <i> tags for text formatting to bold or italic text. These tags are called formatting tags. Below is a complete reference for formatting tags. <b> Defines bold text <i> Defines italic text <u> Defines underlined text <small> Defines smaller text <strong> Defines important text, same …