about this presentation:
1) this presentation was a quickie for non-tech employees, who wanted a basic understanding of html/css, as it related to a white-label SAAS product;
2) the back-end/front-end definitions relate to the specific application (it's inaccurate if node.js is in the picture)
This document provides an overview of HTML elements and tags. It discusses the basic HTML page structure including <html>, <head>, and <body> tags. It also covers common text formatting tags, links, images, lists, and more. The document emphasizes that HTML provides semantic structure and meaning to content through appropriate tag usage. It concludes with a brief discussion of relative vs. absolute links and FTP for transferring files to a server.
The document provides an overview of CSS foundations including the three layers of web design, what CSS is, CSS syntax, selectors, applying styles, and the cascade. It discusses the structure, style, and behavior layers and how CSS is used to control presentation. Key points covered include the different ways to add CSS rules, CSS selectors like type, ID, class, and descendant selectors, and how specificity and inheritance apply styles. It also reviews CSS properties for styling text, lists, and links.
This document discusses CSS positioning properties. It explains static positioning as the default normal flow layout. It describes float as removing an element from the flow and allowing other content to wrap around it. Relative positioning is defined as positioning an element relative to its static position, while fixed takes an element out of flow and positions it relative to the browser window. Absolute positioning positions an element relative to its first positioned ancestor, removing it from the flow. Examples are given for float, relative, fixed, and absolute. Class exercises provide opportunities to practice these positioning techniques.
The document provides an overview of HTML elements and tags. It discusses the anatomy of elements, including tags, content, and attributes. Common block elements (like <p> and <div>) and inline elements (like <img> and <a>) are described. The document also covers important tags like <a> for links, <table> for tables, and <form> for forms. It explains how to properly structure these elements and includes examples of proper syntax and usage. Key concepts covered include relative vs. absolute links, the <index> file, using colspan to span table columns, and required form attributes like "action" and "name".
This document provides an overview of HTML and CSS topics including:
- A brief history of HTML and CSS standards from 1990 to present.
- Descriptions of common HTML elements like <body>, <head>, <img>, <a>, and lists.
- Explanations of CSS concepts like selectors, properties, units, positioning, and layout fundamentals.
- Details on CSS topics like the box model, centering content, semantic HTML, and flexbox.
The document serves as a course outline or reference for learning HTML and CSS fundamentals.
The document provides an overview of HTML and CSS, including:
- HTML gives content structure and meaning using elements like headings and paragraphs, while CSS is used to style the appearance of content.
- Common HTML terms are explained, like elements, tags, opening/closing tags, and attributes.
- The basic structure of an HTML document is outlined, including the <!DOCTYPE html>, <html>, <head>, and <body> elements.
- Self-closing elements are discussed, which use a single tag like <meta>.
This document discusses HTML elements and CSS positioning properties. It covers common HTML elements like classes, IDs, semantic elements, and entities. It also covers the CSS position property and its values - static, relative, fixed, absolute, and sticky. For each position value, it provides an example of how elements are positioned and the behavior of top, bottom, left, and right properties depending on the position value.
This document discusses HTML elements and CSS positioning properties. It covers common HTML elements like classes, IDs, semantic elements, and entities. It also covers the CSS position property and its values - static, relative, fixed, absolute, and sticky. For each position value, it provides an example of how elements are positioned and the behavior of top, bottom, left, and right properties depending on the position value.
This document discusses various topics related to web development including:
- The difference between static and dynamic web content. Most websites contain both.
- HTML is the markup language used to describe web pages and uses tags to describe different content.
- CSS is used to define styles and presentation rules for HTML elements. CSS rules are defined with selectors and declarations.
- JavaScript can be used to add interactivity to HTML pages and is usually embedded directly into web pages.
- Events trigger JavaScript code to run, such as when a user clicks an element or submits a form. Event handlers define the code that runs in response to events.
This document provides an overview of typography concepts for web design, including:
- Common HTML elements for structuring text and headings
- Using CSS to style text properties like font, size, color, and spacing
- Selecting typefaces based on legibility, readability, and connotation
- Best practices for text on screens like sufficient contrast and line length
This document provides an introduction to key web technologies including HTML, CSS, and JavaScript. It discusses HTML components like documents, tags, and pages which are made up of plain text files with tags to indicate how content should be displayed. It also covers CSS concepts like stylesheets that separate formatting from content. JavaScript is introduced as a scripting language that allows for user interactivity on webpages through components like objects, attributes, methods, and statements.
This document provides an 18 chapter tutorial on CSS (Cascading Style Sheets). It begins with introductory chapters on CSS syntax, classes, IDs, divisions, spans, margins, padding, and text properties. Later chapters cover font properties, anchors, links, backgrounds, borders, lists, positioning, and pseudo elements. Each chapter provides examples and explanations of the CSS concepts and properties covered. The document was created by Vijay Kumar Sharma and includes their contact information. It serves as a comprehensive guide to learning the fundamentals of CSS.
This document provides an introduction and overview of HTML and related web technologies. It begins with an explanation of the internet and World Wide Web, then defines key concepts like URLs, DNS, IP addresses, and HTTP. It proceeds to explain the difference between server-side and client-side coding. The document then covers the basic structure of an HTML document using tags like <html>, <head>, and <body>. It defines common text-level, structural, and media tags. Finally, it discusses relative vs. absolute links and the default styling applied by browsers.
HTML gives structure and meaning to content like headings, paragraphs and images. CSS styles the appearance of content using fonts and colors. This document provides an example of basic HTML code to create a "Hello World" web page. It also explains common HTML terms like elements, tags, attributes and the required structure for all HTML documents.
The document provides an overview of HTML (Hypertext Markup Language) including:
1) HTML is a markup language used to describe web pages using tags to structure content like headings, paragraphs, lists, links, images and tables.
2) Various HTML tags are described like <h1>-<h6> for headings, <p> for paragraphs, <b> for bold, <i> for italic, and <a> for links.
3) Additional HTML concepts covered include internal and external CSS, meta tags, images, tables, frames, iframes and cascading style sheets (CSS) for styling content.
1) The document provides resources for a front-end development session including working files, slides, and an agenda.
2) It reviews HTML tags, CSS selectors, the box model, positioning, and Flexbox.
3) Instructions are given to install Atom plugins and review JavaScript and JQuery before adding an Express server to a webpage.
This document provides an overview of Cascading Style Sheets (CSS) including what CSS is, how it works, the different sources of styles, CSS selectors, properties, positioning, and inheritance. CSS allows separation of document content from page layout and styles, making web page design and maintenance easier. Styles defined in CSS rules cascade from broad to specific and can come from author styles, user stylesheets, or browser defaults.
CSS (Cascading Style Sheets) allows styling and formatting of HTML documents. It provides greater typography and layout controls and easier site maintenance through separation of design (CSS files) from content (HTML files). CSS selectors target specific elements to change properties like colors, backgrounds, fonts etc. Styles can be defined internally, in a separate external CSS file, or inline within elements. Classes allow targeting elements with the same styling. Common CSS properties control text, backgrounds, fonts and other visual aspects of HTML elements.
Introduction to Html5, css, Javascript and Jqueryvaluebound
To customize the look and feel of a web page, it is absolutely necessary to understand what is HTML, why CSS, and what are Javascript and Jquery. Javascript and Jquery help in interactive frontend development.
The document summarizes Workshop #2 on web development hosted by Sohail Asghar and Saad Mustafa. It covers the basics of HTML, CSS, and JavaScript. For HTML, it discusses basic tags like headings, paragraphs, links, images and lists. For CSS, it explains concepts like selectors, colors, backgrounds, borders, fonts, padding, and margins. For JavaScript, it provides introductions to variables, output, data types, and more.
This document provides an overview of CSS (Cascading Style Sheets) basics across 18 chapters. It discusses using internal and external stylesheets, CSS syntax with selectors, properties, and values, inheritance, combining selectors, comments, classes, IDs, divisions, spans, and properties like margins and padding. Key points covered include separating structure from presentation with CSS, linking externally for easier maintenance, the order that styles cascade, and using classes/IDs to target elements.
This document provides an overview of CSS (Cascading Style Sheets) basics across 18 chapters. It discusses using internal and external stylesheets, CSS syntax with selectors, properties, and values, inheritance, combining selectors, comments, classes, IDs, divisions, spans, and properties like margins and padding. Key points covered include separating structure from presentation with CSS, linking externally for easier maintenance, the order that styles cascade, and using classes/IDs to style elements differently.
The document provides an overview of HTML elements and tags for basic webpage structure and formatting. It discusses the <html>, <head>, <body> tags and their uses. It also covers common text formatting tags (<p>, <h1>-<h6>), lists (<ul>, <ol>, <li>), links (<a>), images (<img>), and the differences between relative and absolute links. The document is intended as an introduction to basic HTML tags and elements for building webpage structure.
Raish Khanji GTU 8th sem Internship Report.pdfRaishKhanji
This report details the practical experiences gained during an internship at Indo German Tool
Room, Ahmedabad. The internship provided hands-on training in various manufacturing technologies, encompassing both conventional and advanced techniques. Significant emphasis was placed on machining processes, including operation and fundamental
understanding of lathe and milling machines. Furthermore, the internship incorporated
modern welding technology, notably through the application of an Augmented Reality (AR)
simulator, offering a safe and effective environment for skill development. Exposure to
industrial automation was achieved through practical exercises in Programmable Logic Controllers (PLCs) using Siemens TIA software and direct operation of industrial robots
utilizing teach pendants. The principles and practical aspects of Computer Numerical Control
(CNC) technology were also explored. Complementing these manufacturing processes, the
internship included extensive application of SolidWorks software for design and modeling tasks. This comprehensive practical training has provided a foundational understanding of
key aspects of modern manufacturing and design, enhancing the technical proficiency and readiness for future engineering endeavors.
Ad
More Related Content
Similar to html css js bootstrap framework thisis i (20)
This document discusses HTML elements and CSS positioning properties. It covers common HTML elements like classes, IDs, semantic elements, and entities. It also covers the CSS position property and its values - static, relative, fixed, absolute, and sticky. For each position value, it provides an example of how elements are positioned and the behavior of top, bottom, left, and right properties depending on the position value.
This document discusses various topics related to web development including:
- The difference between static and dynamic web content. Most websites contain both.
- HTML is the markup language used to describe web pages and uses tags to describe different content.
- CSS is used to define styles and presentation rules for HTML elements. CSS rules are defined with selectors and declarations.
- JavaScript can be used to add interactivity to HTML pages and is usually embedded directly into web pages.
- Events trigger JavaScript code to run, such as when a user clicks an element or submits a form. Event handlers define the code that runs in response to events.
This document provides an overview of typography concepts for web design, including:
- Common HTML elements for structuring text and headings
- Using CSS to style text properties like font, size, color, and spacing
- Selecting typefaces based on legibility, readability, and connotation
- Best practices for text on screens like sufficient contrast and line length
This document provides an introduction to key web technologies including HTML, CSS, and JavaScript. It discusses HTML components like documents, tags, and pages which are made up of plain text files with tags to indicate how content should be displayed. It also covers CSS concepts like stylesheets that separate formatting from content. JavaScript is introduced as a scripting language that allows for user interactivity on webpages through components like objects, attributes, methods, and statements.
This document provides an 18 chapter tutorial on CSS (Cascading Style Sheets). It begins with introductory chapters on CSS syntax, classes, IDs, divisions, spans, margins, padding, and text properties. Later chapters cover font properties, anchors, links, backgrounds, borders, lists, positioning, and pseudo elements. Each chapter provides examples and explanations of the CSS concepts and properties covered. The document was created by Vijay Kumar Sharma and includes their contact information. It serves as a comprehensive guide to learning the fundamentals of CSS.
This document provides an introduction and overview of HTML and related web technologies. It begins with an explanation of the internet and World Wide Web, then defines key concepts like URLs, DNS, IP addresses, and HTTP. It proceeds to explain the difference between server-side and client-side coding. The document then covers the basic structure of an HTML document using tags like <html>, <head>, and <body>. It defines common text-level, structural, and media tags. Finally, it discusses relative vs. absolute links and the default styling applied by browsers.
HTML gives structure and meaning to content like headings, paragraphs and images. CSS styles the appearance of content using fonts and colors. This document provides an example of basic HTML code to create a "Hello World" web page. It also explains common HTML terms like elements, tags, attributes and the required structure for all HTML documents.
The document provides an overview of HTML (Hypertext Markup Language) including:
1) HTML is a markup language used to describe web pages using tags to structure content like headings, paragraphs, lists, links, images and tables.
2) Various HTML tags are described like <h1>-<h6> for headings, <p> for paragraphs, <b> for bold, <i> for italic, and <a> for links.
3) Additional HTML concepts covered include internal and external CSS, meta tags, images, tables, frames, iframes and cascading style sheets (CSS) for styling content.
1) The document provides resources for a front-end development session including working files, slides, and an agenda.
2) It reviews HTML tags, CSS selectors, the box model, positioning, and Flexbox.
3) Instructions are given to install Atom plugins and review JavaScript and JQuery before adding an Express server to a webpage.
This document provides an overview of Cascading Style Sheets (CSS) including what CSS is, how it works, the different sources of styles, CSS selectors, properties, positioning, and inheritance. CSS allows separation of document content from page layout and styles, making web page design and maintenance easier. Styles defined in CSS rules cascade from broad to specific and can come from author styles, user stylesheets, or browser defaults.
CSS (Cascading Style Sheets) allows styling and formatting of HTML documents. It provides greater typography and layout controls and easier site maintenance through separation of design (CSS files) from content (HTML files). CSS selectors target specific elements to change properties like colors, backgrounds, fonts etc. Styles can be defined internally, in a separate external CSS file, or inline within elements. Classes allow targeting elements with the same styling. Common CSS properties control text, backgrounds, fonts and other visual aspects of HTML elements.
Introduction to Html5, css, Javascript and Jqueryvaluebound
To customize the look and feel of a web page, it is absolutely necessary to understand what is HTML, why CSS, and what are Javascript and Jquery. Javascript and Jquery help in interactive frontend development.
The document summarizes Workshop #2 on web development hosted by Sohail Asghar and Saad Mustafa. It covers the basics of HTML, CSS, and JavaScript. For HTML, it discusses basic tags like headings, paragraphs, links, images and lists. For CSS, it explains concepts like selectors, colors, backgrounds, borders, fonts, padding, and margins. For JavaScript, it provides introductions to variables, output, data types, and more.
This document provides an overview of CSS (Cascading Style Sheets) basics across 18 chapters. It discusses using internal and external stylesheets, CSS syntax with selectors, properties, and values, inheritance, combining selectors, comments, classes, IDs, divisions, spans, and properties like margins and padding. Key points covered include separating structure from presentation with CSS, linking externally for easier maintenance, the order that styles cascade, and using classes/IDs to target elements.
This document provides an overview of CSS (Cascading Style Sheets) basics across 18 chapters. It discusses using internal and external stylesheets, CSS syntax with selectors, properties, and values, inheritance, combining selectors, comments, classes, IDs, divisions, spans, and properties like margins and padding. Key points covered include separating structure from presentation with CSS, linking externally for easier maintenance, the order that styles cascade, and using classes/IDs to style elements differently.
The document provides an overview of HTML elements and tags for basic webpage structure and formatting. It discusses the <html>, <head>, <body> tags and their uses. It also covers common text formatting tags (<p>, <h1>-<h6>), lists (<ul>, <ol>, <li>), links (<a>), images (<img>), and the differences between relative and absolute links. The document is intended as an introduction to basic HTML tags and elements for building webpage structure.
Raish Khanji GTU 8th sem Internship Report.pdfRaishKhanji
This report details the practical experiences gained during an internship at Indo German Tool
Room, Ahmedabad. The internship provided hands-on training in various manufacturing technologies, encompassing both conventional and advanced techniques. Significant emphasis was placed on machining processes, including operation and fundamental
understanding of lathe and milling machines. Furthermore, the internship incorporated
modern welding technology, notably through the application of an Augmented Reality (AR)
simulator, offering a safe and effective environment for skill development. Exposure to
industrial automation was achieved through practical exercises in Programmable Logic Controllers (PLCs) using Siemens TIA software and direct operation of industrial robots
utilizing teach pendants. The principles and practical aspects of Computer Numerical Control
(CNC) technology were also explored. Complementing these manufacturing processes, the
internship included extensive application of SolidWorks software for design and modeling tasks. This comprehensive practical training has provided a foundational understanding of
key aspects of modern manufacturing and design, enhancing the technical proficiency and readiness for future engineering endeavors.
The Fluke 925 is a vane anemometer, a handheld device designed to measure wind speed, air flow (volume), and temperature. It features a separate sensor and display unit, allowing greater flexibility and ease of use in tight or hard-to-reach spaces. The Fluke 925 is particularly suitable for HVAC (heating, ventilation, and air conditioning) maintenance in both residential and commercial buildings, offering a durable and cost-effective solution for routine airflow diagnostics.
ELectronics Boards & Product Testing_Shiju.pdfShiju Jacob
This presentation provides a high level insight about DFT analysis and test coverage calculation, finalizing test strategy, and types of tests at different levels of the product.
Value Stream Mapping Worskshops for Intelligent Continuous SecurityMarc Hornbeek
This presentation provides detailed guidance and tools for conducting Current State and Future State Value Stream Mapping workshops for Intelligent Continuous Security.
Sorting Order and Stability in Sorting.
Concept of Internal and External Sorting.
Bubble Sort,
Insertion Sort,
Selection Sort,
Quick Sort and
Merge Sort,
Radix Sort, and
Shell Sort,
External Sorting, Time complexity analysis of Sorting Algorithms.
Concept of Problem Solving, Introduction to Algorithms, Characteristics of Algorithms, Introduction to Data Structure, Data Structure Classification (Linear and Non-linear, Static and Dynamic, Persistent and Ephemeral data structures), Time complexity and Space complexity, Asymptotic Notation - The Big-O, Omega and Theta notation, Algorithmic upper bounds, lower bounds, Best, Worst and Average case analysis of an Algorithm, Abstract Data Types (ADT)
The role of the lexical analyzer
Specification of tokens
Finite state machines
From a regular expressions to an NFA
Convert NFA to DFA
Transforming grammars and regular expressions
Transforming automata to grammars
Language for specifying lexical analyzers
Fluid mechanics is the branch of physics concerned with the mechanics of fluids (liquids, gases, and plasmas) and the forces on them. Originally applied to water (hydromechanics), it found applications in a wide range of disciplines, including mechanical, aerospace, civil, chemical, and biomedical engineering, as well as geophysics, oceanography, meteorology, astrophysics, and biology.
It can be divided into fluid statics, the study of various fluids at rest, and fluid dynamics.
Fluid statics, also known as hydrostatics, is the study of fluids at rest, specifically when there's no relative motion between fluid particles. It focuses on the conditions under which fluids are in stable equilibrium and doesn't involve fluid motion.
Fluid kinematics is the branch of fluid mechanics that focuses on describing and analyzing the motion of fluids, such as liquids and gases, without considering the forces that cause the motion. It deals with the geometrical and temporal aspects of fluid flow, including velocity and acceleration. Fluid dynamics, on the other hand, considers the forces acting on the fluid.
Fluid dynamics is the study of the effect of forces on fluid motion. It is a branch of continuum mechanics, a subject which models matter without using the information that it is made out of atoms; that is, it models matter from a macroscopic viewpoint rather than from microscopic.
Fluid mechanics, especially fluid dynamics, is an active field of research, typically mathematically complex. Many problems are partly or wholly unsolved and are best addressed by numerical methods, typically using computers. A modern discipline, called computational fluid dynamics (CFD), is devoted to this approach. Particle image velocimetry, an experimental method for visualizing and analyzing fluid flow, also takes advantage of the highly visual nature of fluid flow.
Fundamentally, every fluid mechanical system is assumed to obey the basic laws :
Conservation of mass
Conservation of energy
Conservation of momentum
The continuum assumption
For example, the assumption that mass is conserved means that for any fixed control volume (for example, a spherical volume)—enclosed by a control surface—the rate of change of the mass contained in that volume is equal to the rate at which mass is passing through the surface from outside to inside, minus the rate at which mass is passing from inside to outside. This can be expressed as an equation in integral form over the control volume.
The continuum assumption is an idealization of continuum mechanics under which fluids can be treated as continuous, even though, on a microscopic scale, they are composed of molecules. Under the continuum assumption, macroscopic (observed/measurable) properties such as density, pressure, temperature, and bulk velocity are taken to be well-defined at "infinitesimal" volume elements—small in comparison to the characteristic length scale of the system, but large in comparison to molecular length scale
its all about Artificial Intelligence(Ai) and Machine Learning and not on advanced level you can study before the exam or can check for some information on Ai for project
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...Infopitaara
A feed water heater is a device used in power plants to preheat water before it enters the boiler. It plays a critical role in improving the overall efficiency of the power generation process, especially in thermal power plants.
🔧 Function of a Feed Water Heater:
It uses steam extracted from the turbine to preheat the feed water.
This reduces the fuel required to convert water into steam in the boiler.
It supports Regenerative Rankine Cycle, increasing plant efficiency.
🔍 Types of Feed Water Heaters:
Open Feed Water Heater (Direct Contact)
Steam and water come into direct contact.
Mixing occurs, and heat is transferred directly.
Common in low-pressure stages.
Closed Feed Water Heater (Surface Type)
Steam and water are separated by tubes.
Heat is transferred through tube walls.
Common in high-pressure systems.
⚙️ Advantages:
Improves thermal efficiency.
Reduces fuel consumption.
Lowers thermal stress on boiler components.
Minimizes corrosion by removing dissolved gases.
4. A static website is a group of self-contained,
individual pages (or page), sent to the browser
from the server one-page-at-a-time.
SERVER
page.html page.html page.html
5. Dyamic web content is built when it is
requested, by the user directly, or
programmatically while a user is on a page
(e.g., facebook updates).
Most websites contain both static and dynamic
SERVER page.html
SQL databases
.net
HTML
8. Client-side (front-end) coding includes HTML, CSS
and Javascript. This just means that our code will
be downloaded from the server and then compiled
entirely in the browser.
SERVER
page.html
.asp
SQL
etc
.net
BROWSER
style.css
script.js
15. Markup Language
A markup language is
a set of markup tags.
The purpose of the tags is to
group and describe page
content.
16. Markup Language
Without any markup to give your content structure,
the browser renders unformatted and unstyled text,
also known as “plain text”.
18. Markup Language
HTML tags give structure and meaning to your content.
“Semantic markup” refers to the use of meaningful tags to
describe content (e.g. using header tags for header
content).
19. Markup Language
Once your content is marked up, the browser applies built-
in default styles to the tags. While you can override these
styles with css, your marked up, non-css styled document
should be readable and have a clear hierarchy.
21. <!DOCTYPE
html>
EXCEPTION
The doctype is not actually a tag,
but a declaration, telling the
browser what kind of html you are
using. The doctype above declares
HTML 5.
25. Nesting
The use of our first three tags (html, head and body),
introduces and important concept: Nesting, which is when
tags “wrap” other tags. When you create markup, you
should indicate nesting by indenting the nested tags with 2
spaces (preferred) or a tab.
<html>
<head> </head>
<body>
<h1></h1>
<p></p>
</body>
</html>
26. Document Hierarchy: Parents, children and siblings
Just as in a genealogy tree, the family hierarchy is described
in terms of relationships. All elements in the document have
a parent (up to ‘document’, which is at the top), and may
have children (nested inside) or siblings (placed alongside).
<parent x>
<child and sibling y> </child and sibling
y>
<child and sibling z> </child and sibling
z>
</parent x>
27. The ‘address’ of an element
The document hierarchy provides us with an ‘address’ for
each element.
in the div with class “client-text-container”, make all of the
h2 elements orange and 24px.
52. Anatomy of an
Element
<html lang=”en”></html>
Most elements can have attributes,
which provides additional
information about the element.
53. Anatomy of an
Element
<div class=”left-nav”></div>
Attributes always follow the same
format: name=”value”. You can
use either single or double
quotes.
54. The essential
attributes
link <link rel=”stylesheet” type-”text/css”
href=”stylesheet/styles.css”>
img <img src=”images/image.jpg”
alt=”Sam”>
a <a href=”http://colum.edu”>My school</a>
57. A stylesheet is a set of rules defining
how an html element will be
“presented” in the browser.
These rules are targeted to
specific elements in the html
document.
The
Stylesheet
58. The “cascade” part of CSS is a set of
rules for resolving conflicts with multiple
CSS rules applied to the same elements.
For example, if there are two rules
defining the color or your h1 elements,
the rule that comes last in the cascade
order will “trump” the other.
The Cascade
61. Most elements will inherit many style
properties from their parent elements by
default.
HTML
<body>
<div>
<ul>
<li></li>
</ul>
</div>
</body>
relationship
parent
parent
parent
of site
of ul and li, child
of li, child of
div
of body
and body
child of ul, div, and body
Inheritance
62. body
make the paragraph 16px, Verdana,
red
p
make the paragraph blue
16px, Verdana,
blue
Inheritance
63. Shortly after styling your first html elements,
you will find yourself wanting more control
over where your styles are applied.
This is where specificity comes in.
Specificity refers to how specific your selector
is in naming an element.
Specificity
64. body
make the paragraph 16px, Verdana, red
p
make the paragraph blue
p.pink
make the paragraph
pink
Specificity
65. HTML
<div id=”plan-2323”>
is some text.</p>
this text.</p>
<p>Here
<p>Hide
<div>
<div id=”plan-2323”>
<p>Here is some text.</p>
<p class=”hideclass”>Hide this text.</p>
<div>
CSS
#plan-2323.hideclass {display: none}
68. Three terms for describing your
styles:
CSS rule
CSS
selector
CSS
declaration
69. Every style is defined by a selector and
a declaration. The declaration contains at
least one property/value pair.Together they
are called a CSS Rule.
selector {property: value;}
declaration
CSS Rule
70. body {font-family: Arial, Helvetica}
p {color: #666666}
h1 {font-size: 24px}
a{color: blue}
The selector associates css rules
with HTML elements.
CSS
Selector
71. p {
color: red
}
The selector is typed in front of the
declaration, with a space separating it and the
opening curly-bracket (aka curly-brace).
Typically, extra spaces and returns are added
as shown for the sake of readability.
CSS
Selector
73. p {
property: value
}
The declaration is always defined in a
property/ value pair. The two are separated by
a colon.
How you define the properties will affect
how HTML elements are displayed.
CSS
Declaration
74. p {
font-family: Arial, sans-serif;
font-size: 14px;
color: #666666;
}
You can apply multiple declarations to a
selector(s) by separating the delcarations
with semi-colons.
CSS
Declaration
77. body {declaration}
p {declaration}
h1 {declaration}
ul {declaration}
The simplest selector is the type selector,
which targets an html element by name.
Type (element) Selectors
80. The essential selector types
(elements)
Primary Body Formatting
Structure Elements Elements
html p em
body br i
h1 – h6 strong
ul b
ol q
a blockquote
img span
div
81. CSS
#logo {declaration}
HTML
<img id=”logo” src=”” alt=””>
An ID is an html attribute that is added to
your html markup. You reference that ID in
your css with a hash.
ID
Selectors
87. IDs vs
Classes
The most important difference between
IDs and classes is that there can be only
one ID on a page, but multiple classes.
An ID is more specific than a class.
An element can have both an ID
and multiple classes.
91. Descendant Selectors
CSS
#sidebar .author {declaration}
HTML
<div id=”sidebar”>
<p class=”author”></p>
</div>
A space between two selectors indicates a
descendant selector. In the example above,
the style is targeted to an element with the
class “author” inside the id “sidebar”.