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

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

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

PPTX
Presentation - The First Christmas Story.pptx
PDF
SYS Office Portfolio - Trust the SYStem!
PPTX
aaabbbcccdddeeeefffggghhcute kitties.pptx
PPTX
solar system desing for multi level module
PPTX
Lectwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwure 8.pptx
PDF
International Journal of Information Technology, Modeling and Computing (IJITMC)
PPTX
Artificial Intelligence basic notes for engineering.pptx
PDF
Designing_the_AI_Cosmos_with_Indian_Values.pdf
PPTX
Dropshare 6.8.0 Crack for macOS Download
PDF
Cultural dimensions and global web user interface design
PDF
mahad home wifi 6 setup presentation system.pdf
PPTX
NETWORKING SECURITY PRESENTATION FROM ALI).pptx
PPSX
Gas Turbine simulation in thermoflow software PRO Overview.ppsx
PPTX
Test Powerpoint with embedded video.pptx
PDF
Morgenbooster_Drakonheart_Designing_for_creative_kids.pdf
PDF
induction and two in one event with party
PPT
THEORY OF ARCHITECTURE - LECTURE NOTES FOR REFERENCE
PDF
Farm-structures-housing-cow-calves-youngstock_compressed.pdf
PPTX
Presentation based on Dr Jibran Video .pptx
PPTX
Blue and Orange Colorful Playful Stop Bullying Campaign Presentation.pptx
Presentation - The First Christmas Story.pptx
SYS Office Portfolio - Trust the SYStem!
aaabbbcccdddeeeefffggghhcute kitties.pptx
solar system desing for multi level module
Lectwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwure 8.pptx
International Journal of Information Technology, Modeling and Computing (IJITMC)
Artificial Intelligence basic notes for engineering.pptx
Designing_the_AI_Cosmos_with_Indian_Values.pdf
Dropshare 6.8.0 Crack for macOS Download
Cultural dimensions and global web user interface design
mahad home wifi 6 setup presentation system.pdf
NETWORKING SECURITY PRESENTATION FROM ALI).pptx
Gas Turbine simulation in thermoflow software PRO Overview.ppsx
Test Powerpoint with embedded video.pptx
Morgenbooster_Drakonheart_Designing_for_creative_kids.pdf
induction and two in one event with party
THEORY OF ARCHITECTURE - LECTURE NOTES FOR REFERENCE
Farm-structures-housing-cow-calves-youngstock_compressed.pdf
Presentation based on Dr Jibran Video .pptx
Blue and Orange Colorful Playful Stop Bullying Campaign Presentation.pptx

Intro to HTML & CSS


[8]ページ先頭

©2009-2025 Movatter.jp