IN THIS LESSON, WE WILL BECOME FAMILIAR WITH HTML AND BEGIN CREATING A WEB PAGE IN YOUR COMPUTER HTML – the foundation.

Slides:



Advertisements
Similar presentations
HTML: HyperText Markup Language Hello World Welcome to the world!
Advertisements

Cascading Style Sheets
HTML Overview - Cascading Style Sheets (CSS). Before We Begin Make a copy of one of your HTML file you have previously created Make a copy of one of your.
HTML / CSS – Basics Why the heck are we doing this?
HTML – A Brief introduction Title of page This is my first homepage. This text is bold  The first tag in your HTML document is. This tag tells your browser.
CSS. CSS, or Cascading Styles Sheets, is a way to style HTML. Whereas the HTML is the content, the style sheet is the presentation of that document.
End User Computing An Introduction to CSS Sujana Jyothi Research Lab1, Callan Building, Department of Computer Science
CSW131 Steven Battilana 1 CSW 131 – Chapter 5 (More) Advanced CSS Prepared by Prof. B. for use with Teach Yourself Visually Web Design by Ron Huddleston,
How Tags are used to form your Web Page
HTML and Web Page Design Presented by Frank H. Osborne, Ph. D. © 2005 ID 2950 Technology and the Young Child.
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.
HTML. Goals How to use the Komodo editor HTML coding and testing – List and Images – Tables and Links – At least 2 pages and navigation –
Basics of HTML.
Creating a Simple Page: HTML Overview
Cascading Style Sheets Dreamweaver. Styles Determine how the HTML code will display Determine how the HTML code will display Gives designers much more.
Headings, Paragraphs, Formatting, Links, Head, CSS, Images
Week 4.  Three ways to apply CSS: Inline CSS Internal style sheets ( header style information) External style sheets.
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.
Links in HTML. Hyperlinks or links Millions of linked web pages make up the World Wide Web Used to connect a web page to another web page on the same.
Basic HTML Hyper text markup Language. Re-cap  … - The tag tells the browser that this is an HTML document The html element is the outermost element.
Pre-Coding Web Design – Sec 3-1 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Images, Hyperlinks, and Sound Module 2: XHTML Basics LESSON 3.
Styling and theming Build campaigns in style. What we'll look at... How a web document is structured How HTML and CSS fit together Tools you will need.
HTML. WHAT IS HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language A markup language is a set of.
More Basic HTML. Add spacing (single & double space) Save Refresh Add horizontal rule Add comments Add styles Add headings Add features Add alignments.
HTML CRASH COURSE. What is HTML?  Hyper Text Markup Language  The language used to make web pages  Written by using tags.
Getting Started with HTML Please use speaker notes for additional information!
Introduction to HTML. What is HTML? Hyper Text Markup Language (HTML) is a language for describing web pages. HTML is not a programming language, it is.
Cascading Style Sheets Orientation Learning Web Design: Chapter 11.
Web Programming Basics of HTML. HTML stands for Hyper Text Mark-up Language A mark-up language is different than those that you have learned before in.
HTML INTRODUCTION. What is HTML?  HTML stands for Hypertext Markup Language  Developed in 1990  Hidden code that helps us communicate with others on.
Creating Webpage Using HTML
JavaScript – The DOM JavaScript is object based The browser is object based – We can access the browser's objects in the same way we did JavaScript's Two.
HTML: Hyptertext Markup Language Doman’s Sections.
Definition CSS “Short for Cascading Style Sheets, a new feature being added to HTML that gives both Web site developers and users more control over how.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
Colors & Fonts Building a Website Lesson 7. Font Font The tag specifies the font face, font size, and color of text. The tag can have any or all of these.
L. Anne Spencer (c) 2001 Basic Web Design Document, text, & layout formatting tags & attributes.
HTML GUIDE Press F5 and then Click on the links on the left to get to the section you want Section 1: Getting Started Section 2: Moving Banner Section.
Cascading Style Sheets Creating a Uniform Site. Style Sheets  Style sheets are used for conformity on a web page or web site.  Style sheets eliminate.
The Teacher Computing HTML HyperText Markup Language.
Quick Questions 1. What does HTML stand for? 2. What are the three main languages of the Web? 3. What is the purpose of the tags? 4. Why do we indent different.
CSS Fun damentals The Document Hierarchy Element Relationships The Box Model.
Are You Smarter Than a 5 th Grader? 1,000,000 5th Grade HTML 5th Grade Syntax 4th Grade HTML 4th Grade Syntax 3rd Grade HTML 3rd Grade Syntax 2nd Grade.
Links in HTML What you need to know….. Hyperlinks or links Millions of linked web pages make up the World Wide Web Used to connect a web page to another.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
DOM (Document Object Model) - Parsing and Reading HTML and XML -
IN THIS LESSON, WE WILL BECOME FAMILIAR WITH HTML AND BEGIN CREATING A WEB PAGE IN YOUR COMPUTER HTML – the foundation.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
HTML Review * is used as a reference for most of the notes in this powerpoint.
Creating Your 1 st Web Page. Tags Refers to anything between on a webpage Most appear in pairs surrounding content Some appear as empty tags (no closing.
CSS IS A LANGUAGE DESIGNED TO TARGET HTML ELEMENTS AND NODES BY TYPE, CLASS, ID AND VALUE, AND CHANGE THEIR VALUES CSS – change how your HTML looks and.
- WE’LL LOOK AT THE POSITION PROPERTY AND HOW CSS RESOLVES CONFLICTS BETWEEN STYLING INSTRUCTIONS The position property; CSS specificity hierarchy.
Tutorial #1 Using HTML to Create Web Pages. HTML, XHTML, and CSS HTML – HyperText Markup Language The tags the browser uses to define the content of the.
IN THIS LESSON WE WILL REVIEW THE STRUCTURE OF THE INTERNET AND HOW BROWSERS ASSEMBLE WEBSITES BASED ON INSTRUCTIONS THEY RECEIVE FROM SERVERS. Internet.
XML DOM Week 11 Web site:
EXTERNAL STYLESHEETS AND MORE HTML STYLING HTML and CSS part 2.
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, we’ll cover:  Brief CSS review  Creating sections with the tag  Creating inline.
HTML Tutorial. What is HTML HTML is a markup language for describing web documents (web pages) HTML documents are described by HTML tags Each HTML tag.
Chapter 4 and 5. Objectives Introduce markup: elements and attributes How browsers interpret HTML documents Basic structure of HTML document What do style.
1 Introduction to HTML. 2 Definitions  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language of Web Pages on the World Wide Web.
Basic HTML Page 1. First Open Windows Notepad to type your HTML code 2.
INTERNET APPLICATIONS CPIT405 CSS Cascading Style Sheet Instructor: Omnia H. Alwazzan
Web Architecture & HTML
Web Basics: HTML/CSS/JavaScript What are they?
AN INTRODUCTORY LESSON TO MAKING A SIMPLE WEB PAGE By: RC Emily Solis
Basic HTML and Embed Codes
Document Object Model (DOM): Objects and Collections
HTML Structure.
Presentation transcript:

IN THIS LESSON, WE WILL BECOME FAMILIAR WITH HTML AND BEGIN CREATING A WEB PAGE IN YOUR COMPUTER HTML – the foundation

Housekeeping You will need to create a Github account. Go to Github.com and register there. Go to freecodecamp.com and create an account there. Go to Slack.com and install slack in your computer. I have sent you an invitation to join this group. Go to notepad-plus-plus.org and download and install Notepad++.

Review Recall how a browser constructs a Website from documents the server gives it, such as index.html. HTML shows the basic structure of the page, with text and links. Only very basic styling is possible with HTML. The browser parses index.html and other documents. Parsing means the browser reads one line at a time and does what each line says to do. Recall Object Oriented Programming: Everything is an object, with properties and values. Methods and functions can access and change properties and values.

HTML terms In HTML, objects are also called elements. Typical elements are paragraphs, text, links, headlines, boxes and even the HTML page itself. HTML elements can have properties like width, height, color and more. Tags define elements and hold instructions. In HTML, tags use arrows. Tags hold directions to the browser and the browser doesn’t display tags. Instead, the browser does what the tags instruct and browser displays that. Tags tell the browser what kind of element to display, like a paragraph or headline, and how to make it look.

HTML tags For example, this is how you create a paragraph in HTML: This is the text people see on the web page The browser doesn’t display the tags, but does show the text between the tags. Notice you must have opening and closing tags. This defines the element. Notice how the closing tag has a slash in it. A few tags are self closing and we’ll discuss those later. Consider the paragraph element we just created. What properties could it have? What values?

Your first HTML page Create a folder somewhere in your computer and call it projects Inside that, right-click and create a text document and call it index.html Open index.html with Notepad++ A browser needs to know what kind of document it’s dealing with. At the top of the document, type the opening HTML tag: At the bottom of the document, type the closing HTML tag:

Add sections Next, add head and body sections. The head section holds additional instructions for the browser but the browser doesn’t display anything that’s inside the element. Only the body section holds stuff that the browser will display. Indent every line two spaces.

Add text and other elements Inside body, type in a paragraph and add text and your name. Hello, my name is Marty Notice how is completely inside. That makes a child of

HTML attributes Remember how objects/elements have properties. Guess what – even properties can have their own properties! HTML also has the “attribute,” a special kind of property, because it has other properties. The code for an HTML attribute always has the attribute name, an equal sign (=), followed by quotes, another property, and value of the property, with ending quotes. If we wanted to make our blue, we need to give it three things: a style attribute, a color property and a value of blue.

The DOM Notice how your code is indented and some lines are indented more than others. Each line is its own object, also called a “node.” All the nodes combine to make the document tree. This is the Document Object Model. Later, we will learn how JavaScript can target nodes and change the values of their properties.

HTML documents have hierarchy and family structure In the HTML Document Object Model, everything is a node – every element and is a node and its attributes and properties are also nodes. All elements are nodes, but not all nodes are elements. The document itself is a document node. All HTML elements are element nodes. All HTML attributes are attribute nodes. Text inside HTML elements are text nodes. Elements can have child nodes that are other elements, text nodes or comment nodes.

Inheritance – children and parents Nodes contained inside the tags of other nodes are children of the nodes that contain them. Nodes are parents of the nodes inside their tags. Nodes that are before or after other nodes, but not inside them, are sibling nodes. Remember, nodes are objects and have properties and node properties have values.

Everything is a child of the element The and elements are children of the element All following elements are children of has a child: the text inside and its children are in notes has no child elements has one child, a element These elements are siblings Why? has 8 child elements. Can you name them? This is the first child of, and are siblings. What are their children? What element is the first child of ? What element is the third child of ? This is the second child of

More inheritance Nodes inherit properties and values from their parents. For example, if you make the text in the element blue, the text in all the child elements will be blue. You can change and make exceptions to inheritance, though. We use Cascading Style Sheets to give properties to HTML attributes, and to give values to those properties.