Raj Acharya presents details of his internship project on front-end web development. He completed a month-long training program at BIRLA Institute of Technology in Jaipur, India, where he learned HTML, CSS, and JavaScript. He describes the basic concepts and elements of HTML, including headings, paragraphs, links, images, tables, and lists. He also provides an overview of CSS and how it is used to style web pages.
CNC Web World is great IT Training Institute in Nagpur. They provide 100% practical training one faculty for one student.
We offer C, C++, Java programming, Android programming, PHP Development, .Net Programming, Web Designing and all other IT related training courses. Web development is all about building great software products and CNC Web World is best in teaching how to build those products.
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.
Web development Training in Ambala ! Batra Computer Centrejatin batra
油
Batra Computer Centre is An ISO certified 9001:2008 training Centre in Ambala.
We Provide Best Web Development Training in Ambala. BATRA COMPUTER CENTRE provides best training in C, C++, S.E.O, Web Designing, Web Development and So many other courses are available.
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.
GDI Seattle Intermediate HTML and CSS Class 1Heather Rock
油
The document provides an overview of an intermediate HTML and CSS class. It begins with introductions and setting ground rules. It then reviews key terms like web design, development, front end and back end. It reviews common tools like browsers, development toolkits, and text editors. It reviews the anatomy of a website, HTML elements, and CSS syntax. It covers techniques like resets, standard widths, wrappers, pseudo-selectors, linking pages, and using custom fonts. Finally, it provides a brief introduction to HTML5 and highlights new semantic elements.
HTML5 is the latest version of HTML that focuses on web applications and includes new elements such as <video>, <audio>, and <canvas>. It also provides better support for multimedia playback and offline storage. Some key features of HTML5 include new semantic elements, form controls, and drawing capabilities. While not fully standardized, all major browsers support many HTML5 features in their latest versions. CSS3 builds on CSS2 and introduces new modules for borders, backgrounds, text effects and more to create more advanced visual styles without relying on images.
HTML is a markup language used to define the structure and layout of web pages. HTML uses tags to mark elements like headings, paragraphs, links, images, and tables. Some key tags include:
<h1> for main headings, <p> for paragraphs, <a> for links, <img> for images, and <table> for tables. Elements are everything between a starting and ending tag. HTML documents contain tags and plain text and are displayed in web browsers.
This document provides an overview of Cascading Style Sheets (CSS) in 3 sections:
1. It introduces CSS and its uses for controlling layout and styling across multiple web pages. External CSS files allow changing the look of an entire website by editing just one file.
2. Various CSS selectors are described for selecting HTML elements based on name, id, class and other attributes. Common selectors include the element, id, class, and grouping selectors.
3. Different CSS properties are outlined for styling text, colors, backgrounds, borders, padding, margins and other element features. Examples are given for setting colors, images, sizes and other styles using CSS.
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.
This document provides an introduction to various web technologies including:
- Internet and World Wide Web which allows for interlinked hypertext documents accessed via HTTP.
- Client-server architecture which underlies how content is delivered on the web.
- HTML, CSS, JavaScript which are the core technologies used for building webpages, separating structure and presentation, and adding interactivity.
- Server-side technologies like PHP, ASP, and databases which power dynamic content and functionality on websites.
The document provides an introduction to CSS (Cascading Style Sheets), explaining what CSS is, how it works, and some basic syntax and concepts. CSS allows separation of document content from document presentation by defining styles that are applied to HTML elements. Styles can be defined internally, in an external CSS file, or inline. The CSS box model is also explained, with the content, padding, border, and margin areas of elements illustrated. Common CSS properties for text formatting are also listed.
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.
Web pages are hypertext documents connected to the World Wide Web. They are displayed using web browsers, which are programs that retrieve and display HTML files. Web servers are computers that deliver web pages to users, and have IP addresses and domain names. There are two main types of websites: static and dynamic. The basic structure of an HTML web page includes tags such as <!DOCTYPE>, <html>, <head>, <title>, and <body>. Cascading Style Sheets (CSS) is a language used to describe the presentation and formatting of web pages, and can be inserted via external style sheets, internal style sheets, or inline styles.
This document discusses Dynamic HTML (DHTML) and Cascading Style Sheets (CSS). It defines DHTML as a combination of HTML, JavaScript, DOM and CSS that is used to create dynamic and interactive web pages. CSS is used to define styles and layout for web pages. There are three types of style sheets - inline, internal, and external. Inline style sheets use the style attribute, internal style sheets are defined within <style> tags in the <head> section, and external style sheets are linked via an external .css file. Examples of different CSS selectors and style sheets are also provided.
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 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.
This document provides an introduction to CSS (Cascading Style Sheets) including:
- CSS allows separation of document content from design and formatting through stylesheets.
- Stylesheets define how HTML elements are displayed and can be internal, external, or inline.
- Multiple stylesheets and style definitions will cascade together based on specificity.
- The CSS syntax uses selectors to target elements and properties to define styles like colors, fonts, spacing.
- Comments, classes, IDs, and other selectors provide control over styling different elements.
The document provides an overview of HTML5 and how to build web applications with it. Some key points covered include:
- HTML5 is the latest version of HTML and supports new elements, tags, and attributes
- HTML5 pages can be built by writing code between angle brackets and saving it as a file with an .html extension
- CSS can be used to style HTML5 pages through selectors, properties, and linking external style sheets
- JavaScript adds interactivity by manipulating the DOM and creating dynamic content
- Features like forms, multimedia, and drag-and-drop are improved in HTML5 for building robust web applications
Generative AI refers to a subset of artificial intelligence that focuses on creating new content, such as images, text, music, and even videos, based on the data it has been trained on. Generative AI models learn patterns from large datasets and use these patterns to generate new content.
More Related Content
Similar to WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS) (20)
GDI Seattle Intermediate HTML and CSS Class 1Heather Rock
油
The document provides an overview of an intermediate HTML and CSS class. It begins with introductions and setting ground rules. It then reviews key terms like web design, development, front end and back end. It reviews common tools like browsers, development toolkits, and text editors. It reviews the anatomy of a website, HTML elements, and CSS syntax. It covers techniques like resets, standard widths, wrappers, pseudo-selectors, linking pages, and using custom fonts. Finally, it provides a brief introduction to HTML5 and highlights new semantic elements.
HTML5 is the latest version of HTML that focuses on web applications and includes new elements such as <video>, <audio>, and <canvas>. It also provides better support for multimedia playback and offline storage. Some key features of HTML5 include new semantic elements, form controls, and drawing capabilities. While not fully standardized, all major browsers support many HTML5 features in their latest versions. CSS3 builds on CSS2 and introduces new modules for borders, backgrounds, text effects and more to create more advanced visual styles without relying on images.
HTML is a markup language used to define the structure and layout of web pages. HTML uses tags to mark elements like headings, paragraphs, links, images, and tables. Some key tags include:
<h1> for main headings, <p> for paragraphs, <a> for links, <img> for images, and <table> for tables. Elements are everything between a starting and ending tag. HTML documents contain tags and plain text and are displayed in web browsers.
This document provides an overview of Cascading Style Sheets (CSS) in 3 sections:
1. It introduces CSS and its uses for controlling layout and styling across multiple web pages. External CSS files allow changing the look of an entire website by editing just one file.
2. Various CSS selectors are described for selecting HTML elements based on name, id, class and other attributes. Common selectors include the element, id, class, and grouping selectors.
3. Different CSS properties are outlined for styling text, colors, backgrounds, borders, padding, margins and other element features. Examples are given for setting colors, images, sizes and other styles using CSS.
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.
This document provides an introduction to various web technologies including:
- Internet and World Wide Web which allows for interlinked hypertext documents accessed via HTTP.
- Client-server architecture which underlies how content is delivered on the web.
- HTML, CSS, JavaScript which are the core technologies used for building webpages, separating structure and presentation, and adding interactivity.
- Server-side technologies like PHP, ASP, and databases which power dynamic content and functionality on websites.
The document provides an introduction to CSS (Cascading Style Sheets), explaining what CSS is, how it works, and some basic syntax and concepts. CSS allows separation of document content from document presentation by defining styles that are applied to HTML elements. Styles can be defined internally, in an external CSS file, or inline. The CSS box model is also explained, with the content, padding, border, and margin areas of elements illustrated. Common CSS properties for text formatting are also listed.
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.
Web pages are hypertext documents connected to the World Wide Web. They are displayed using web browsers, which are programs that retrieve and display HTML files. Web servers are computers that deliver web pages to users, and have IP addresses and domain names. There are two main types of websites: static and dynamic. The basic structure of an HTML web page includes tags such as <!DOCTYPE>, <html>, <head>, <title>, and <body>. Cascading Style Sheets (CSS) is a language used to describe the presentation and formatting of web pages, and can be inserted via external style sheets, internal style sheets, or inline styles.
This document discusses Dynamic HTML (DHTML) and Cascading Style Sheets (CSS). It defines DHTML as a combination of HTML, JavaScript, DOM and CSS that is used to create dynamic and interactive web pages. CSS is used to define styles and layout for web pages. There are three types of style sheets - inline, internal, and external. Inline style sheets use the style attribute, internal style sheets are defined within <style> tags in the <head> section, and external style sheets are linked via an external .css file. Examples of different CSS selectors and style sheets are also provided.
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 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.
This document provides an introduction to CSS (Cascading Style Sheets) including:
- CSS allows separation of document content from design and formatting through stylesheets.
- Stylesheets define how HTML elements are displayed and can be internal, external, or inline.
- Multiple stylesheets and style definitions will cascade together based on specificity.
- The CSS syntax uses selectors to target elements and properties to define styles like colors, fonts, spacing.
- Comments, classes, IDs, and other selectors provide control over styling different elements.
The document provides an overview of HTML5 and how to build web applications with it. Some key points covered include:
- HTML5 is the latest version of HTML and supports new elements, tags, and attributes
- HTML5 pages can be built by writing code between angle brackets and saving it as a file with an .html extension
- CSS can be used to style HTML5 pages through selectors, properties, and linking external style sheets
- JavaScript adds interactivity by manipulating the DOM and creating dynamic content
- Features like forms, multimedia, and drag-and-drop are improved in HTML5 for building robust web applications
Generative AI refers to a subset of artificial intelligence that focuses on creating new content, such as images, text, music, and even videos, based on the data it has been trained on. Generative AI models learn patterns from large datasets and use these patterns to generate new content.
AI Breakthroughs and Innovations-Whats Next.docxAIvolut
油
Artificial intelligence is evolving rapidly, bringing groundbreaking innovations across industries. From advanced AI tools enhancing automation to new applications in healthcare and finance, the future of AI promises transformative changes. This document explores the latest breakthroughs, the impact of AI tools, and whats next for the industry. Stay ahead of the curve by understanding emerging AI trends and how they shape our world.
Least Privilege AWS IAM Role PermissionsChris Wahl
油
RECORDING: https://youtu.be/hKepiNhtWSo
Hello innovators! Welcome to the latest episode of My Essentials Course series. In this video, we'll delve into the concept of least privilege for IAM roles, ensuring roles have the minimum permissions needed for success. Learn strategies to create read-only, developer, and admin roles. Discover tools like IAM Access Analyzer, Pike, and Policy Sentry for generating efficient IAM policies. Follow along as we automate role and policy creation using Pike with Terraform, and test our permissions using GitHub Actions. Enhance your security practices by integrating these powerful tools. Enjoy the video and leave your feedback in the comments!
New from BookNet Canada for 2025: BNC SalesData and BNC LibraryDataBookNet Canada
油
Lily Dwyer updates us on what 2024 brought for SalesData and LibraryData. Learn about new features, such as the Age Range data and Page Count data filters, improvements to our internal Admin tool, and whats in store for 2025.
Link to video and transcript: https://bnctechforum.ca/sessions/new-from-booknet-canada-for-2025-bnc-salesdata-and-bnc-librarydata/
Read more:
- https://www.booknetcanada.ca/salesdata
- https://booknetcanada.atlassian.net/wiki/spaces/UserDocs/pages/53707258/SalesData+Help+Manual
Presented by BookNet Canada on April 8, 2025 with support from the Department of Canadian Heritage.
Automated Engineering of Domain-Specific Metamorphic Testing EnvironmentsPablo G坦mez Abajo
油
Context. Testing is essential to improve the correctness of software systems. Metamorphic testing (MT) is an approach especially suited when the system under test lacks oracles, or they are expensive to compute. However, building an MT environment for a particular domain (e.g., cloud simulation, model transformation, machine learning) requires substantial effort.
Objective. Our goal is to facilitate the construction of MT environments for specific domains.
Method. We propose a model-driven engineering approach to automate the construction of MT environments. Starting from a meta-model capturing the domain concepts, and a description of the domain execution environment, our approach produces an MT environment featuring comprehensive support for the MT process. This includes the definition of domain-specific metamorphic relations, their evaluation, detailed reporting of the testing results, and the automated search-based generation of follow-up test cases.
Results. Our method is supported by an extensible platform for Eclipse, called Gotten. We demonstrate its effectiveness by creating an MT environment for simulation-based testing of data centres and comparing with existing tools; its suitability to conduct MT processes by replicating previous experiments; and its generality by building another MT environment for video streaming APIs.
Conclusion. Gotten is the first platform targeted at reducing the development effort of domain-specific MT environments. The environments created with Gotten facilitate the specification of metamorphic relations, their evaluation, and the generation of new test cases.
All-Data, Any-AI Integration: FME & Amazon Bedrock in the Real-WorldSafe Software
油
Join us for an exclusive webinar featuring special guest speakers from Amazon, Amberside Energy, and Avineon-Tensing as we explore the power of Amazon Bedrock and FME in AI-driven geospatial workflows.
Discover how Avineon-Tensing is using AWS Bedrock to support Amberside Energy in automating image classification and streamlining site reporting. By integrating Bedrocks generative AI capabilities with FME, image processing and categorization become faster and more efficient, ensuring accurate and organized filing of site imagery. Learn how this approach reduces manual effort, standardizes reporting, and leverages AWSs secure AI tooling to optimize their workflows.
If youre looking to enhance geospatial workflows with AI, automate image processing, or simply explore the potential of FME and Bedrock, this webinar is for you!
Cloudflares Game-Changing Move The First Remote MCP Server for AI Agent Deve...davidandersonofficia
油
Discover how Cloudflares groundbreaking remote MCP server, launched April 7, 2025, is revolutionizing AI agent development. Paired with Durable Workflows and a free Durable Objects tier, this innovation simplifies building secure, scalable AI solutions. Learn why it matters, what you can create, and how to get started with Cloudflares game-changing tools.
Most people might think of a water faucet or even the tap on a keg of beer. But in the world of networking, "TAP" stands for "Traffic Access Point" or "Test Access Point." It's not a beverage or a sink fixture, but rather a crucial tool for network monitoring and testing. Khushi Communications is a top vendor in India, providing world-class Network TAP solutions. With their expertise, they help businesses monitor, analyze, and secure their networks efficiently.
From SBOMs to xBOMs to Transparency - Pavel Shukhman at OWASP Ottawa on 2025-...Pavel Shukhman
油
Pavel Shukhman's slides from OWASP Ottawa presentation on 2025-03-19. Discusses Software Bills of Materials (SBOMs) and Bills of Materials in general (xBOMs) and infrastructure around them.
YouTube recording -
Smarter RAG Pipelines: Scaling Search with Milvus and FeastZilliz
油
About this webinar
Learn how Milvus and Feast can be used together to scale vector search and easily declare views for retrieval using open source. Well demonstrate how to integrate Milvus with Feast to build a customized RAG pipeline.
Topics Covered
- Leverage Feast for dynamic metadata and document storage and retrieval, ensuring that the correct data is always available at inference time
- Learn how to integrate Feast with Milvus to support vector-based retrieval in RAG systems
- Use Milvus for fast, high-dimensional similarity search, enhancing the retrieval phase of your RAG model
This presentation provides a comprehensive overview of the Transactional Outbox Pattern and the Inbox Pattern, two essential techniques for ensuring reliable and consistent communication in distributed systems.
We start by clearly outlining the problem these patterns aim to solvenamely, maintaining data consistency between databases and message brokers in event-driven architectures. From there, we delve into what the Outbox Pattern is, how it works under the hood, and how it guarantees message delivery even in the face of failures.
The presentation then shifts focus to the Inbox Pattern, explaining its role in ensuring idempotency and preventing duplicate processing of messages. Each concept is explained with simple language, diagrams, and a logical flow that builds a solid understanding from the ground up.
Whether youre an engineer building microservices or just exploring distributed system patterns, this talk provides clarity, practical insights, and a helpful demo to see the patterns in action.
Topics Covered:
* Problem Statement
* Transactional Outbox Pattern
* How It Solves the Problem
* Internal Mechanics
* Delivery Guarantees
* Inbox Pattern Explained
* Internal Workflow
* Conclusions & Further Reading
* Demo
AI Driven Posture Analysis Fall Detection System for the Elderly.pdfPatrick Ogbuitepu
油
This project introduces an innovative, cost-effective solution for real-time activity monitoring of elderly individuals. By leveraging the MediaPipe pose estimation model, fuzzy logic, and finite state machines, the system can reliably track individuals, recognize static postures (standing, sitting, lying), and detect transitions, particularly focusing on falls. A key achievement is the systems zero false alarm rate, a significant advancement in vision-based fall detection systems. While the system shows promise, it faces limitations in scenarios with severe occlusions or low lighting conditions. To address these challenges, future work
will explore the use of multi-camera setups, interactive calibration modes, and audio feedback to enhance accuracy and user experience. This prototype represents a significant step towards reliable, real-time elder care. By combining advanced AI techniques with practical considerations, this system offers a scalable and effective solution to a pressing societal need.
GDG on Campus Monash hosted Info Session to provide details of the Solution Challenge to promote participation and hosted networking activities to help participants find their dream team
Ricardo Jebb Bruno is a skilled Structural CAD Technician with over 10 years of experience. He specializes in structural analysis, design, and project management, and is proficient in AutoCAD, Revit, and SolidWorks. A graduate of the University of Miami with a degree in Civil Engineering, he currently works at Metrix Structural Group. Ricardo is a member of the American Society of Civil Engineers and the National CAD Society, and volunteers with Habitat for Humanity. His hobbies include 3D printing and sci-fi media.
WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS)
1. INTRODUCTION TO WED DESIGN
A detailed and practical approach to designing websites with all the
basics and design structures.
ABOUT THIS COURSE
A student will learn to critically evaluate website
quality, learn how to create and maintain quality
web pages and web standards at the same time
learning to create and manipulate images.
2. WHAT IS HTML?
WHAT IS HTML?
HTML is the standard markup language for creating Web pages.
HTML stands for Hyper Text Markup Language.
HTML describes the structure of a Web page and consists of a series of elements
HTML elements tell the browser how to display the content
HTML elements label pieces of content such as "this is a heading",
"this is a paragraph", "this is a link", etc.
EXAMPLE OF A BASIC HTML DOCUMENT STRUCTURE
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
3. WHAT IS HTML TAGS & ELEMENTS EXPLAINED?
The <!DOCTYPE html> declaration defines that this document is an HTML5 document
The <html> element is the root element of an HTML page
The <head> element contains meta information about the HTML page
The <title> element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab)
The <body> element defines the document's body, and is a container for all the visible contents, such as headings,
paragraphs, images, hyperlinks, tables, lists, etc.
The <h1> element defines a large heading
The <p> element defines a paragraph
WHAT IS AN HTML ELEMENT?
An HTML element is defined by a start tag, some content, and an end tag:
<tagname> Content goes here... </tagname>
The HTML element is everything from the start tag to the end tag:
<h1>My First Heading</h1>
<p>My first paragraph.</p>
Note: Some HTML elements have no content (like the <br> element). These elements are called empty elements.
Empty elements do not have an end tag!
5. HTML EDITORS & FORMATTING
Learn HTML Using NOTEPAD or TEXTEDIT
Web pages can be created and modified by using professional HTML editors.
However, for learning HTML we recommend a simple text editor like Notepad (PC) or TextEdit (Mac).
We believe that using a simple text editor is a good way to learn HTML.
HTML FORMATTING ELEMENTS
Formatting elements were designed to display special types of text:
<b> - Bold text
<strong> - Important text
<i> - Italic text
<em> - Emphasized text
<mark> - Marked text
<small> - Smaller text
<del> - Deleted text
<ins> - Inserted text
<sub> - Subscript text
<sup> - Superscript text
7. HTML TABLES, FORMS, LISTS ANCHOR TAGS & IMAGES
WE SHALL REFER TO THE INDEX.HTML FILE WITHIN THIS
FOLDER CALLED WEB DESIGN FOR MORE ON THESE TOPICS
SINCE THEY ARE NOW MUCH MORE PRACTICAL.
8. WHAT IS CSS?
CSS is the language we use to style a Web page.
CSS stands for Cascading Style Sheets and CSS describes how HTML elements are to be displayed on screen, paper, or
in other media.
CSS saves a lot of work. It can control the layout of multiple web pages all at once. External stylesheets are stored in
.css files
WHY USE CSS?
CSS is used to define styles for your web pages, including the design, layout and variations in display for different
devices and screen sizes.
CSS SOLVED A BIG PROBLEM
When tags like <font>, and color attributes were added to the HTML 3.2 specification, it started a nightmare for web
developers. Development of large websites, where fonts and color information were added to every single page,
became a long and expensive process.
To solve this problem, the World Wide Web Consortium (W3C) created CSS.
CSS removed the style formatting from the HTML page!
CSS SAVES A LOT OF WORK!
With an external stylesheet file, you can change the look of an entire website by changing just one file!
9. CSS SYNTAX?
The selector points to the HTML element you want to style.
The declaration block contains one or more declarations separated by semicolons.
Each declaration includes a CSS property name and a value, separated by a colon.
Multiple CSS declarations are separated with semicolons, and declaration blocks are surrounded by curly braces.
p {
color: red;
text-align: center;
}
EXAMPLE EXPLAINED
p is a selector in CSS (it points to the HTML element you want to style: <p>).
color is a property, and red is the property value
text-align is a property, and center is the property value
10. CSS .CLASS SELECTOR?
<html>
<head>
<style>
.intro { background-color: yellow;}
</style>
</head>
<body>
<h1>Demo of the .class selector</h1>
<div class="intro">
<p>My name is Donald.</p>
<p>I live in Duckburg.</p>
</div>
<p>My best friend is Mickey.</p>
<p class="intro">My best friend is Mickey.</p>
</body>
</html>
11. CSS #ID SELECTOR?
<html>
<head>
<style>
#firstname { background-color: yellow;}
</style>
</head>
<body>
<h1>Demo of the #id selector</h1>
<div class="intro">
<p id="firstname">My name is Donald.</p>
<p id="hometown">I live in Duckburg.</p>
</div>
<p>My best friend is Mickey.</p>
</body>
</html>
12. CSS MARGINS?
Margins are used to create space around elements, outside of any defined borders.
The CSS margin properties are used to create space around elements, outside of any defined borders.
With CSS, you have full control over the margins. There are properties for setting the margin for each side of an
element (top, right, bottom, and left).
CSS has properties for specifying the margin for each side of an element:
margin-top
margin-right
margin-bottom
margin-left
All the margin properties can have the following values:
auto - the browser calculates the margin
length - specifies a margin in px, pt, cm, etc.
% - specifies a margin in % of the width of the containing element
13. CSS MARGINS?
<html>
<head>
<style>
div {
border: 1px solid black; margin-top: 100px;
margin-bottom: 100px; margin-right: 150px;
margin-left: 80px;
background-color: lightblue;
}
</style>
</head>
<body>
<h2>Using individual margin properties</h2>
<div>This div element has a top margin of 100px,
a right margin of 150px, a bottom margin of 100px,
and a left margin of 80px.</div>
</body>
</html>
14. CSS PADDING?
Padding is used to create space around an element's content, inside of any defined borders.
The CSS padding properties are used to generate space around an element's content, inside of any defined borders.
With CSS, you have full control over the padding. There are properties for setting the padding for each side of an
element (top, right, bottom, and left).
CSS has properties for specifying the padding for each side of an element:
padding-top
padding-right
padding-bottom
padding-left
All the padding properties can have the following values:
length - specifies a padding in px, pt, cm, etc.
% - specifies a padding in % of the width of the containing element
15. CSS PADDING?
<html>
<head>
<style>
div {
border: 1px solid black;
background-color: lightblue;
padding-top: 50px;
padding-right: 30px;
padding-bottom: 50px;
padding-left: 80px;
}
</style>
</head>
<body>
<h2>Using individual padding properties</h2>
<div>This div element has a top padding of 50px,
a right padding of 30px, a bottom padding of 50px,
and a left padding of 80px.</div>
</body>
</html>