Elements
Elements define structure and content of objects within a page.
Common Elements
Headings <h1> through <h6>
Paragraphs <p>
Anchors <a>
Image <img>
Lists <ul> <ol>
<div>
<span>
Opening Tag
Left Angle Bracket
Right Angle Bracket
Character
Closing Tag
Forward Slash
Properties that provide additional information about an element.
id
class
src
href
Essential Elements
<!doctype>
<HTML>
<head>
<body>
The document type declaration informs web browsers which version of HTML is being used and is placed at the very beginning of the HTML document
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE html>
The opening <html> tag indicates that anything between it and the closing </html> tag is HTML code.
The <head> element is not displayed on the page and is used to outline metadata, including the document title, and links to external files such as your CSS stylesheets.
The <body> tag indicates that anything between it and the closing </body> tag should be shown inside the main brows
A selector designates exactly which element or elements within our HTML to target and apply styles (such as color, size, and position) to.
p {
color: #333;
font-size: 1em;
}
Selector
Property
Value
Advanced Selectors later in the quarter
<a href="http://www.google.com"> Google </a>