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)
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.
HTML defines the structure and layout of a web page. It uses elements like <h1> for headings and <p> for paragraphs to structure content. CSS can be used to style HTML elements by specifying properties for things like color, font, size, and layout. JavaScript can dynamically update HTML content and attributes, adding interactivity to web pages. It is one of the core languages all web developers must learn along with HTML and CSS.
HTML defines the structure and layout of a web page. It uses elements like <h1> for headings and <p> for paragraphs to structure content. CSS can be used to style HTML elements by specifying properties for things like color, font, size, and layout. JavaScript can dynamically update HTML content and attributes, adding interactivity to web pages. It is one of the core languages all web developers must learn along with HTML and CSS.
HTML and CSS document that discusses:
1) HTML is the markup language used to define the structure and layout of web pages. CSS is used to style and lay out HTML elements.
2) The document covers HTML basics like tags for headings, paragraphs, and tables. It also discusses how to attach CSS styles using internal and external style sheets.
3) The document provides an overview of HTML5, the latest version, and CSS3, which introduces new selectors, properties, and multimedia capabilities.
The document provides an overview of full stack web development, including front-end technologies like HTML, CSS, JavaScript and back-end technologies like PHP, Java, and Python. It discusses how websites are structured and hosted, how web pages are built using HTML, and how text editors can be used to write HTML code. It also covers common web development terms like protocols, URLs, and how CSS is used to style web pages.
The document discusses various topics related to HTML, CSS, and client-side coding including: CSS selectors, properties, cascade, media queries, animations. It covers CSS syntax, selectors like type, ID, class, attribute, and pseudo selectors. It describes the box model and properties for text, background, positioning. It also explains cascade, specificity, inheritance in CSS and how media queries allow styling for different devices.
The document provides an agenda for a workshop on HTML, CSS, and putting them together. It covers HTML topics like semantic tags, comments, and best practices. It then discusses CSS topics such as IDs vs classes, floats, shorthand, and putting HTML and CSS together with project structure and layouts. The workshop aims to give an introduction to HTML, CSS, and how to structure websites using these languages.
The document provides an introduction to HTML and CSS terms and concepts, including:
- Common HTML terms like elements, tags, attributes, and how to structure an HTML document
- Common CSS terms like selectors, properties, and values
- How to link an external CSS stylesheet to an HTML document
Ever wondered how google.com was made? How our own college website is made?🤔
The recipe is simple: Web Development is all you need for creating such awesome and interactive websites. Just add HTML, CSS and JavaScript to the mix and watch the magic happen!
Want to learn this all but don’t know where to start?
Worry not, for GDSC VJTI hereby presents Introduction to Web Development!🌐
Ever wondered how google.com was made? How our own college website is made?🤔
The recipe is simple: Web Development is all you need for creating such awesome and interactive websites. Just add HTML, CSS and JavaScript to the mix and watch the magic happen!
Want to learn this all but don’t know where to start?
Worry not, for GDSC VJTI hereby presents Introduction to Web Development!
Ever wondered how google.com was made? How our own college website is made?🤔
The recipe is simple: Web Development is all you need for creating such awesome and interactive websites. Just add HTML, CSS and JavaScript to the mix and watch the magic happen!
Want to learn this all but don’t know where to start?
Worry not, for GDSC VJTI hereby presents Introduction to Web Development!🌐
GDI Seattle Intro to HTML and CSS - Class 1Heather Rock
The document provides an introduction to HTML and CSS for beginners. It discusses the basic structure of an HTML document using elements like <html>, <head>, <body>, <h1>, <p>, and <img>. It explains that HTML provides the structure and layout of a web page, while CSS controls the styling and presentation. The document then demonstrates how to add headings, paragraphs, line breaks, lists, tables, and other basic elements to an HTML page.
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2Erin M. Kidwell
The document provides instructions for downloading Aptana Studio and provides a brandery airport code. It includes the following information:
1. It instructs readers to download Aptana Studio from the provided URL if they have not already done so.
2. It provides a brandery airport code of "brandery123".
3. The document does not contain any other information.
The document discusses HTML programming and introduces various HTML concepts. It describes HTML editors and their features like syntax highlighting, auto-completion, and error detection. Popular HTML editors like Notepad, Word, Dreamweaver, Atom, and Visual Studio code are listed. The basics of CSS like syntax, types of style sheets, selectors, and positioning elements are explained. HTML elements like headings, paragraphs, and images can be styled, grouped, and nested. Properties like visibility and display control element visibility. Transitions in CSS allow animated changes to elements.
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.
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>.
Tim Berners-Lee imagined the World Wide Web as a space for interconnecting documents through hyperlinks. He created HTML to provide the structure and formatting for documents, CSS for presentation, and JavaScript for interactivity. These three languages work together to display content on the web. HTML uses tags to mark up content like paragraphs, headings, and images. CSS controls how content is styled and presented using selectors, rules and property-value pairs. It can be linked via external stylesheets, embedded in HTML, or used inline. JavaScript adds interactive behaviors to webpages.
This document provides an overview of HTML elements and tags for creating web pages. It discusses common HTML tags like headings, paragraphs, links, images, lists, forms, and tables. It also covers CSS for styling HTML elements and JavaScript for adding interactivity. The document is intended as a tutorial for learning basic HTML.
This document provides an introduction to CSS (Cascading Style Sheets). It defines CSS, explains why it is used, and describes the different ways to implement CSS styles including inline, internal, and external stylesheets. It also covers important CSS concepts like the syntax, selectors, grouping selectors, and comments. CSS is used to control the presentation and layout of HTML elements, separate styling from content, and allow styling to be applied across multiple pages from one stylesheet file.
The document provides an introduction to CSS including an overview of what CSS is, why it is used, and its basic syntax and structure. CSS (Cascading Style Sheets) is a stylesheet language used to describe the presentation of structured documents written in HTML or XML. It allows separation of document content from document presentation and formatting. CSS saves development time, makes pages load faster, and allows easier page maintenance.
This document provides an overview of HTML, CSS, and JavaScript. It begins with an introduction to HTML, describing its purpose, basic syntax and structure, and common elements. It then discusses CSS, explaining what style sheets are, how they are used to separate presentation from content, and basic CSS syntax including selectors and declarations. The document provides examples of using CSS to style text, backgrounds, and layout. It also covers CSS properties for fonts, colors, positioning, and boxes. Finally, it mentions JavaScript briefly at the end of the agenda.
This document provides an overview of CSS (Cascading Style Sheets) including its advantages over HTML for separating content from presentation, basic CSS syntax, selectors, properties and values, and ways to apply CSS stylesheets. It describes how CSS allows defining styles in external or embedded stylesheets that can be applied to HTML and XML pages, and how CSS styles cascade based on specificity.
This document discusses HTML and CSS. It provides an overview of HTML, describing it as a markup language used to define web pages using tags. It gives examples of basic HTML tags and page structure. It also covers CSS, explaining that CSS is used to style and lay out HTML elements, including different ways of inserting CSS like inline, internal, and external stylesheets. The document provides examples of HTML code and CSS code.
Electrical and Electronics Engineering: An International Journal (ELELIJ)elelijjournal653
Call For Papers...!!!
Electrical and Electronics Engineering: An International Journal (ELELIJ)
Web page link: https://wireilla.com/engg/eeeij/index.html
Submission Deadline: June 08, 2025
Submission link: [email protected]
Contact Us: [email protected]
The document discusses various topics related to HTML, CSS, and client-side coding including: CSS selectors, properties, cascade, media queries, animations. It covers CSS syntax, selectors like type, ID, class, attribute, and pseudo selectors. It describes the box model and properties for text, background, positioning. It also explains cascade, specificity, inheritance in CSS and how media queries allow styling for different devices.
The document provides an agenda for a workshop on HTML, CSS, and putting them together. It covers HTML topics like semantic tags, comments, and best practices. It then discusses CSS topics such as IDs vs classes, floats, shorthand, and putting HTML and CSS together with project structure and layouts. The workshop aims to give an introduction to HTML, CSS, and how to structure websites using these languages.
The document provides an introduction to HTML and CSS terms and concepts, including:
- Common HTML terms like elements, tags, attributes, and how to structure an HTML document
- Common CSS terms like selectors, properties, and values
- How to link an external CSS stylesheet to an HTML document
Ever wondered how google.com was made? How our own college website is made?🤔
The recipe is simple: Web Development is all you need for creating such awesome and interactive websites. Just add HTML, CSS and JavaScript to the mix and watch the magic happen!
Want to learn this all but don’t know where to start?
Worry not, for GDSC VJTI hereby presents Introduction to Web Development!🌐
Ever wondered how google.com was made? How our own college website is made?🤔
The recipe is simple: Web Development is all you need for creating such awesome and interactive websites. Just add HTML, CSS and JavaScript to the mix and watch the magic happen!
Want to learn this all but don’t know where to start?
Worry not, for GDSC VJTI hereby presents Introduction to Web Development!
Ever wondered how google.com was made? How our own college website is made?🤔
The recipe is simple: Web Development is all you need for creating such awesome and interactive websites. Just add HTML, CSS and JavaScript to the mix and watch the magic happen!
Want to learn this all but don’t know where to start?
Worry not, for GDSC VJTI hereby presents Introduction to Web Development!🌐
GDI Seattle Intro to HTML and CSS - Class 1Heather Rock
The document provides an introduction to HTML and CSS for beginners. It discusses the basic structure of an HTML document using elements like <html>, <head>, <body>, <h1>, <p>, and <img>. It explains that HTML provides the structure and layout of a web page, while CSS controls the styling and presentation. The document then demonstrates how to add headings, paragraphs, line breaks, lists, tables, and other basic elements to an HTML page.
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2Erin M. Kidwell
The document provides instructions for downloading Aptana Studio and provides a brandery airport code. It includes the following information:
1. It instructs readers to download Aptana Studio from the provided URL if they have not already done so.
2. It provides a brandery airport code of "brandery123".
3. The document does not contain any other information.
The document discusses HTML programming and introduces various HTML concepts. It describes HTML editors and their features like syntax highlighting, auto-completion, and error detection. Popular HTML editors like Notepad, Word, Dreamweaver, Atom, and Visual Studio code are listed. The basics of CSS like syntax, types of style sheets, selectors, and positioning elements are explained. HTML elements like headings, paragraphs, and images can be styled, grouped, and nested. Properties like visibility and display control element visibility. Transitions in CSS allow animated changes to elements.
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.
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>.
Tim Berners-Lee imagined the World Wide Web as a space for interconnecting documents through hyperlinks. He created HTML to provide the structure and formatting for documents, CSS for presentation, and JavaScript for interactivity. These three languages work together to display content on the web. HTML uses tags to mark up content like paragraphs, headings, and images. CSS controls how content is styled and presented using selectors, rules and property-value pairs. It can be linked via external stylesheets, embedded in HTML, or used inline. JavaScript adds interactive behaviors to webpages.
This document provides an overview of HTML elements and tags for creating web pages. It discusses common HTML tags like headings, paragraphs, links, images, lists, forms, and tables. It also covers CSS for styling HTML elements and JavaScript for adding interactivity. The document is intended as a tutorial for learning basic HTML.
This document provides an introduction to CSS (Cascading Style Sheets). It defines CSS, explains why it is used, and describes the different ways to implement CSS styles including inline, internal, and external stylesheets. It also covers important CSS concepts like the syntax, selectors, grouping selectors, and comments. CSS is used to control the presentation and layout of HTML elements, separate styling from content, and allow styling to be applied across multiple pages from one stylesheet file.
The document provides an introduction to CSS including an overview of what CSS is, why it is used, and its basic syntax and structure. CSS (Cascading Style Sheets) is a stylesheet language used to describe the presentation of structured documents written in HTML or XML. It allows separation of document content from document presentation and formatting. CSS saves development time, makes pages load faster, and allows easier page maintenance.
This document provides an overview of HTML, CSS, and JavaScript. It begins with an introduction to HTML, describing its purpose, basic syntax and structure, and common elements. It then discusses CSS, explaining what style sheets are, how they are used to separate presentation from content, and basic CSS syntax including selectors and declarations. The document provides examples of using CSS to style text, backgrounds, and layout. It also covers CSS properties for fonts, colors, positioning, and boxes. Finally, it mentions JavaScript briefly at the end of the agenda.
This document provides an overview of CSS (Cascading Style Sheets) including its advantages over HTML for separating content from presentation, basic CSS syntax, selectors, properties and values, and ways to apply CSS stylesheets. It describes how CSS allows defining styles in external or embedded stylesheets that can be applied to HTML and XML pages, and how CSS styles cascade based on specificity.
This document discusses HTML and CSS. It provides an overview of HTML, describing it as a markup language used to define web pages using tags. It gives examples of basic HTML tags and page structure. It also covers CSS, explaining that CSS is used to style and lay out HTML elements, including different ways of inserting CSS like inline, internal, and external stylesheets. The document provides examples of HTML code and CSS code.
Electrical and Electronics Engineering: An International Journal (ELELIJ)elelijjournal653
Call For Papers...!!!
Electrical and Electronics Engineering: An International Journal (ELELIJ)
Web page link: https://wireilla.com/engg/eeeij/index.html
Submission Deadline: June 08, 2025
Submission link: [email protected]
Contact Us: [email protected]
First Review PPT gfinal gyft ftu liu yrfut goSowndarya6
CyberShieldX provides end-to-end security solutions, including vulnerability assessment, penetration testing, and real-time threat detection for business websites. It ensures that organizations can identify and mitigate security risks before exploitation.
Unlike traditional security tools, CyberShieldX integrates AI models to automate vulnerability detection, minimize false positives, and enhance threat intelligence. This reduces manual effort and improves security accuracy.
Many small and medium businesses lack dedicated cybersecurity teams. CyberShieldX provides an easy-to-use platform with AI-powered insights to assist non-experts in securing their websites.
Traditional enterprise security solutions are often expensive. CyberShieldX, as a SaaS platform, offers cost-effective security solutions with flexible pricing for businesses of all sizes.
Businesses must comply with security regulations, and failure to do so can result in fines or data breaches. CyberShieldX helps organizations meet compliance requirements efficiently.
本資料「To CoT or not to CoT?」では、大規模言語モデルにおけるChain of Thought(CoT)プロンプトの効果について詳しく解説しています。
CoTはあらゆるタスクに効く万能な手法ではなく、特に数学的・論理的・アルゴリズム的な推論を伴う課題で高い効果を発揮することが実験から示されています。
一方で、常識や一般知識を問う問題に対しては効果が限定的であることも明らかになりました。
複雑な問題を段階的に分解・実行する「計画と実行」のプロセスにおいて、CoTの強みが活かされる点も注目ポイントです。
This presentation explores when Chain of Thought (CoT) prompting is truly effective in large language models.
The findings show that CoT significantly improves performance on tasks involving mathematical or logical reasoning, while its impact is limited on general knowledge or commonsense tasks.
This study will provide the audience with an understanding of the capabilities of soft tools such as Artificial Neural Networks (ANN), Support Vector Regression (SVR), Model Trees (MT), and Multi-Gene Genetic Programming (MGGP) as a statistical downscaling tool. Many projects are underway around the world to downscale the data from Global Climate Models (GCM). The majority of the statistical tools have a lengthy downscaling pipeline to follow. To improve its accuracy, the GCM data is re-gridded according to the grid points of the observed data, standardized, and, sometimes, bias-removal is required. The current work suggests that future precipitation can be predicted by using precipitation data from the nearest four grid points as input to soft tools and observed precipitation as output. This research aims to estimate precipitation trends in the near future (2021-2050), using 5 GCMs, for Pune, in the state of Maharashtra, India. The findings indicate that each one of the soft tools can model the precipitation with excellent accuracy as compared to the traditional method of Distribution Based Scaling (DBS). The results show that ANN models appear to give the best results, followed by MT, then MGGP, and finally SVR. This work is one of a kind in that it provides insights into the changing monsoon season in Pune. The anticipated average precipitation levels depict a rise of 300–500% in January, along with increases of 200-300% in February and March, and a 100-150% increase for April and December. In contrast, rainfall appears to be decreasing by 20-30% between June and September.
Impurities of Water and their Significance.pptxdhanashree78
Impart Taste, Odour, Colour, and Turbidity to water.
Presence of organic matter or industrial wastes or microorganisms (algae) imparts taste and odour to water.
Presence of suspended and colloidal matter imparts turbidity to water.
PREDICTION OF ROOM TEMPERATURE SIDEEFFECT DUE TOFAST DEMAND RESPONSEFOR BUILD...ijccmsjournal
In order to evaluate side-effect of power limitation due to the Fast Automated Demand Response
(FastADR) for building air-conditioning facilities, a prediction model on short time change of average
room temperature has been developed. A room temperature indexis defined as a weighted average of the
entire building for room temperature deviations from the setpoints. The index is assumed to be used to
divide total FastADRrequest to distribute power limitation commands to each building.In order to predict
five-minute-change of the index, our combined mathematical model of an auto regression (AR) and a
neural network (NN) is proposed.In the experimental results, the combined model showedthe root mean
square error (RMSE) of 0.23 degrees, in comparison with 0.37 and 0.26 for conventional single NN and AR
models, respectively. This result is satisfactory prediction for required comfort of approximately 1 degree
Celsius allowance.
May 2025 - Top 10 Read Articles in Artificial Intelligence and Applications (...gerogepatton
The International Journal of Artificial Intelligence & Applications (IJAIA) is a bi monthly open access peer-reviewed journal that publishes articles which contribute new results in all areas of the Artificial Intelligence & Applications (IJAIA). It is an international journal intended for professionals and researchers in all fields of AI for researchers, programmers, and software and hardware manufacturers. The journal also aims to publish new attempts in the form of special issues on emerging areas in Artificial Intelligence and applications.
Third Review PPT that consists of the project d etails like abstract.Sowndarya6
CyberShieldX is an AI-driven cybersecurity SaaS web application designed to provide automated security analysis and proactive threat mitigation for business websites. As cyber threats continue to evolve, traditional security tools like OpenVAS and Nessus require manual configurations and lack real-time automation. CyberShieldX addresses these limitations by integrating AI-powered vulnerability assessment, intrusion detection, and security maintenance services. Users can analyze their websites by simply submitting a URL, after which CyberShieldX conducts an in-depth vulnerability scan using advanced security tools such as OpenVAS, Nessus, and Metasploit. The system then generates a detailed report highlighting security risks, potential exploits, and recommended fixes. Premium users receive continuous security monitoring, automatic patching, and expert assistance to fortify their digital infrastructure against emerging threats. Built on a robust cloud infrastructure using AWS, Docker, and Kubernetes, CyberShieldX ensures scalability, high availability, and efficient security enforcement. Its AI-driven approach enhances detection accuracy, minimizes false positives, and provides real-time security insights. This project will cover the system's architecture, implementation, and its advantages over existing security solutions, demonstrating how CyberShieldX revolutionizes cybersecurity by offering businesses a smarter, automated, and proactive defense mechanism against ever-evolving cyber threats.
Rearchitecturing a 9-year-old legacy Laravel application.pdfTakumi Amitani
An initiative to re-architect a Laravel legacy application that had been running for 9 years using the following approaches, with the goal of improving the system’s modifiability:
・Event Storming
・Use Case Driven Object Modeling
・Domain Driven Design
・Modular Monolith
・Clean Architecture
This slide was used in PHPxTKY June 2025.
https://phpxtky.connpass.com/event/352685/
This presentation highlights project development using software development life cycle (SDLC) with a major focus on incorporating research in the design phase to develop innovative solution. Some case-studies are also highlighted which makes the reader to understand the different phases with practical examples.
En esta presentación se encuentra la explicación sobre la tomografía Axial Computarizada, se habla sobre su historia, partes, operación general y especifica del equipo, tipos de densidades y sus aplicaciones más comunes y las innovadoras.
This document provides information about the Fifth edition of the magazine "Sthapatya" published by the Association of Civil Engineers (Practicing) Aurangabad. It includes messages from current and past presidents of ACEP, memories and photos from past ACEP events, information on life time achievement awards given by ACEP, and a technical article on concrete maintenance, repairs and strengthening. The document highlights activities of ACEP and provides a technical educational article for members.
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”.