Movatterモバイル変換


[0]ホーム

URL:


Syed Sami, profile picture
Uploaded bySyed Sami
PDF, PPTX1,958 views

Intro to HTML & CSS

The document provides an overview of HTML and CSS, covering topics such as the structure of an HTML document, HTML tags, CSS, and how to create a basic webpage. It discusses what HTML and CSS are, why they are needed, popular HTML tags, and gives examples of adding CSS to an HTML document. It also provides a hands-on tutorial showing how to build a simple website covering HTML basics and using CSS for styling.

Related topics:

Embed presentation

Download as PDF, PPTX
What we’ll cover?• What HTML and CSS is• Structure of a HTML Document• HTML editing software• How to create a webpage• Text, links, lists and images• Various other HTML tags• Adding CSS to a webpage• Where to learn more
What is HTML?
Hyper TextMarkup Language
Hypertext is textwhich contains links to other texts.Markup languages are designed for theprocessing, definition and presentation oftext. A markup language is to define thevisual elements of the web page.
Why do we need HTML?• To define the structure of a web page(HTML is the Skeleton of any modernwebsite)• To add contents to our page(text, pictures, videos etc…)• To link pages to one another in order tobuild an entire website
What is CSS?
HTML HTML+CSS
CascadingStyle Sheets
Cascading meansthat styles can fallfrom one stylesheet to another,enabling multiplestyle sheets to beused on one HTMLdocument.
Why do we need CSS?• Allows us to style any web page• CSS describes how HTML elements shouldbe displayed• Because of its cascading nature it allowsyou to overwrite any previously definedrules
Front-end Technologies
3 Awesome Front-endTechnologiesHTMLThe structure of a web pageCSSThe styling of a web pageJavaScriptMakes a web page interactive
HTML + CSS + JavaScript = Black Magic
How does awebpage work?
HTML + CSS = Source CodeUser-friendly visible result
How to view the pagesource?Right ClickSelect View pagesource from thedropdown menu
Page source example
How to inspect pageelements?Right ClickSelect Inspectfrom thedropdown menu
Page source example
Google Chrome Inspector in ACTION
• A programming software(but every text editor will do)...• Your file, named in .html→ my-own-page.html• A browser, to display your page.What do we need?
• FileZilla to upload the page to a server(FileZilla or CyberDuck)What do we need?
Coding correctly maximizes the chanceto have your page displayed correctly onmost of the platforms!
Email Clientsthe late runners• Think about mail clients aseven-less-compliant browsers.
Responsive Design• Adapts to different screen sizes• One version for all the devices thatsupports HTML and other modern webtechnologies
Now its easier than ever tocreate mobile apps usingHTML, CSS and JavaScript.
Mozilla's Firefox OS
Like every language, HTMLand CSS have rules andstandards.HTML5 CSS3
A - Boxes principle• A box into a box into a box… : HTML is likeRussian dolls.• Each of those boxes is called a tag.
A - Boxes principleHTMLDOCUMENTHEAD BODYTABLETITLECSSPARAGRAPHIMAGE
B - What is a tag?• A tag is used to declare a specific type ofcontainer or element.• TAG STRUCTURE :<name (attributes (style/css)) ... > [content] </name>
Example• Code<p align=“center” style=“font-size: 34px; color: red;”>Hello World</p>• ResultHello World !
C - A Basic Page<!DOCTYPE html ><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>My page</title></head><body><p align=“center" style="font-size:14px; color:#c00;">Hello World!</p></body></html>Whichlanguageisused→HTMLThedocumentHEAD - here:- Specialcharacters- PagetitleBody→CONTENT(hereaparagraph)Hello World !
So… where is the CSS?
Method - 1<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>My page</title></head><body><p align="justify" style="font-size:14px;color:#c00;> Hello World!</p></body></html>
<!doctype html><html><head><title>My page</title><style type="text/css">.p {font-size: 14px;color: #c00;text-align: center;}</style>.</head><body><p>Hello World !</p></body></html>Method - 2
<!doctype html><html><head><title>My page</title><link rel="stylesheet" type="text/css" href="my-style.css">.</head><body><p>Hello World !</p></body></html> p {font-size: 14px;color: #c00;text-align: justify;}my-style.css :Method - 3
D – Popular HTML tags• Heading• Paragraph• Anchor / Link• Image• Unordered List• List Item• Horizontal Rule• Division• Table<h1> - <h6><p><a><img><ul><li><hr><div><table>
Time to talk about CSS
Hands-on TutorialLets build a website and learnmaking mistakes!
Step-1• Create a folder named Hello [Syed]• Fire up your code editor• Write Hello World and save the file asindex.html• Create another file named style.css
Basic HTML Structure
Let’s give a title to our webpage
Comments
Populate Body : Header section
Populate Body : About Me section
ContactForm
Image Gallery Section
Horizontal Row
Newsletter Section
Footer Section
Closing Body and HTMLtags
Styling Headersection
Padding: 100pxPadding: 100px
Styling About mesection
Link an externalstyle sheete.g. style.css
Align Centerthe page
External FontHTMLCSS
HTML
CommonStyles
StylingButton
StylingButton
StylingButton
StylingButton
LinkingButton
StylingButton
StylingHeader section
StylingHeader section
StylingHeader section
StylingAbout me section
StylingAbout me section
StylingContact form section
StylingContact form section
StylingContact form section
Mobile Layoutwith Table tag
Mobile Layoutwith <div> tag
StylingGallery section
hr section
Newslettersection
StylingContact form section
https://codepen.io/sami3d/pen/YZbGmq
Why do they get rendereddifferently?• They are hosted in a 3rd party server• Because of security issues• Different email clients uses differentrendering engine
Solution?• We design them considering its 1995!!• We use tables• We use inline css• We avoid complicated Layouts• We avoid HTML5 and CSS3
Nothing !
<table width="300" height="200" align="center"><tr style="font-size:18px;color:#000000;" align="center"><td width="100" style="background-color:#CC0000;">Holly</td><td style="background-color:#00CCFF, color:#FFFFFF;">Molly !</td></tr></table>Holly Molly !
Some tips:• Use of <table> instead of <div>• Sliced images have to havestyle="display:block;".• Any special character in text (é, à, “, €, …)should be encoded :é → &eacute; OR € → &euro;
Some tips:• CSS style has to be mainly inline (inside thetag’s style=" " attribute). If there is some CSSin the <head> section, it’s a best practice tocopy and put them at the bottom again.
Some tips:• “Pixels” (image of 1x1 pixel),like any content, has to bebefore closing </body></html>tags
THE NET NINJAInteractive LessonsVideo Tutorials
Things we have discussed• What HTML and CSS is• Structure of a HTML Document• HTML editing software• How to create a webpage• Text, links, lists and images• Various other HTML tags• Adding CSS to a webpage• Adding JavaScript to a webpage• Where to learn more
Intro to HTML & CSS

Recommended

PDF
Introduction to HTML and CSS
PDF
HTML & CSS Masterclass
PPTX
HTML, CSS and Java Scripts Basics
PPT
Introduction to Cascading Style Sheets (CSS)
PPTX
Css ppt
PPTX
Html n CSS
PPTX
Html
PDF
Intro to HTML and CSS basics
PPTX
HTML-(workshop)7557.pptx
PDF
Html / CSS Presentation
PPTX
(Fast) Introduction to HTML & CSS
PPTX
Introduction to CSS
PPTX
Html
PPTX
Basic Html Knowledge for students
PPT
Advanced Cascading Style Sheets
PPTX
PPT
Css Ppt
PPTX
HTML/HTML5
PPT
PPTX
Html5 and-css3-overview
PPTX
HTML (Web) basics for a beginner
ODP
CSS Basics
PPTX
Css selectors
PDF
CSS Grid
PPT
CSS for Beginners
PPTX
jQuery
PPTX
Introduction to HTML and CSS
PPTX
Web development using HTML and CSS

More Related Content

PDF
Introduction to HTML and CSS
PDF
HTML & CSS Masterclass
PPTX
HTML, CSS and Java Scripts Basics
PPT
Introduction to Cascading Style Sheets (CSS)
PPTX
Css ppt
PPTX
Html n CSS
PPTX
Html
Introduction to HTML and CSS
HTML & CSS Masterclass
HTML, CSS and Java Scripts Basics
Introduction to Cascading Style Sheets (CSS)
Css ppt
Html n CSS
Html

What's hot

PDF
Intro to HTML and CSS basics
PPTX
HTML-(workshop)7557.pptx
PDF
Html / CSS Presentation
PPTX
(Fast) Introduction to HTML & CSS
PPTX
Introduction to CSS
PPTX
Html
PPTX
Basic Html Knowledge for students
PPT
Advanced Cascading Style Sheets
PPTX
PPT
Css Ppt
PPTX
HTML/HTML5
PPT
PPTX
Html5 and-css3-overview
PPTX
HTML (Web) basics for a beginner
ODP
CSS Basics
PPTX
Css selectors
PDF
CSS Grid
PPT
CSS for Beginners
PPTX
jQuery
Intro to HTML and CSS basics
HTML-(workshop)7557.pptx
Html / CSS Presentation
(Fast) Introduction to HTML & CSS
Introduction to CSS
Html
Basic Html Knowledge for students
Advanced Cascading Style Sheets
Css Ppt
HTML/HTML5
Html5 and-css3-overview
HTML (Web) basics for a beginner
CSS Basics
Css selectors
CSS Grid
CSS for Beginners
jQuery

Similar to Intro to HTML & CSS

PPTX
Introduction to HTML and CSS
PPTX
Web development using HTML and CSS
PDF
Introduction to HTML-CSS-Javascript.pdf
PPTX
Basics of Front End Web Dev PowerPoint
PDF
Thinkful - Frontend Crash Course - Intro to HTML/CSS
PPTX
Intro to Html, CSS a beginner friendly guide.pptx
PPTX
wd project.pptx
PPT
Introduction css
PPTX
GDG On Campus NBNSCOE Web Workshop Day 1 : HTML & CSS
PPTX
HTML5_CSS_Lesson foe grade 7 students_Plan.pptx
PPT
Basic HTML/CSS
PDF
Punch it Up with HTML and CSS
PPTX
Rakshat bhati
PPT
ppt.ppt
PDF
slidesgo-mastering-html-and-css-a-comprehensive-guide-to-tags-and-elements-20...
PPT
Introduction css
PDF
Girls Can Code East Brunswick Workshop Slides
PDF
HTML+CSS: how to get started
PDF
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
PDF
3 coding101 fewd_lesson3_your_first_website 20210105
Introduction to HTML and CSS
Web development using HTML and CSS
Introduction to HTML-CSS-Javascript.pdf
Basics of Front End Web Dev PowerPoint
Thinkful - Frontend Crash Course - Intro to HTML/CSS
Intro to Html, CSS a beginner friendly guide.pptx
wd project.pptx
Introduction css
GDG On Campus NBNSCOE Web Workshop Day 1 : HTML & CSS
HTML5_CSS_Lesson foe grade 7 students_Plan.pptx
Basic HTML/CSS
Punch it Up with HTML and CSS
Rakshat bhati
ppt.ppt
slidesgo-mastering-html-and-css-a-comprehensive-guide-to-tags-and-elements-20...
Introduction css
Girls Can Code East Brunswick Workshop Slides
HTML+CSS: how to get started
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
3 coding101 fewd_lesson3_your_first_website 20210105

Recently uploaded

PDF
[BROCHURE] Italy Tour Project | @SlideON
PPTX
Presentation - The First Christmas Story.pptx
PPTX
aaabbbcccdddeeeefffggghhcute kitties.pptx
PPTX
solar system desing for multi level module
PPTX
Artificial Intelligence basic notes for engineering.pptx
PDF
International Journal of Information Technology, Modeling and Computing (IJITMC)
PDF
Designing_the_AI_Cosmos_with_Indian_Values.pdf
PPTX
Dropshare 6.8.0 Crack for macOS Download
PPTX
Become a Professional UI/UX Designer by Learning How to Create Beautiful, Use...
PDF
mahad home wifi 6 setup presentation system.pdf
PDF
Chapter _4_Shaft Design_Key_Bearing_M_E_Design.pdf
PDF
Casual Winter Collection 2024-25 Style Guid
 
PPTX
Staffing Board - MICU1111111111111111111
PPTX
Test Powerpoint with embedded video.pptx
PDF
induction and two in one event with party
PDF
Morgenbooster_Drakonheart_Designing_for_creative_kids.pdf
PDF
Farm-structures-housing-cow-calves-youngstock_compressed.pdf
PPTX
Optimization of Lightweight Concrete Using Vermiculite, Silica Fume & Naphtha...
PPTX
Chapt_4[1].ppt very interseting and important
PDF
12 Mobile App UI:UX Design Best Practices Updated 2025.pdf
[BROCHURE] Italy Tour Project | @SlideON
Presentation - The First Christmas Story.pptx
aaabbbcccdddeeeefffggghhcute kitties.pptx
solar system desing for multi level module
Artificial Intelligence basic notes for engineering.pptx
International Journal of Information Technology, Modeling and Computing (IJITMC)
Designing_the_AI_Cosmos_with_Indian_Values.pdf
Dropshare 6.8.0 Crack for macOS Download
Become a Professional UI/UX Designer by Learning How to Create Beautiful, Use...
mahad home wifi 6 setup presentation system.pdf
Chapter _4_Shaft Design_Key_Bearing_M_E_Design.pdf
Casual Winter Collection 2024-25 Style Guid
 
Staffing Board - MICU1111111111111111111
Test Powerpoint with embedded video.pptx
induction and two in one event with party
Morgenbooster_Drakonheart_Designing_for_creative_kids.pdf
Farm-structures-housing-cow-calves-youngstock_compressed.pdf
Optimization of Lightweight Concrete Using Vermiculite, Silica Fume & Naphtha...
Chapt_4[1].ppt very interseting and important
12 Mobile App UI:UX Design Best Practices Updated 2025.pdf

Intro to HTML & CSS


[8]ページ先頭

©2009-2025 Movatter.jp