Web development basics
-
Upload
kalluri-vinay-reddy -
Category
Technology
-
view
142 -
download
0
description
Transcript of Web development basics
![Page 1: Web development basics](https://reader034.fdocuments.in/reader034/viewer/2022042606/54b193924a795971648b456b/html5/thumbnails/1.jpg)
WEB DEVELOPMENT BASICS
KALLURI VINAY REDDY
SCHOOL OF COMPUTER SCIENCE AND ENGINEERING
12MSE1013
VIT UNIVERSITY CHENNAI CAMPUS
MOBILE NO: 9884228431
![Page 2: Web development basics](https://reader034.fdocuments.in/reader034/viewer/2022042606/54b193924a795971648b456b/html5/thumbnails/2.jpg)
HTML AND CSS
![Page 3: Web development basics](https://reader034.fdocuments.in/reader034/viewer/2022042606/54b193924a795971648b456b/html5/thumbnails/3.jpg)
HOW THE WEB WORKS?• WWW use classical client / server architecture
• HTTP is text-based request-response protocol
HTTPPage request
HTTPServer response
Client running web browserServer running web server softwareIIS, APACHE etc.
![Page 4: Web development basics](https://reader034.fdocuments.in/reader034/viewer/2022042606/54b193924a795971648b456b/html5/thumbnails/4.jpg)
WHAT IS A WEB PAGE?
• Web pages are text files containing HTML
• HTML – Hyper Text Markup Language
• A notation for describing
• document structure (semantic markup)
• formatting (presentation markup)
• Looks (looked?) like:
• A Microsoft Word document
• The markup tags provide information about the page content structure.
![Page 5: Web development basics](https://reader034.fdocuments.in/reader034/viewer/2022042606/54b193924a795971648b456b/html5/thumbnails/5.jpg)
WHY LEARN HTML?
• Every webpage you look at is written in a language called HTML.
• You can think of HTML as the skeleton that gives every webpage structure.
• In this course, we'll use HTML to add paragraphs, headings, images and links to a webpage.
![Page 6: Web development basics](https://reader034.fdocuments.in/reader034/viewer/2022042606/54b193924a795971648b456b/html5/thumbnails/6.jpg)
HTML DEFINITION
• HTML stands for Hyper Text Mark-up Language.
• Hypertext means "text with links in it." Any time you click on a word that brings you to a new webpage, you've clicked on hypertext!
• A mark-up language is a programming language used to make text do more than just sit on a page: it can turn text into images, links, tables, lists, and much more. HTML is the mark-up language we'll be learning.
![Page 7: Web development basics](https://reader034.fdocuments.in/reader034/viewer/2022042606/54b193924a795971648b456b/html5/thumbnails/7.jpg)
CSS- CASCADING STYLE SHEETS
• What makes webpages pretty?
• That's CSS—Cascading Style Sheets.
• Think of it like skin and makeup that covers the bones of HTML. We'll learn HTML first, then worry about CSS in later courses.
![Page 8: Web development basics](https://reader034.fdocuments.in/reader034/viewer/2022042606/54b193924a795971648b456b/html5/thumbnails/8.jpg)
SKELETON OR SYNTAX
• The first thing we should do is to setup the skeleton of the web page.
• Always put <!DOCTYPE html> on the first line.
• It tells the web browser what the is being read by the browser in this case it HTML.
• Always put the <html> in the first line in order to start the document and end with </html>
• Ex:
• <html>
</html>
![Page 9: Web development basics](https://reader034.fdocuments.in/reader034/viewer/2022042606/54b193924a795971648b456b/html5/thumbnails/9.jpg)
EXAMPLE:
• <!DOCTYPE html>
• <html>
• <strong>learn html in very interactive way</strong>
• <strong>vinay reddy</strong>
• </html>
![Page 10: Web development basics](https://reader034.fdocuments.in/reader034/viewer/2022042606/54b193924a795971648b456b/html5/thumbnails/10.jpg)
BASIC TERMINOLOGY
• To learn more about HTML ,we should learn how to talk about HTML.
• Already you seen we use < > a lot.
• Things inside < > are called as tags.
• Tags nearly always come in pairs: an opening tag and a closing tag.
• Example of opening tag:<html>
• Example of closing tag: </html>
You can think of tags as being like parentheses: whenever you open one, you should close it.
![Page 11: Web development basics](https://reader034.fdocuments.in/reader034/viewer/2022042606/54b193924a795971648b456b/html5/thumbnails/11.jpg)
MAKE THE HEAD
• Everything in our html file will go between the opening <html> and closing </html> tags.
• There are always two parts to an html file:the head and the body .
• let’s start with the head.
• The head contains information about your HTML file, like it’s title.
• The title is what we see in the browser’s title bar or page tab
![Page 12: Web development basics](https://reader034.fdocuments.in/reader034/viewer/2022042606/54b193924a795971648b456b/html5/thumbnails/12.jpg)
EXAMPLE:
• <!DOCTYPE html>
• <html>
• <head>
• <title>Bad to the Bonze Webpage Inc.</title>
• I WILL DO IT</head>
• </html>
![Page 13: Web development basics](https://reader034.fdocuments.in/reader034/viewer/2022042606/54b193924a795971648b456b/html5/thumbnails/13.jpg)
PARAGRAPHS IN THE BODY
• The body is where you put your content, such as text, images and links.
• The content in the body is what will be visible on the actual page.
• The body goes inside the <html> tags ,right after the <head> tags
• <p> </p> will be the syntax for paragraphs to insert in html
![Page 14: Web development basics](https://reader034.fdocuments.in/reader034/viewer/2022042606/54b193924a795971648b456b/html5/thumbnails/14.jpg)
EXAMPLE:
• <!DOCTYPE html>
• <html>
• <head>
• <title>MS SOFTWARE ENGINEERING</title>
• <body>
• <p>the only thing i like in codecademy is it very patient in teaching i like it </p>
• <p>my name is vinay reddy</p>
• </body>
• </head>
• </html>
![Page 15: Web development basics](https://reader034.fdocuments.in/reader034/viewer/2022042606/54b193924a795971648b456b/html5/thumbnails/15.jpg)
PARAGRAPHS AND HEADINGS
• We have learned when and why we use HTML. We have also learned how to:
• Set up an HTML file with tags
• Title the webpage(in the <head>)
• Create paragraphs(in the <body>) with <p> tags
• The next step is to give our paragraphs heading using heading tags
• Let’s start with the <h1> tag.
• The content between this tag will be the biggest!
![Page 16: Web development basics](https://reader034.fdocuments.in/reader034/viewer/2022042606/54b193924a795971648b456b/html5/thumbnails/16.jpg)
EXAMPLE:
• <!DOCTYPE html>
• <html>
• <head>
• <title>Headings & Paragraphs</title>
• <h1>heading name</h1>
• <P>TH ONLY THING I KNOW IS CODING</P>
• <P>PROGRAMMING AT DIFFERENT LEVELS</P>
• </head>
• <body>
• </body></html>
![Page 17: Web development basics](https://reader034.fdocuments.in/reader034/viewer/2022042606/54b193924a795971648b456b/html5/thumbnails/17.jpg)
HYPERLINKS
• What if you wanted to send the user to another part of your website, or another website altogether? You use hyperlinks, or links for short!
• First, there's an opening <a> tag and that has an attribute called href.
• The href value tells your link where you wanted to go, in this case
• http://www.codecademy.com
• Then you have a description of your link between your opening<a> and closing </a> tags.
• This is what you will be able to click on.
• Finally, you have your closing </a> tag.
![Page 18: Web development basics](https://reader034.fdocuments.in/reader034/viewer/2022042606/54b193924a795971648b456b/html5/thumbnails/18.jpg)
EXAMPLE:• <!DOCTYPE html>
• <html>
• <head>
• <title>hyperlink</title>
• </head>
• <body>
• <a href="http://www.codecademy.com">My Favourite Site!</a>
• </body>
• </html>
![Page 19: Web development basics](https://reader034.fdocuments.in/reader034/viewer/2022042606/54b193924a795971648b456b/html5/thumbnails/19.jpg)
ADDING IMAGES
• You can add images to your websites to make them look fancy.
• We use an image tag, like so:<img>.
• This tag is a bit different from the others. Instead of putting the content between the tags, you tell the tag where to get the picture using src.
• It’s also different because there is no ending tag.it has / in the tag to close it:
• <img src=“url”>
![Page 20: Web development basics](https://reader034.fdocuments.in/reader034/viewer/2022042606/54b193924a795971648b456b/html5/thumbnails/20.jpg)
EXAMPLE:
• <!DOCTYPE html>
• <html>
• <head>
• <title>IMAGES</title>
• </head>
• <body>
• <img src=“ ” />
• <img src=“ ”/>
• </body>
• </html>
![Page 21: Web development basics](https://reader034.fdocuments.in/reader034/viewer/2022042606/54b193924a795971648b456b/html5/thumbnails/21.jpg)
REFERENCES
• www.codecademy.com
Head first web design .
Learning web design-Jennifer Niederst Robbins
www.w3schools.com