Ryan Alvarado

Notes (For self and Others)

HTML & CSS

Some Good Resources for HTML & CSS are:

W3Schools | HTML
W3Schools | CSS

Simple Website

				
					<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<style>
    body {
  background-color: lightblue;
}

h1 {
  color: white;
  text-align: center;
}

p {
  font-family: verdana;
  font-size: 20px;
}
</style>

<h1>This is a Heading</h1>
<p>This is a paragraph.</p>

</body>
</html>
				
			

HTML

The <!DOCTYPE html> declares that document is HTML5 format.

The <html> declares the root element of HTML webpage.

The <head> declares meta information for HTML webpage.

The <title> declares the title of webpage (shows on browsers title bar on webpages tab).

The <body> declares a container for the visiable HTML tags (heading, paragraphs, images, links, etc).

The <h1> declares a heading a the largest size (h1 being the biggest to h6 being the smallest).

The <p> declares a paragraph which is larger amount of text to display.

CSS

The CSS Property background-color sets a background to a specified color

The CSS Property color sets text to a specified color

The CSS Property text-align, aligns text to specified position

The CSS Property font-family sets text to a specific font

The CSS Property font-size sets the size of the font