Working with HTML These are the examples you need to go over. Click on the name like HTML5intro.html and it will bring up the page. If you right click.

Slides:



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

HTML and CSS. HTML Hyper Text Markup Language Tells browser how to display text and images.
HTML popo.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Html: getting started HTML is hyper text markup language. It is what web browsers look at on the Internet. HTML documents should be created in a simple.
Cascading Style Sheets
Teppo Räisänen LIIKE/OAMK 2010
Chapter 3 – Designing your web pages Dr. Stephanos Mavromoustakos.
Creating and Editing a Web Page Using Inline Styles
Web Page Development Identify elements of a Web Page Start Notepad
Understanding HTML Style Sheets. What is a style?  A style is a rule that defines the appearance and position of text and graphics. It may define the.
HTML Concepts and Techniques Fourth Edition Project 3 Creating Web Pages with Links, Images, and Formatted Text.
HTML Comprehensive Concepts and Techniques Third Edition Project 3 Creating Web Pages with Links, Images, and Formatted Text.
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit F Working with Tables.
HTML (HyperText Markup Language)
More Basic HTML. Add spacing (single & double space) Save Refresh Add horizontal rule Add comments Add styles Add headings Add features Add alignments.
1 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles are normally stored in Style Sheets  Styles.
Html Basic Codes Week Two. Start Your Text Editor Windows use 'Notepad’ Macintosh use 'Simple Text'
Getting Started with HTML Please use speaker notes for additional information!
Getting Started with HTML Please use speaker notes for additional information!
CPSC 203 Introduction to Computers Lab 33 By Jie Gao.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
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.
HTML HyperText Markup Language ©Richard L. Goldman July 15, 2003.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
HTML Concepts and Techniques Fifth Edition Chapter 3 Creating Web Pages with Links, Images, and Formatted Text.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
This shows CIS17 and the first day introduction..
Click on CIS120/17 to go to website for course. The week of will tell you what is planned for the week and what has been assigned.
Creating Web Pages with Links, Images, and Embedded Style Sheets
HTML Help book. HTML HTML is the programming language used to make web pages for the Internet. HTML stands for Hyper Text Markup Language. HTML is made.
Web Page Design Mr. Gironda
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
WEB FOUNDATIONS CSS Overview. Outline  What is CSS  What does it do  Where are styles stored  Why use them  What is the cascade effect  CSS Syntax.
Fall 2016 CSULA Saloni Chacha
Let’s Try It! Open Notepad
Introduction to CSS Layout
Tutorial 1 – Creating Web Pages With HTML
INTRO TO WEB DEVELOPMENT html
Html.
Web Basics: HTML/CSS/JavaScript What are they?
HTML Basics.
Introduction to HTML:.
Extended Learning Module F
LAB Work 01 MBA 61062: E-Commerce
Introduction to basic HTML
>> Introduction to CSS
HTML GUIDE Press F5 and then
Jacksy Diaz came in to examplain how to use the MSDN alliance
Creating Tables in a Web Site Using an External Style Sheet
Chapter 1: Introduction to XHTML (part 1)
HTML Basics and CSS style
Intro to CSS CS 1150 Fall 2016.
HTML Robert McIntosh
Web Page Design Mr. Wilson
Most tags must have an open and a close in XHTML.
Intro to CSS CS 1150 Spring 2017.
CSS.
Creating Web Pages with Links, Images, and Formatted Text
5.2.3 Be able to use HTML and CSS to construct web pages
Introduction to Cascading Style Sheets (CSS)
Web Programming– UFCFB Lecture 11
What are Cascading Stylesheets (CSS)?
HTML Structure.
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
Creating and Editing a Web Page
Creating your first website
HTML & CSS 7 Languages in 7 Days.
Johan Ng and Muhammad Hazzry
Presentation transcript:

Working with HTML These are the examples you need to go over. Click on the name like HTML5intro.html and it will bring up the page. If you right click and select view source or view page source it will show you the code that generated the page. I went through images in this presentation to give you an idea of how to get started.

The <title> is in the head and it ends with </title> The title appears in the top left tag when the page is run in the browser. The first line is a tag <!DOCTYPE html> that tells the browser to use HTML5 when displaying the page. The second line <html> starts the html code. The HTML is broken down into the <head> and the </head> which closes the head and the information about the page like the title. Note that the end tag has a slash in fornt of head to tell that it is ending. Then the <body> starts and it contains the contents of the page. It ends with </body>. In the body I have a paragraph that use the tag <p> and when the text is written the paragraph is closed with </p>. The contents of the paragraph displays on the page.

Writing HTML5 When you write HTML or HTML5 (the newer version) you need to write it in a text editor such as Notepad or Notepad++ When you save the file do not put spaces inside the name. For example firstDB.html is a good name. You should not write first DB.html. You also need to have the .html extension. Remeber where you saved the page you wrote because you will need to find it to open it. When you want to run your page, you open a browser and you go to the drive and directory where you saved it and open it in the browser.

Saving the page I made a copy of the page we looked at and pasted it into notepad. Then I saved the page with a .html extension. Now I know where it is, so on the next slide I will open it in Firefox.

Opening HTML page in the browser I opened Firefox went to the G drive and the HTMLpages folder where I saved the file and clicked on it to open it.

The <br> means skip down a line and <br><br> will skip down two lines. It is like hitting enter on the keyboard. <ol> makes an ordered list with numbers and <ul> makes an unordered list with circle icons. Notice the close of the list with the slash </ol> and </ul>. Within the lists you can put list items using <li> and closing the list item with </li>.

More about code on next slide.

I tell the browser I am using it with the <style...> line. <!DOCTYPE html> <html> <head> <title>Introduction</title> <style type="text/css"> body { color: red; } p text-align: center; font-size: 2em; li color: green; </style> </head> <body> <p>This is an introduction to HTML.<br><br> Now I am going to make an ordered list followed by an unordered list!</p> <ol> <li>First item in the list</li> <li>Second item in the list</li> <li>Third item in the list</li> </ol> <ul> </ul> </body> </html> CSS (Cascading Style Sheets) let you separate the style from the content. I tell the browser I am using it with the <style...> line. Below the style I put the first thing I wanted to style which was the body. I wanted to pick a default font color so I put the two curly braces and inserted the thing I wanted to set which was color, followed by a colon, followed by what I wanted to set it to which was red followed by a semi-colon. For paragraphs, I put the p and set the text-align to centered and the font-size to 2em which means twice the normal size. For li I set the color to greeen. Note that the body color is overridden with green now.

I can insert headers using <h1> through <h6) which result in different sizes. Headers also are bold and have a blank line after them.

Look at this page and see how the style impacted it.

The image is added using <img src=”name of image”> The browser will then look for the image in the same folder as the page. If the image is not in the same folder, the coder needs to provide an address.

Note the cis code with img, this centers the image.