Professional Documents
Culture Documents
6o2gq91aq Css
6o2gq91aq Css
<tag>Content</tag>
An HTML element includes both the HTML tag
and everything between the tag (the content).
Anatomy of an Element
<tag>Content</tag>
Tags normally come in airs. The first tag is the
start tag, and the second tag is the end tag.
Anatomy of an Element
<html lang=“en”></html>
Most elements can have attributes, which
provides additional information about the
elements.
Anatomy of an Element
<div class=“left-nav”></div>
<style type="text/css">
• In external CSS, we link the web pages to the
external .css file. It is created by text editor. The CSS
is more efficient method for styling a website. By
editing the .css file, we can change the whole site at
once.
CSS Rule
CSS Selector
CSS declaration
CSS Rule
# ID
. Class
Type(element Selectors)
body {declaration}
p {declaration}
h1 {declaration}
ul {declaration}