Movatterモバイル変換


[0]ホーム

URL:


Syed Sami, profile picture
Uploaded bySyed Sami
PDF, PPTX1,955 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
HTML & CSS Masterclass
PDF
Introduction to HTML and CSS
PPTX
HTML, CSS and Java Scripts Basics
PPTX
Css ppt
PPTX
Html
PPT
Introduction to Cascading Style Sheets (CSS)
PPTX
Html n CSS
PPTX
presentation in html,css,javascript
PPT
Eye catching HTML BASICS tips: Learn easily
PPTX
(Fast) Introduction to HTML & CSS
PDF
Intro to HTML and CSS basics
PPTX
Basic Html Knowledge for students
PPT
Css Ppt
PDF
Javascript basics
PDF
HTML CSS Basics
PPTX
html5.ppt
PPSX
Introduction to css
PPTX
HTML-(workshop)7557.pptx
PDF
Basic Details of HTML and CSS.pdf
PDF
Html,javascript & css
PPTX
Event In JavaScript
PPT
Introduction to CSS
PPTX
Html & CSS
PPTX
Front-end development introduction (HTML, CSS). Part 1
PPTX
HTML5 audio & video
PPT
Advanced Cascading Style Sheets
PPTX
Html5
PPT
Introduction css
PPT
Introduction css

More Related Content

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

What's hot

PPTX
presentation in html,css,javascript
PPT
Eye catching HTML BASICS tips: Learn easily
PPTX
(Fast) Introduction to HTML & CSS
PDF
Intro to HTML and CSS basics
PPTX
Basic Html Knowledge for students
PPT
Css Ppt
PDF
Javascript basics
PDF
HTML CSS Basics
PPTX
html5.ppt
PPSX
Introduction to css
PPTX
HTML-(workshop)7557.pptx
PDF
Basic Details of HTML and CSS.pdf
PDF
Html,javascript & css
PPTX
Event In JavaScript
PPT
Introduction to CSS
PPTX
Html & CSS
PPTX
Front-end development introduction (HTML, CSS). Part 1
PPTX
HTML5 audio & video
PPT
Advanced Cascading Style Sheets
PPTX
Html5
presentation in html,css,javascript
Eye catching HTML BASICS tips: Learn easily
(Fast) Introduction to HTML & CSS
Intro to HTML and CSS basics
Basic Html Knowledge for students
Css Ppt
Javascript basics
HTML CSS Basics
html5.ppt
Introduction to css
HTML-(workshop)7557.pptx
Basic Details of HTML and CSS.pdf
Html,javascript & css
Event In JavaScript
Introduction to CSS
Html & CSS
Front-end development introduction (HTML, CSS). Part 1
HTML5 audio & video
Advanced Cascading Style Sheets
Html5

Similar to Intro to HTML & CSS

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

Recently uploaded

PPTX
AnyTrans for iOS 8.9.14.20251127 With Crack for MacOS [Latest] pptx
PPTX
Wondershare Filmora 15.0.11 Crack for Mac Key Full Download [Latest] pptx
PPTX
Presentation - The First Christmas Story.pptx
PPSX
Gas Turbine simulation in thermoflow software PRO Overview.ppsx
PPTX
Soundtoys Mac v5.5.5.0 Crack for MacOS Full Version [Latest] pptx
PPTX
Staffing Board - MICU1111111111111111111
PDF
PX vs EM vs REM - Battle of CSS Units - Which to Use When?
PDF
Art and Visual Perception: A PSYCHOLOGY OF THE CREATIVE EYE
PPT
Affect of World Tourism on Climate Change.ppt
PDF
WEDDING STYLING / INTERIOR DESIGN PORTFOLIO 2025 SK
PPTX
coverpage for acr on professional code of ethics.pptx
PDF
Morgenbooster_Drakonheart_Designing_for_creative_kids.pdf
PDF
Architect Saleem khattak (Archi) Portfolio
PDF
Creating Magical CSS-Only Image Tilt Effects No JavaScript Required.pdf
PDF
Cultural dimensions and global web user interface design
PDF
induction and two in one event with party
PPTX
Blue and Orange Colorful Playful Stop Bullying Campaign Presentation.pptx
PPTX
iStat Menus 7.20 Crack for MacOS 2026 Full Version [Latest] pptx
PPT
THEORY OF ARCHITECTURE - LECTURE NOTES FOR REFERENCE
PDF
Advanced Computational Intelligence: An International Journal (ACII)
AnyTrans for iOS 8.9.14.20251127 With Crack for MacOS [Latest] pptx
Wondershare Filmora 15.0.11 Crack for Mac Key Full Download [Latest] pptx
Presentation - The First Christmas Story.pptx
Gas Turbine simulation in thermoflow software PRO Overview.ppsx
Soundtoys Mac v5.5.5.0 Crack for MacOS Full Version [Latest] pptx
Staffing Board - MICU1111111111111111111
PX vs EM vs REM - Battle of CSS Units - Which to Use When?
Art and Visual Perception: A PSYCHOLOGY OF THE CREATIVE EYE
Affect of World Tourism on Climate Change.ppt
WEDDING STYLING / INTERIOR DESIGN PORTFOLIO 2025 SK
coverpage for acr on professional code of ethics.pptx
Morgenbooster_Drakonheart_Designing_for_creative_kids.pdf
Architect Saleem khattak (Archi) Portfolio
Creating Magical CSS-Only Image Tilt Effects No JavaScript Required.pdf
Cultural dimensions and global web user interface design
induction and two in one event with party
Blue and Orange Colorful Playful Stop Bullying Campaign Presentation.pptx
iStat Menus 7.20 Crack for MacOS 2026 Full Version [Latest] pptx
THEORY OF ARCHITECTURE - LECTURE NOTES FOR REFERENCE
Advanced Computational Intelligence: An International Journal (ACII)

Intro to HTML & CSS


[8]ページ先頭

©2009-2025 Movatter.jp