SlideShare a Scribd company logo
HTML workshop
checklist
1. background image 1280 x 1000 pixels
2. personal headshot 320 x 380 pixels
3. twitter account to create a widget
4. an image for a blog post 300 x 200 pixels
Put your directory folder onto the
desktop
should contain:
index.html
style.css
image folder (with images)
everything should be linked and working
you can download my example if you don’t
have one of your own

•
•
•
•
•
To create the blog we must define a
content area
1. we do this on the html document using
<div> </div> tags to wrap content
To create the blog we must define a
content area
1. we do this on the html document using
<div> </div> tags to wrap content
2. then we need to add an attribute to each
<div> </div> tag so we can call each out
separately on our CSS doc
To create the blog we must define a
content area
1. we do this on the html document using
<div> </div> tags to wrap content
2. then we need to add an attribute to each
<div> </div> tag so we can call each out
separately on our CSS doc
3. <div id=”wrapper”> stuff here </div>
Here’s what the HTML code looks
like:
<body>
<div id=”wrapper”>
Hello World!
<img src=”images/bodieHead.jpg” />
</div>
</body>
Here’s what the corresponding CSS
code looks like:
#wrapper {
width: 800px;

}
Here’s what the corresponding CSS
code looks like:
#wrapper {
width: 800px;
margin: 0px auto;
}
Here’s what the corresponding CSS
code looks like:
#wrapper {
width: 800px;
margin: 0px auto;
background-color: rgba(204, 204, 204, .8);

}
Here’s what the corresponding CSS
code looks like:
#wrapper {
width: 800px;
margin: 0px auto;
background-color: rgba(204, 204, 204, .8);

border-radius: 20px;
}
Now let’s add more content
1. change “Hello World” to the name of our
blog: Web, Digital Media, and Creative
Culture
2. Wrap our blog title in <h1> </h1> tags
<h1>Web, Digital Media, and Creative Culture</h1>
Now let’s style our <h1> tags on CSS
h1

{
font-family: futura, arial, san-serif;
}
Now let’s style our <h1> tags on CSS
h1

{
font-family: futura, arial, san-serif;
font-size: 48px;
}
Now let’s style our <h1> tags on CSS
h1

{
font-family: futura, arial, san-serif;
font-size: 48px;
color: #ffffff;
}
Now let’s style our <h1> tags on CSS
h1

{
font-family: futura, arial, san-serif;
font-size: 48px;
color: #ffffff;
text-align: center;
}
Now let’s style our <h1> tags on CSS
h1

{
font-family: futura, arial, san-serif;
font-size: 48px;
color: #ffffff;
text-align: center;
text-shadow: 5px 5px 5px #333333;
}
Now let’s add more formatting tags

•

To create nice margins, the easiest way is to
create another container inside of our <div
id=”wrapper”> </div>
Now let’s add more formatting tags
<div id=”wrapper”>
<div id=”header”>
<h1>Web, Digital Media, and Creative Culture</h1>

<img src=”images/bodieHead.png” />
</div>
</div>
Now we must style our “header” div
#header {
width: 700px;
}
Now we must style our “header” div
#header {
width: 700px;
margin: 0px auto;
}
Things are looking good, but...

•

We must add some formatting tags
This time wrap a <div> </div> tag around
your headshot and call it something
contextual
Adding a <div id=”bodieHead”>
<div id=wrapper”
<div id=”header”>
<h1>Web, Digital Media, and Creative Culture</h1>
<div id=”bodieHead”>
<img src=”images/bodieHead.png” />
</div>
</div>
</div>
Now, let’s style #bodieHead
#bodieHead

{
width: 320px;
height: 380px;
background-color: rgba(230, 230, 230,

.8);

}
Now, let’s style #bodieHead
#bodieHead

{
width: 320px;
height: 380px;
background-color: rgba(230, 230, 230,

.8);
border-radius: 20px;
overflow: hidden;
}
Now let’s create a Twitter Widget

•

Google “Twitter Widget”

•

Click

•

Log-in
Now let’s create a Twitter Widget

•

Click “Create New”

•

Establish specs

•

Save and create

•

Copy code
Paste embed code into index.html
<div id=”wrapper”>
<div id=”header”>
<h1>Web, Digital Media, and Creative Culture</h1>
<div id=”bodieHead”
<img src=”images/bodieHead.png” />
</div>
paste twitter embed code here
</div>
</div>
Now let’s style our Twitter Widget

•

The code looks like craziness, so sometimes
Google is your friend…
Now let’s style our Twitter Widget

•

•

I found this one thread that says I can style
the widget by using the ID twitter-widget-0
on my CSS.
Let’s try it!
Now let’s style our Twitter Widget
#twitter-widget-0
{
width: 340px;
height: 380px;
border-radius: 20px;
}
There’s still more to be done!

•
•

When we look at it the browser, it’s stacking
rather than displaying side by side.
Let’s change this
Try using the float
#bodieHead
{
width: 320px;
height: 380px;
background-color: rgba(230, 230, 230, .8);
border-radius: 20px;
overflow: hidden;
float: left;
}
Take a look...

•

Do we need to do anything else?

•

If so, what?
Take a look...

•

Add a right-side margin to #bodieHead
#bodieHead

{

width: 320px;
height: 380px;
background-color: rgba(230, 230, 230, .8);

border-radius: 20px;
overflow: hidden;
float: left;

margin-right: 40px;
}
Now We Can Work On Blog Articles

•

How do you think we start this process?
Now We Can Work On Blog Articles

•
•

create a new div on index.html.
we can call this div “articleOne”
<div id=”articleOne”>
</div>
Placing the articleOne <div>
<div id=”wrapper”>
<div id=”header”>

<h1>Web, Digital Media, and Creative Culture</h1>
<div id=”bodieHead”
<img src=”images/bodieHead.png” />

</div>
Twitter
</div>

<div id=”articleOne”>
</div>
</div>
Add content to articleOne div
<div id=”articleOne”>
<img src=”images/futurityNow.jpg” />
copy text from wiki here
</div>
Now we need to style articleOne

•

Where do we start?
Now we need to style articleOne
#articleOne

{
width: 700px;
margin: 0px auto;
}
Now we need to style articleOne
#articleOne {
width: 700px;
margin: 0px auto;
background-color: rgba(230, 230, 230, .8);
}
Now we need to style articleOne
#articleOne {
width: 700px;
margin: 0px auto;
background-color: rgba(230, 230, 230, .8);
border-radius: 20px;
}
Now we need to style articleOne
#articleOne {
width: 700px;
margin: 0px auto;
background-color: rgba(230, 230, 230, .8);
border-radius: 20px;
margin-top: 40px;
}
Now we need to style articleOne

•
•

•

How do we create margins?
Create a <div> </div> within article one to
create nice margins and borders (it’s easy!)
Call this <div id=”innerArticleOne”> </div>
<div id=”innerArticleOne”>
<div id=”articleOne”>
<div id=”innerArticleOne”>
<img src=”images/futurityNow.jpg” />
copy text from wiki here
</div>
</div>
Let’s style innerArticleOne
#innerArticleOne
{
width: 670px;
margin: 0px auto;
}
Let’s Format The Article

•

Let’s add <p> </p> tags to each paragraph
<p>
Fuchs, Christian. Internet and Society: Social Theory in the Information
Age. New York: Routledge, 2008. 105-18. Print
</p>
We Need to Get to FuturityNow

•

Can do this using a class
<img src=”images/futurityNow.jpg” class=”futurity” />
Now Let’s Style class=”futurity”
On CSS stylesheet:
.futurity {
float: left;
}
Now Let’s Style class=”futurity”
On CSS stylesheet:
.futurity {
float: left;
margin-top: 15px;
}
Now Let’s Style class=”futurity”
On CSS stylesheet:
.futurity {
float: left;
margin-top: 15px;
margin-right: 15px;
}
Let’s add a class to our first PP

•

First paragraph:
<p class=”paragraphOne”>
content
</p>
Let’s style <p class=”paragraphOne”>
.paragraphOne
{
padding-top: 15px;
}
Format the other paragraphs
p {
text-align: justify;
}
Look at what we’ve done...
Let’s create articleTwo

•

add another <div> </div>

•

what do we call it?
Let’s create articleTwo

•

Under the </div> for articleOne, but inside
the <div id=”wrapper”> create:
<div id=”articleTwo”
</div>
Let’s grab content for articleTwo
1. grab Prezi embed code - ideally your own,
but any will do for this example.
1. grab a paragraph of text from a reading
response.
Paste content into <div id=”articleTwo”
1. Paste Prezi embed code and paragraph into
div:
<div id=”articleTwo”>
Prezi code
text text
</div>
Format content
1. change Prezi width tp 100%
1. add <p> </p> tags around paragraph
Styling articleTwo

•

•

Since articleTwo is similar articleOne, we
should roughly do the same things:
Add <div id=”innerArticleTwo”> </div>
innerArticleTwo
<div id=”articleTwo”>
<div id=”innerArticleTwo”
Prezi code
text text
</div>
</div>
Styling articleTwo

•

•

On CSS, copy the code for #articleOne and
#innerArticleOne
Paste below and change the name to reflect
the divs you created: #articleTwo &
#innerArticleTwo
Styling articleTwo

•
•

•

View your site
We need to add margin or padding to the
Prezi
How do we do this?
Styling articleTwo
iframe
{
margin-top: 15px;
}
Let’s add a few more details

•

space between article two and the wrapper?
Let’s add a few more details

•

space between article two and the wrapper?
#wrapper

{

width: 800px;
margin: 0px auto;
background-color: rgba(204, 204, 204, .8);
border-radius: 20px;
padding-bottom: 15px;
}
Let’s add a few more details

•

drop shadows on the articles?
Let’s add a few more details

•

drop shadows on the articles?

•

Add to the article divs
box-shadow: 5px 5px 5px #333333;
Ad

More Related Content

What's hot (20)

Meta tag creation
Meta tag creationMeta tag creation
Meta tag creation
AniketTiwari26
 
Next Steps in Responsive Design
Next Steps in Responsive DesignNext Steps in Responsive Design
Next Steps in Responsive Design
Justin Avery
 
Code &amp; design your first website (3:16)
Code &amp; design your first website (3:16)Code &amp; design your first website (3:16)
Code &amp; design your first website (3:16)
Thinkful
 
Darwin web standards
Darwin web standardsDarwin web standards
Darwin web standards
Justin Avery
 
ViA Bootstrap 4
ViA Bootstrap 4ViA Bootstrap 4
ViA Bootstrap 4
imdurgesh
 
HTML5 & CSS3 Flag
HTML5 & CSS3 FlagHTML5 & CSS3 Flag
HTML5 & CSS3 Flag
Christopher Schmitt
 
Code & Design your first website 4/18
Code & Design your first website 4/18Code & Design your first website 4/18
Code & Design your first website 4/18
TJ Stalcup
 
Customizing Your WordPress Theme Using Firebug and Basic CSS
Customizing Your WordPress Theme Using Firebug and Basic CSSCustomizing Your WordPress Theme Using Firebug and Basic CSS
Customizing Your WordPress Theme Using Firebug and Basic CSS
Laura Hartwig
 
Intro to HTML
Intro to HTMLIntro to HTML
Intro to HTML
UC Berkeley Graduate School of Journalism
 
HTML News Packages Lesson
HTML News Packages LessonHTML News Packages Lesson
HTML News Packages Lesson
UC Berkeley Graduate School of Journalism
 
Intro to Web Development
Intro to Web DevelopmentIntro to Web Development
Intro to Web Development
Frank Wu
 
blogs911.com
blogs911.comblogs911.com
blogs911.com
http://sellerfriend.blogspot.com
 
Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3
Todd Zaki Warfel
 
Building a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSSBuilding a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSS
hstryk
 
Bhanu pratap
Bhanu pratapBhanu pratap
Bhanu pratap
dezyneecole
 
UI Design with HTML5 & CSS3
UI Design with HTML5 & CSS3UI Design with HTML5 & CSS3
UI Design with HTML5 & CSS3
Shay Howe
 
Html5 ux london
Html5 ux londonHtml5 ux london
Html5 ux london
Todd Zaki Warfel
 
Principles Of Web Design Workshop
Principles Of Web Design WorkshopPrinciples Of Web Design Workshop
Principles Of Web Design Workshop
Gavin Elliott
 
Progressive Prototyping w/HTML5, CSS3 and jQuery
Progressive Prototyping w/HTML5, CSS3 and jQueryProgressive Prototyping w/HTML5, CSS3 and jQuery
Progressive Prototyping w/HTML5, CSS3 and jQuery
Todd Zaki Warfel
 
Punch it Up with HTML and CSS
Punch it Up with HTML and CSSPunch it Up with HTML and CSS
Punch it Up with HTML and CSS
mtlgirlgeeks
 
Next Steps in Responsive Design
Next Steps in Responsive DesignNext Steps in Responsive Design
Next Steps in Responsive Design
Justin Avery
 
Code &amp; design your first website (3:16)
Code &amp; design your first website (3:16)Code &amp; design your first website (3:16)
Code &amp; design your first website (3:16)
Thinkful
 
Darwin web standards
Darwin web standardsDarwin web standards
Darwin web standards
Justin Avery
 
ViA Bootstrap 4
ViA Bootstrap 4ViA Bootstrap 4
ViA Bootstrap 4
imdurgesh
 
Code & Design your first website 4/18
Code & Design your first website 4/18Code & Design your first website 4/18
Code & Design your first website 4/18
TJ Stalcup
 
Customizing Your WordPress Theme Using Firebug and Basic CSS
Customizing Your WordPress Theme Using Firebug and Basic CSSCustomizing Your WordPress Theme Using Firebug and Basic CSS
Customizing Your WordPress Theme Using Firebug and Basic CSS
Laura Hartwig
 
Intro to Web Development
Intro to Web DevelopmentIntro to Web Development
Intro to Web Development
Frank Wu
 
Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3Prototyping w/HTML5 and CSS3
Prototyping w/HTML5 and CSS3
Todd Zaki Warfel
 
Building a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSSBuilding a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSS
hstryk
 
UI Design with HTML5 & CSS3
UI Design with HTML5 & CSS3UI Design with HTML5 & CSS3
UI Design with HTML5 & CSS3
Shay Howe
 
Principles Of Web Design Workshop
Principles Of Web Design WorkshopPrinciples Of Web Design Workshop
Principles Of Web Design Workshop
Gavin Elliott
 
Progressive Prototyping w/HTML5, CSS3 and jQuery
Progressive Prototyping w/HTML5, CSS3 and jQueryProgressive Prototyping w/HTML5, CSS3 and jQuery
Progressive Prototyping w/HTML5, CSS3 and jQuery
Todd Zaki Warfel
 
Punch it Up with HTML and CSS
Punch it Up with HTML and CSSPunch it Up with HTML and CSS
Punch it Up with HTML and CSS
mtlgirlgeeks
 

Similar to HTML/CSS Web Blog Example (20)

Class 3 create an absolute layout with css abs position (aptana)
Class 3  create an absolute layout with css abs position (aptana)Class 3  create an absolute layout with css abs position (aptana)
Class 3 create an absolute layout with css abs position (aptana)
Erin M. Kidwell
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Erin M. Kidwell
 
Source Ordered Templates - - Joomla!Days NL 2009 #jd09nl
Source Ordered Templates - - Joomla!Days NL 2009 #jd09nlSource Ordered Templates - - Joomla!Days NL 2009 #jd09nl
Source Ordered Templates - - Joomla!Days NL 2009 #jd09nl
Joomla!Days Netherlands
 
2022 HTML5: The future is now
2022 HTML5: The future is now2022 HTML5: The future is now
2022 HTML5: The future is now
Gonzalo Cordero
 
Advanced CSS Troubleshooting
Advanced CSS TroubleshootingAdvanced CSS Troubleshooting
Advanced CSS Troubleshooting
Denise Jacobs
 
Advanced CSS Troubleshooting & Efficiency
Advanced CSS Troubleshooting & EfficiencyAdvanced CSS Troubleshooting & Efficiency
Advanced CSS Troubleshooting & Efficiency
Denise Jacobs
 
Newbies guide to customizing word press themes 25
Newbies guide to customizing word press themes 25Newbies guide to customizing word press themes 25
Newbies guide to customizing word press themes 25
New Tricks
 
IML 140 Design - Basics
IML 140 Design - BasicsIML 140 Design - Basics
IML 140 Design - Basics
Evan Hughes
 
CSS Layout Tutorial
CSS Layout TutorialCSS Layout Tutorial
CSS Layout Tutorial
hstryk
 
Modifying your themes design - Learning CSS - Atlanta WordPress users group
Modifying your themes design - Learning CSS - Atlanta WordPress users groupModifying your themes design - Learning CSS - Atlanta WordPress users group
Modifying your themes design - Learning CSS - Atlanta WordPress users group
Evan Mullins
 
Tutorial1 - Part 2
Tutorial1 - Part 2Tutorial1 - Part 2
Tutorial1 - Part 2
hstryk
 
Customizing WordPress Themes
Customizing WordPress ThemesCustomizing WordPress Themes
Customizing WordPress Themes
Laura Hartwig
 
HTML(5) and CSS(3) for beginners - I
HTML(5) and CSS(3) for beginners - IHTML(5) and CSS(3) for beginners - I
HTML(5) and CSS(3) for beginners - I
vincentleeuwen
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucks
Tim Wright
 
PSD to HTML Conversion
PSD to HTML ConversionPSD to HTML Conversion
PSD to HTML Conversion
Darryl Sherman
 
Intro to CSS Presentation
Intro to CSS PresentationIntro to CSS Presentation
Intro to CSS Presentation
WP Pittsburgh Meetup Group
 
Html n css tutorial
Html n css tutorialHtml n css tutorial
Html n css tutorial
zubeditufail
 
Advanced Thesis Techniques and Tricks
Advanced Thesis Techniques and TricksAdvanced Thesis Techniques and Tricks
Advanced Thesis Techniques and Tricks
Brad Williams
 
How to Create simple One Page site
How to Create simple One Page siteHow to Create simple One Page site
How to Create simple One Page site
Moneer kamal
 
Advanced SEO for WordPress
Advanced SEO for WordPressAdvanced SEO for WordPress
Advanced SEO for WordPress
Julie Kosbab
 
Class 3 create an absolute layout with css abs position (aptana)
Class 3  create an absolute layout with css abs position (aptana)Class 3  create an absolute layout with css abs position (aptana)
Class 3 create an absolute layout with css abs position (aptana)
Erin M. Kidwell
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Erin M. Kidwell
 
Source Ordered Templates - - Joomla!Days NL 2009 #jd09nl
Source Ordered Templates - - Joomla!Days NL 2009 #jd09nlSource Ordered Templates - - Joomla!Days NL 2009 #jd09nl
Source Ordered Templates - - Joomla!Days NL 2009 #jd09nl
Joomla!Days Netherlands
 
2022 HTML5: The future is now
2022 HTML5: The future is now2022 HTML5: The future is now
2022 HTML5: The future is now
Gonzalo Cordero
 
Advanced CSS Troubleshooting
Advanced CSS TroubleshootingAdvanced CSS Troubleshooting
Advanced CSS Troubleshooting
Denise Jacobs
 
Advanced CSS Troubleshooting & Efficiency
Advanced CSS Troubleshooting & EfficiencyAdvanced CSS Troubleshooting & Efficiency
Advanced CSS Troubleshooting & Efficiency
Denise Jacobs
 
Newbies guide to customizing word press themes 25
Newbies guide to customizing word press themes 25Newbies guide to customizing word press themes 25
Newbies guide to customizing word press themes 25
New Tricks
 
IML 140 Design - Basics
IML 140 Design - BasicsIML 140 Design - Basics
IML 140 Design - Basics
Evan Hughes
 
CSS Layout Tutorial
CSS Layout TutorialCSS Layout Tutorial
CSS Layout Tutorial
hstryk
 
Modifying your themes design - Learning CSS - Atlanta WordPress users group
Modifying your themes design - Learning CSS - Atlanta WordPress users groupModifying your themes design - Learning CSS - Atlanta WordPress users group
Modifying your themes design - Learning CSS - Atlanta WordPress users group
Evan Mullins
 
Tutorial1 - Part 2
Tutorial1 - Part 2Tutorial1 - Part 2
Tutorial1 - Part 2
hstryk
 
Customizing WordPress Themes
Customizing WordPress ThemesCustomizing WordPress Themes
Customizing WordPress Themes
Laura Hartwig
 
HTML(5) and CSS(3) for beginners - I
HTML(5) and CSS(3) for beginners - IHTML(5) and CSS(3) for beginners - I
HTML(5) and CSS(3) for beginners - I
vincentleeuwen
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucks
Tim Wright
 
PSD to HTML Conversion
PSD to HTML ConversionPSD to HTML Conversion
PSD to HTML Conversion
Darryl Sherman
 
Html n css tutorial
Html n css tutorialHtml n css tutorial
Html n css tutorial
zubeditufail
 
Advanced Thesis Techniques and Tricks
Advanced Thesis Techniques and TricksAdvanced Thesis Techniques and Tricks
Advanced Thesis Techniques and Tricks
Brad Williams
 
How to Create simple One Page site
How to Create simple One Page siteHow to Create simple One Page site
How to Create simple One Page site
Moneer kamal
 
Advanced SEO for WordPress
Advanced SEO for WordPressAdvanced SEO for WordPress
Advanced SEO for WordPress
Julie Kosbab
 
Ad

Recently uploaded (20)

fennec fox optimization algorithm for optimal solution
fennec fox optimization algorithm for optimal solutionfennec fox optimization algorithm for optimal solution
fennec fox optimization algorithm for optimal solution
shallal2
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
TrsLabs - Leverage the Power of UPI Payments
TrsLabs - Leverage the Power of UPI PaymentsTrsLabs - Leverage the Power of UPI Payments
TrsLabs - Leverage the Power of UPI Payments
Trs Labs
 
UiPath Agentic Automation: Community Developer Opportunities
UiPath Agentic Automation: Community Developer OpportunitiesUiPath Agentic Automation: Community Developer Opportunities
UiPath Agentic Automation: Community Developer Opportunities
DianaGray10
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Unlocking Generative AI in your Web Apps
Unlocking Generative AI in your Web AppsUnlocking Generative AI in your Web Apps
Unlocking Generative AI in your Web Apps
Maximiliano Firtman
 
Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...
Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...
Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...
Raffi Khatchadourian
 
Make GenAI investments go further with the Dell AI Factory
Make GenAI investments go further with the Dell AI FactoryMake GenAI investments go further with the Dell AI Factory
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
Bepents tech services - a premier cybersecurity consulting firm
Bepents tech services - a premier cybersecurity consulting firmBepents tech services - a premier cybersecurity consulting firm
Bepents tech services - a premier cybersecurity consulting firm
Benard76
 
Transcript: Canadian book publishing: Insights from the latest salary survey ...
Transcript: Canadian book publishing: Insights from the latest salary survey ...Transcript: Canadian book publishing: Insights from the latest salary survey ...
Transcript: Canadian book publishing: Insights from the latest salary survey ...
BookNet Canada
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptxReimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
John Moore
 
Canadian book publishing: Insights from the latest salary survey - Tech Forum...
Canadian book publishing: Insights from the latest salary survey - Tech Forum...Canadian book publishing: Insights from the latest salary survey - Tech Forum...
Canadian book publishing: Insights from the latest salary survey - Tech Forum...
BookNet Canada
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
The Future of Cisco Cloud Security: Innovations and AI Integration
The Future of Cisco Cloud Security: Innovations and AI IntegrationThe Future of Cisco Cloud Security: Innovations and AI Integration
The Future of Cisco Cloud Security: Innovations and AI Integration
Re-solution Data Ltd
 
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Raffi Khatchadourian
 
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à GenèveUiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPathCommunity
 
Connect and Protect: Networks and Network Security
Connect and Protect: Networks and Network SecurityConnect and Protect: Networks and Network Security
Connect and Protect: Networks and Network Security
VICTOR MAESTRE RAMIREZ
 
Enterprise Integration Is Dead! Long Live AI-Driven Integration with Apache C...
Enterprise Integration Is Dead! Long Live AI-Driven Integration with Apache C...Enterprise Integration Is Dead! Long Live AI-Driven Integration with Apache C...
Enterprise Integration Is Dead! Long Live AI-Driven Integration with Apache C...
Markus Eisele
 
AI 3-in-1: Agents, RAG, and Local Models - Brent Laster
AI 3-in-1: Agents, RAG, and Local Models - Brent LasterAI 3-in-1: Agents, RAG, and Local Models - Brent Laster
AI 3-in-1: Agents, RAG, and Local Models - Brent Laster
All Things Open
 
fennec fox optimization algorithm for optimal solution
fennec fox optimization algorithm for optimal solutionfennec fox optimization algorithm for optimal solution
fennec fox optimization algorithm for optimal solution
shallal2
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
TrsLabs - Leverage the Power of UPI Payments
TrsLabs - Leverage the Power of UPI PaymentsTrsLabs - Leverage the Power of UPI Payments
TrsLabs - Leverage the Power of UPI Payments
Trs Labs
 
UiPath Agentic Automation: Community Developer Opportunities
UiPath Agentic Automation: Community Developer OpportunitiesUiPath Agentic Automation: Community Developer Opportunities
UiPath Agentic Automation: Community Developer Opportunities
DianaGray10
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Unlocking Generative AI in your Web Apps
Unlocking Generative AI in your Web AppsUnlocking Generative AI in your Web Apps
Unlocking Generative AI in your Web Apps
Maximiliano Firtman
 
Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...
Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...
Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...
Raffi Khatchadourian
 
Make GenAI investments go further with the Dell AI Factory
Make GenAI investments go further with the Dell AI FactoryMake GenAI investments go further with the Dell AI Factory
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
Bepents tech services - a premier cybersecurity consulting firm
Bepents tech services - a premier cybersecurity consulting firmBepents tech services - a premier cybersecurity consulting firm
Bepents tech services - a premier cybersecurity consulting firm
Benard76
 
Transcript: Canadian book publishing: Insights from the latest salary survey ...
Transcript: Canadian book publishing: Insights from the latest salary survey ...Transcript: Canadian book publishing: Insights from the latest salary survey ...
Transcript: Canadian book publishing: Insights from the latest salary survey ...
BookNet Canada
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptxReimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
John Moore
 
Canadian book publishing: Insights from the latest salary survey - Tech Forum...
Canadian book publishing: Insights from the latest salary survey - Tech Forum...Canadian book publishing: Insights from the latest salary survey - Tech Forum...
Canadian book publishing: Insights from the latest salary survey - Tech Forum...
BookNet Canada
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
The Future of Cisco Cloud Security: Innovations and AI Integration
The Future of Cisco Cloud Security: Innovations and AI IntegrationThe Future of Cisco Cloud Security: Innovations and AI Integration
The Future of Cisco Cloud Security: Innovations and AI Integration
Re-solution Data Ltd
 
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Raffi Khatchadourian
 
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à GenèveUiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPathCommunity
 
Connect and Protect: Networks and Network Security
Connect and Protect: Networks and Network SecurityConnect and Protect: Networks and Network Security
Connect and Protect: Networks and Network Security
VICTOR MAESTRE RAMIREZ
 
Enterprise Integration Is Dead! Long Live AI-Driven Integration with Apache C...
Enterprise Integration Is Dead! Long Live AI-Driven Integration with Apache C...Enterprise Integration Is Dead! Long Live AI-Driven Integration with Apache C...
Enterprise Integration Is Dead! Long Live AI-Driven Integration with Apache C...
Markus Eisele
 
AI 3-in-1: Agents, RAG, and Local Models - Brent Laster
AI 3-in-1: Agents, RAG, and Local Models - Brent LasterAI 3-in-1: Agents, RAG, and Local Models - Brent Laster
AI 3-in-1: Agents, RAG, and Local Models - Brent Laster
All Things Open
 
Ad

HTML/CSS Web Blog Example

  • 1. HTML workshop checklist 1. background image 1280 x 1000 pixels 2. personal headshot 320 x 380 pixels 3. twitter account to create a widget 4. an image for a blog post 300 x 200 pixels
  • 2. Put your directory folder onto the desktop should contain: index.html style.css image folder (with images) everything should be linked and working you can download my example if you don’t have one of your own • • • • •
  • 3. To create the blog we must define a content area 1. we do this on the html document using <div> </div> tags to wrap content
  • 4. To create the blog we must define a content area 1. we do this on the html document using <div> </div> tags to wrap content 2. then we need to add an attribute to each <div> </div> tag so we can call each out separately on our CSS doc
  • 5. To create the blog we must define a content area 1. we do this on the html document using <div> </div> tags to wrap content 2. then we need to add an attribute to each <div> </div> tag so we can call each out separately on our CSS doc 3. <div id=”wrapper”> stuff here </div>
  • 6. Here’s what the HTML code looks like: <body> <div id=”wrapper”> Hello World! <img src=”images/bodieHead.jpg” /> </div> </body>
  • 7. Here’s what the corresponding CSS code looks like: #wrapper { width: 800px; }
  • 8. Here’s what the corresponding CSS code looks like: #wrapper { width: 800px; margin: 0px auto; }
  • 9. Here’s what the corresponding CSS code looks like: #wrapper { width: 800px; margin: 0px auto; background-color: rgba(204, 204, 204, .8); }
  • 10. Here’s what the corresponding CSS code looks like: #wrapper { width: 800px; margin: 0px auto; background-color: rgba(204, 204, 204, .8); border-radius: 20px; }
  • 11. Now let’s add more content 1. change “Hello World” to the name of our blog: Web, Digital Media, and Creative Culture 2. Wrap our blog title in <h1> </h1> tags <h1>Web, Digital Media, and Creative Culture</h1>
  • 12. Now let’s style our <h1> tags on CSS h1 { font-family: futura, arial, san-serif; }
  • 13. Now let’s style our <h1> tags on CSS h1 { font-family: futura, arial, san-serif; font-size: 48px; }
  • 14. Now let’s style our <h1> tags on CSS h1 { font-family: futura, arial, san-serif; font-size: 48px; color: #ffffff; }
  • 15. Now let’s style our <h1> tags on CSS h1 { font-family: futura, arial, san-serif; font-size: 48px; color: #ffffff; text-align: center; }
  • 16. Now let’s style our <h1> tags on CSS h1 { font-family: futura, arial, san-serif; font-size: 48px; color: #ffffff; text-align: center; text-shadow: 5px 5px 5px #333333; }
  • 17. Now let’s add more formatting tags • To create nice margins, the easiest way is to create another container inside of our <div id=”wrapper”> </div>
  • 18. Now let’s add more formatting tags <div id=”wrapper”> <div id=”header”> <h1>Web, Digital Media, and Creative Culture</h1> <img src=”images/bodieHead.png” /> </div> </div>
  • 19. Now we must style our “header” div #header { width: 700px; }
  • 20. Now we must style our “header” div #header { width: 700px; margin: 0px auto; }
  • 21. Things are looking good, but... • We must add some formatting tags This time wrap a <div> </div> tag around your headshot and call it something contextual
  • 22. Adding a <div id=”bodieHead”> <div id=wrapper” <div id=”header”> <h1>Web, Digital Media, and Creative Culture</h1> <div id=”bodieHead”> <img src=”images/bodieHead.png” /> </div> </div> </div>
  • 23. Now, let’s style #bodieHead #bodieHead { width: 320px; height: 380px; background-color: rgba(230, 230, 230, .8); }
  • 24. Now, let’s style #bodieHead #bodieHead { width: 320px; height: 380px; background-color: rgba(230, 230, 230, .8); border-radius: 20px; overflow: hidden; }
  • 25. Now let’s create a Twitter Widget • Google “Twitter Widget” • Click • Log-in
  • 26. Now let’s create a Twitter Widget • Click “Create New” • Establish specs • Save and create • Copy code
  • 27. Paste embed code into index.html <div id=”wrapper”> <div id=”header”> <h1>Web, Digital Media, and Creative Culture</h1> <div id=”bodieHead” <img src=”images/bodieHead.png” /> </div> paste twitter embed code here </div> </div>
  • 28. Now let’s style our Twitter Widget • The code looks like craziness, so sometimes Google is your friend…
  • 29. Now let’s style our Twitter Widget • • I found this one thread that says I can style the widget by using the ID twitter-widget-0 on my CSS. Let’s try it!
  • 30. Now let’s style our Twitter Widget #twitter-widget-0 { width: 340px; height: 380px; border-radius: 20px; }
  • 31. There’s still more to be done! • • When we look at it the browser, it’s stacking rather than displaying side by side. Let’s change this
  • 32. Try using the float #bodieHead { width: 320px; height: 380px; background-color: rgba(230, 230, 230, .8); border-radius: 20px; overflow: hidden; float: left; }
  • 33. Take a look... • Do we need to do anything else? • If so, what?
  • 34. Take a look... • Add a right-side margin to #bodieHead #bodieHead { width: 320px; height: 380px; background-color: rgba(230, 230, 230, .8); border-radius: 20px; overflow: hidden; float: left; margin-right: 40px; }
  • 35. Now We Can Work On Blog Articles • How do you think we start this process?
  • 36. Now We Can Work On Blog Articles • • create a new div on index.html. we can call this div “articleOne” <div id=”articleOne”> </div>
  • 37. Placing the articleOne <div> <div id=”wrapper”> <div id=”header”> <h1>Web, Digital Media, and Creative Culture</h1> <div id=”bodieHead” <img src=”images/bodieHead.png” /> </div> Twitter </div> <div id=”articleOne”> </div> </div>
  • 38. Add content to articleOne div <div id=”articleOne”> <img src=”images/futurityNow.jpg” /> copy text from wiki here </div>
  • 39. Now we need to style articleOne • Where do we start?
  • 40. Now we need to style articleOne #articleOne { width: 700px; margin: 0px auto; }
  • 41. Now we need to style articleOne #articleOne { width: 700px; margin: 0px auto; background-color: rgba(230, 230, 230, .8); }
  • 42. Now we need to style articleOne #articleOne { width: 700px; margin: 0px auto; background-color: rgba(230, 230, 230, .8); border-radius: 20px; }
  • 43. Now we need to style articleOne #articleOne { width: 700px; margin: 0px auto; background-color: rgba(230, 230, 230, .8); border-radius: 20px; margin-top: 40px; }
  • 44. Now we need to style articleOne • • • How do we create margins? Create a <div> </div> within article one to create nice margins and borders (it’s easy!) Call this <div id=”innerArticleOne”> </div>
  • 45. <div id=”innerArticleOne”> <div id=”articleOne”> <div id=”innerArticleOne”> <img src=”images/futurityNow.jpg” /> copy text from wiki here </div> </div>
  • 47. Let’s Format The Article • Let’s add <p> </p> tags to each paragraph <p> Fuchs, Christian. Internet and Society: Social Theory in the Information Age. New York: Routledge, 2008. 105-18. Print </p>
  • 48. We Need to Get to FuturityNow • Can do this using a class <img src=”images/futurityNow.jpg” class=”futurity” />
  • 49. Now Let’s Style class=”futurity” On CSS stylesheet: .futurity { float: left; }
  • 50. Now Let’s Style class=”futurity” On CSS stylesheet: .futurity { float: left; margin-top: 15px; }
  • 51. Now Let’s Style class=”futurity” On CSS stylesheet: .futurity { float: left; margin-top: 15px; margin-right: 15px; }
  • 52. Let’s add a class to our first PP • First paragraph: <p class=”paragraphOne”> content </p>
  • 53. Let’s style <p class=”paragraphOne”> .paragraphOne { padding-top: 15px; }
  • 54. Format the other paragraphs p { text-align: justify; }
  • 55. Look at what we’ve done...
  • 56. Let’s create articleTwo • add another <div> </div> • what do we call it?
  • 57. Let’s create articleTwo • Under the </div> for articleOne, but inside the <div id=”wrapper”> create: <div id=”articleTwo” </div>
  • 58. Let’s grab content for articleTwo 1. grab Prezi embed code - ideally your own, but any will do for this example. 1. grab a paragraph of text from a reading response.
  • 59. Paste content into <div id=”articleTwo” 1. Paste Prezi embed code and paragraph into div: <div id=”articleTwo”> Prezi code text text </div>
  • 60. Format content 1. change Prezi width tp 100% 1. add <p> </p> tags around paragraph
  • 61. Styling articleTwo • • Since articleTwo is similar articleOne, we should roughly do the same things: Add <div id=”innerArticleTwo”> </div>
  • 63. Styling articleTwo • • On CSS, copy the code for #articleOne and #innerArticleOne Paste below and change the name to reflect the divs you created: #articleTwo & #innerArticleTwo
  • 64. Styling articleTwo • • • View your site We need to add margin or padding to the Prezi How do we do this?
  • 66. Let’s add a few more details • space between article two and the wrapper?
  • 67. Let’s add a few more details • space between article two and the wrapper? #wrapper { width: 800px; margin: 0px auto; background-color: rgba(204, 204, 204, .8); border-radius: 20px; padding-bottom: 15px; }
  • 68. Let’s add a few more details • drop shadows on the articles?
  • 69. Let’s add a few more details • drop shadows on the articles? • Add to the article divs box-shadow: 5px 5px 5px #333333;