Coding with HTML {. THE BASICS { What is HTML and how can you use it to make websites?

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

Chapter 3 – Web Design Tables & Page Layout
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
CSS Basics Style and format your web site using CSS.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Cascading Style Sheets
Cascading Style Sheets
Today CSS HTML A project.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Very quick intro HTML and CSS. Sample html A Web Title.
9-May-15 More CSS. 2 A different emphasis CSS is the same for XML as it is for HTML and XHTML, but-- XML contains no display information If you want your.
Today’s objectives Site performance Padding, Margins, Borders
Week 9 Using the Box Properties. 9-2 The CSS Visual Formatting Model Describes how the element content boxes should be displayed by the browser –Based.
Tutorial 4: Creating page layout with css
Streamlining Website Development in Dreamweaver Roger L. Runquist Western Illinois University Roger L. Runquist Western Illinois University.
4.01 Cascading Style Sheets
14-Jul-15 CSS Applications to XML. 2 A different emphasis CSS is the same for XML as it is for HTML, but-- HTML already does a pretty good job of layout.
HTML. Goals How to use the Komodo editor HTML coding and testing Basic HTML tags List and Images Tables and Links At least 2 pages and navigation
Tags through Forms. This element is required for all HTML pages It must be at the top of every page of every website We’ll see later on why it is important.
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
Selectors thru Borders. CSS – Cascading Style Sheets – is a way to style HTML HTML is the content base of a web page CSS provides the presentation qualities.
1 The Structure of a Web Table beginning of the table structure first row of three in the table end of the table structure table cells You do not need.
Cascading Style Sheets – Block Level. Block Level Style So far we have done text-level CSS With block level CSS, we used a generic container tag Similarly.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Dreamweaver -- CSS. Dreamweaver -- MX New icons are added in MX Most of the features commonly used in web design, and are same as FrontPage. New feature.
Principles of Web Design 6 th Edition Chapter 10 – Data Tables.
Eat Your Words! Creating webpage Layout. CONTENT The Layout of a Webpage HEADER FOOTER Each of these sections represents a ‘div’ (or divider). By linking.
CSS The Definitive Guide Chapter 8.  Allows one to define borders for  paragraphs  headings  divs  anchors  images  and more.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
HTML Overview Part 4 – Tables 1. HTML Tables  Tables are defined with the tag pair.  A table is divided into rows with tag pairs. o tr stands for "table.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
More Basic HTML. Add spacing (single & double space) Save Refresh Add horizontal rule Add comments Add styles Add headings Add features Add alignments.
15.2 More Basic HTML. More Basic HTML Add spacing (single & double space) Save Refresh Add horizontal rule Add comments Add styles Add headings Add features.
 A style sheet is a single page of formatting instructions that can control the appearance of many HTML pages at once.  If style sheets accomplished.
Unit 5 – HTML Tables Instructor: Brent Presley.
WRT235: Writing in Electronic Environments CSS Classes, IDs, divs.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Chapter 12 FRAMES. HOW FRAMES WORK When you view a framed page in a browser, you are actually looking at several HTML documents at once. The key to making.
Today’s objectives  Assignment 1  Padding, Margins, Borders  Fluid Layout page  Building accessible Table  Element size with padding and border 
HTML: Hyptertext Markup Language Doman’s Sections.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Web Foundations THURSDAY, OCTOBER 3, 2013 LECTURE 6: CSS CONTINUED.
>> The “Box” Model. Pre-requisite Create a new project in Netbeans called Week5 Create a new html file and name it box.html Create a new css file and.
1 CS428 Web Engineering Lecture 08 Border, Margin, Padding … (CSS - III)
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, you will learn:  CSS Box Model  CSS properties for border  CSS properties for.
11/12/2015 Box Model Reed Crouch. 11/12/2015  HTML elements can be considered as boxes. In CSS, the term "box model" is used when referring to layout.
Web Design (12) CSS Introduction. Cascading Style Sheets - Defined CSS is the W3C standard for defining the presentation of documents written in HTML.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
Extra-simplified.  Only truly happen when the CSS and HTML are defined as separate files (external style sheet) Introduction The main idea of CSS is.
Coding with HTML/CSS Quiz { } Play as a PowerPoint slideshow for answers.
1 Preparation for site Create a folder in MyDocuments: beavercheese. Create a subfolder, images Classes, career, DW beginner Download.
5 th ed: Chapter 4 4 th ed: Chapter 5 SY306 Web and Databases for Cyber Operations SlideSet #5: Advanced CSS.
Your HTML website creating your first html file. Creating an HTML FIle Open note pad from accessories, programs. Write code. Save and view. In 3 Steps.
HTML and Dreamweaver November 11th. Agenda Box Model Displaying and positioning elements – Padding – Margin – Float – Display – Position HTML Demo.
CSS Box Model. What is the Box Model? Each XHTML element appearing on our page takes up a "box" or "container" of space. Each box size is affected not.
Tutorial #5 Working with the Box Model. Tutorial #4 Review - CSS Create a homework page Final Project Discussion Exam on Blackboard Styling Lists (List-style-type,
CS 120: Introduction to Web Programming Lecture 10: Extra Features and Website Design Part 1 Tarik Booker CS 120 California State University, Los Angeles.
Chapter 4 and 5. Objectives Introduce markup: elements and attributes How browsers interpret HTML documents Basic structure of HTML document What do style.
Revised June 2008 Online PD Basic HTML1 Let’s Try It!  Open Notepad oStart > All Programs > Accessories > Notepad oDon’t get WordPad by mistake – won’t.
Unit 3 - Review. Topics 1. Tag, Attribute, Value 2. CSS Rule Syntax + link 3. Categories of Selectors 4. Inline vs Block Tags 5. CSS Layout 6. CSS Box.
CSS Layouts: Grouping Elements
Cascading Style Sheets (Layout)
HTML Intro.
More Basic HTML 2 assignments: 1—complete the worksheet
Training & Development
Presentation transcript:

Coding with HTML {

THE BASICS { What is HTML and how can you use it to make websites?

 It’s how every website is made!  Everyone should know how to code—it can help you get a job!  You can use code that you make 100% or use websites like Google Sites or Weebly to create your own website!

 It’s how every website is made!  Everyone should know how to code—it can help you get a job!  You can use code that you make 100% or use websites like Google Sites or Weebly to create your own website!

 Websites are made up of a bunch of different pieces that you create with tags –,,,  HTML builds the website, CSS makes it look pretty

Divs Contain all of the text, pictures, ect. on the page Tables Arrange content in a grid Headers Large titles to tell you what sections are about Text Each paragraph should have its own tags Images Use an image’s URL or its location in your files Links Put a website’s URL in the quotation marks

CREATING A WEBPAGE { How do you turn a blank file into the beginning of a website?

Find your computer’s default text editing program (usually Notepad for Windows and TextEdit for Mac) and open a new file. Save your file by naming it whatever you want with.html at the end—this is how your computer knows it’s a webpage. Right-click the file and choose to open it in a browser. You’ll end up with a blank website in the browser window.

 Type “ ” at the top of your file. Underneath this, type “ ”  This way, your computer knows that everything between these tags is HTML, so it can now interpret it correctly. Add a few blank lines between the two tags for you to type in—don’t write anything outside these tags.

 Type and tags inside your html tags. This area of your code tells the browser information about your website that won’t actually show up on the main white area.  Add and tags and put whatever you want your website to be called in between them.  Save your file, and when you refresh your website in the browser, the tab at the top will have your website’s title on it!

 Underneath your tags, type and tags.  This is the main part of the webpage that will show up in the browser. Everything you code from now on will be in the middle of these tags.

 Add text inside your body tags, save your file, and see them appear in your web browser!  Continue adding whatever else you want to your website!

 If you want to incorporate CSS into your file, add and tags anywhere inside the tags.

USING TAGS { Putting together the basic components of your webpage

 Short for divider – they’re the invisible building blocks that decide where content is placed  You can put a div inside a div, and then another div inside that, ect. content here

 A grid that can have as many rows/columns as you like  Start with tags. Then, create as many rows as you like with. Create the columns inside these rows with. One Two Three Four OneTwo ThreeFour

 You can insert images from a website (first example) or by using the file path to where it is on your computer  You DO NOT need to end the tag. OR

 Headers make the text inside larger and bold. There are 6 you can use—h6 is the smallest.  You can use CSS to make your headers change appearance as well Title Text

 To link to a website, use tags.  The “href” part tells the computer where to point the link to Link Text

USING CSS { Making your website look extra fancy

 You can put CSS between and tags in your file’s  This is what CSS formatting looks like (more info in the next slide) div { height: 100%; width: 100%; }

div { height: 100%; width: 100%; } Style tags Name of what you’re applying the style to: This name can be a HTML tag (div, table) an ID (name you create yourself that starts with a hashtag, for example: #top) a class (name you create yourself that starts with a period, for example.top) Each individual thing’s style must be enclosed in curly braces

 You can name an object with an ID or class and refer to it in the style to change only that object  Classes are meant to be used for multiple objects that you want to look the same  IDs are meant to be used for one specific object that you want to change the look of … …

 For a quick and easy appearance change, just add the style right in the HTML tags  Add the word “style” to the tag and put your style inside quotation marks with each part separated by a semicolon …

Change the amount of space something takes up on a page With percentages: Decide what % the object takes up of the space it’s in Width: 100%; Height: 100%; With pixels: Decide how many pixels (tiny squares that make up the picture on your computer) the object takes up Width: 100px; Height: 250px;

This div has a width of 1000px, the same as the website, and a height of 250px This image of puppies has been stretched by leaving its width at 100% but changing its height to 50%

Push content away from the edges of a div or table so that it doesn’t touch the edge These are some words A div without padding A div with padding on the top and left

Just like height/width, you can use either percentages or pixels for padding  padding: 10px;  padding-left: 10px;  padding-right: 10px;  padding-top: 10px;  padding-bottom: 10px;  padding: 10%;  padding-left: 10%;  padding-right: 10%;  padding-top: 10%;  padding-bottom: 10%;

Push different objects away from each other so that they don’t touch Two divs without margin Two divs, one with a margin-bottom

Just like height/width, you can use either percentages or pixels for margins  margin: 10px;  margin-left: 10px;  margin-right: 10px;  margin-top: 10px;  margin-bottom: 10px;  margin: 10%;  margin-left: 10%;  margin-right: 10%;  margin-top: 10%;  margin-bottom: 10%;

Changes the color of text using either words (red) or hexadecimal codes (#00FFFF) Some red text Some purple text p { color: #C290D4; } … Some purple text

Changes the color of page elements using either words (red) or hexadecimal codes (#00FFFF). You can apply this to divs, tables, or the entire page. Change color of entire pagebody { background-color: #000000; } Change color of one element #header { background-color: #EE89EF; }

The text on your webpage has several different attributes that you can change Style AttributeCode Sizefont-size: 10px; Family (Georgia, Verdana, ect.)font-family: tahoma; Boldfont-weight: bold; Text Italicfont-style: italic; Text Underlinedtext-decoration: underline; Text

Borders can be placed either all around an object or on specific sides border: 1px solid #000000; Border styles must include the thickness in pixels, the style of the line (solid, dashed, dotted), and the color of the line border-right: 1px solid #000000; border-left: 1px dotted #000000; border-top: 1px dashed #000000; border-bottom: 1px dashed #000000;

Congratulati ons! { < you now understand the basic principles of HTML and CSS! />