o Line Breaks </body> </html> This is heading 1 This is some text. This is heading 2 This is some other text. This is heading 2

Similar documents
Introduction to HTML

HTML Text Formatting. HTML Session 2 2

Unit 2 - HTML Formatting

HTML Code: Headings HTML Headings Headings are defined with the <h1> to <h6> tags. <h1> defines the most important heading. <h6> defines the least

CSC 121 Computers and Scientific Thinking

HTML (Hypertext Mark-up language) Basic Coding

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

Markup Language SGML: Standard Generalized Markup Language. HyperText Markup Language (HTML) extensible Markup Language (XML) TeX LaTeX

A Balanced Introduction to Computer Science, 3/E

MMGD0204 Web Application Technologies. Chapter 3 HTML - TEXT FORMATTING

c122jan2714.notebook January 27, 2014

Web Publishing with HTML

HTML and CSS: An Introduction

The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data.

Unit 5 Web Publishing Systems Page 1 of 13 Part 4 HTML Part 4

Resetting Your Password

Review Question 1. Which tag is used to create a link to another page? 1. <p> 2. <li> 3. <a> 4. <em>

Web Designing HTML5 NOTES

Title: Sep 12 10:58 AM (1 of 38)

ITNP43: HTML Lecture 4

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

CMPT 165 Unit 2 Markup Part 2

HTML. Asst. Prof. Dr. Kanda Runapongsa Saikaew Department of Computer Engineering Khon Kaen University

Fairly advanced HTML

INTRODUCTION TO WEB USING HTML What is HTML?

HTML Hyperlinks (Links)

Tutorial 2 - HTML basics

Desire2Learn: HTML Basics

It is possible to create webpages without knowing anything about the HTML source behind the page.

markdown-guide Documentation

Cadbury World Themed Web Page

HTML BASICS. You can use cut and paste in Notepad as with most applications - Ctrl + C to copy,ctrl + X to cut, Ctrl + V to paste.

Programmazione Web a.a. 2017/2018 HTML5

INFORMATICA GENERALE 2014/2015 LINGUAGGI DI MARKUP CSS

Web Design 101. What is HTML? HTML Tags. Web Browsers. <!DOCTYPE html> <html> <body> <h1>my First Heading</h1> <p>my first paragraph.

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

Comp-206 : Introduction to Software Systems Lecture 22. Alexandre Denault Computer Science McGill University Fall 2006

CSS is applied to an existing HTML web document--both working in tandem to display web pages.

SPEED UP YOUR CODING PROCESS HTML INSIGHTS YOU DIDN T KNOW ABOUT. 1

Lava New Media s CMS. Documentation Page 1

Country Communication Pages

Do It Yourself Website Editing Training Guide

The building block of a CSS stylesheet. A rule consists of a selector and a declaration block (one or more declarations).

Introduction to the MODx Manager

1. The basic building block of an HTML document is called a(n) a. tag. b. element. c. attribute. d. container. Answer: b Page 5

LING 408/508: Computational Techniques for Linguists. Lecture 14

Web Engineering (Lecture 01)

Fall Semester 2016 (2016-1)

Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM Advanced Internet Technology Lab.

What is CSS? NAME: INSERT OPENING GRAPHIC HERE:

Overview of General Dragon Commands

P a g e 1 HTML. VISIT for old papers, practical files samples. This file is for reference purpose only.

Overview. Part I: Portraying the Internet as a collection of online information systems HTML/XHTML & CSS

CSCE 101. Creating Web Pages with HTML5 Applying style with CSS

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

Chapter 3 Web Design & HTML. Web Design Class Mrs. Johnson

CiviX Author Custom Actions Cheat Sheet

Using Dreamweaver CS6

Html basics Course Outline

HTML, CSS. Kristóf Kovács, Róbert Pálovics, Ferenc Wettl Kristóf Kovács, Róbert Pálovics, Ferenc Wettl HTML, CSS / 28

COMP519 Web Programming Autumn Cascading Style Sheets

COSC 2206 Internet Tools. CSS Cascading Style Sheets

Geocaching HTML & BBCode FUNdamentals by Scott Aleckson (SSO JOAT)

Attributes & Images 1 Create a new webpage

Wanted! Introduction. Step 1: Styling your poster. Activity Checklist. In this project, you ll learn how to make your own poster.

Chapter 4 CSS basics

Creating Forms. Starting the Page. another way of applying a template to a page.

Web Page Creation Part I. CS27101 Introduction to Web Interface Design Prof. Angela Guercio

Your Own Web Page; Quick and Dirty Via Mashup Reminder: Next Quiz on 4/15

This document provides a concise, introductory lesson in HTML formatting.

HTML BEGINNING TAGS. HTML Structure <html> <head> <title> </title> </head> <body> Web page content </body> </html>

introduction to XHTML

Using Dreamweaver 2 HTML

Rich Text Editor Quick Reference

HTML Cheat Sheet FONTS PARAGRAGH & ALIGNMENT PARAGRAPH ALIGNED PARAGRAPH

CSS how to display to solve a problem External Style Sheets CSS files

HTML, CSS, JavaScript

Outline. Link HTML With Style Sheets &6&7XWRULDO &66 ;+70/ (GZDUG;LD

The Design Environment

The City School. Prep Section. ICTech. 2 nd Term. PAF Chapter. Class 7. Worksheets for Intervention Classes

The City School. Prep Section. ICTech. 2 nd Term. PAF Chapter. Class 8. Worksheets for Intervention Classes

Creating Teacher Webpages on the New APS WordPress Site

Student Guide Updated February 22, 2018

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

CSS CSS how to display to solve a problem External Style Sheets CSS files CSS Syntax

Site Owners: Cascade Basics. May 2017

Basics of Web Design, 3 rd Edition Instructor Materials Chapter 2 Test Bank

To link to an external stylesheet, the link element is placed within the head of the html page:

FRONTPAGE STEP BY STEP GUIDE

Enhancing your Page. Text Effects. Paragraph Effects. Headings

Motivation (WWW) Markup Languages (defined). 7/15/2012. CISC1600-SummerII2012-Raphael-lec2 1. Agenda

Dreamweaver MX Overview. Maintaining a Web Site

Zeppelin Website Content Manager User Manual

AP CS P. Unit 2. Introduction to HTML and CSS

ICT IGCSE Practical Revision Presentation Web Authoring

CITS1231 Web Technologies. Introduction to Cascading Style Sheets

WYSIWYG Editor: Users Manual

Lesson 1: Writing Your First JavaScript

Introduction to Multimedia. MMP100 Spring 2016 thiserichagan.com/mmp100

CSS - Cascading Style Sheets

Transcription:

o Displaying lines of text: <p> This paragraph contains a lot of lines in the source code, but the browser ignores it. </p> This paragraph contains a lot of lines in the source code, but the browser ignores it. This paragraph contains a lot of spaces in the source code, but the browser ignores it. The number of lines in a paragraph depends on the size of the browser window. If you resize the browser window, the number of lines in this paragraph will change. <p> This paragraph contains a lot of spaces in the source code, but the browser ignores it. </p> <p> The number of lines in a paragraph depends on the size of the browser window. If you resize the browser window, the number of lines in this paragraph will change. </p> o Line Breaks <p>this is<br>a paragraph<br>with line breaks</p> This is a paragraph with line breaks note: <br> is an empty tag, it needs no end o Horizontal Rules (lines) <h1>this is heading 1</h1> <p>this is some text.</p> <hr> <h2>this is heading 2</h2> <p>this is some other text.</p> <hr> <h2>this is heading 2</h2> <p>this is some other text.</p> This is heading 1 This is some text. This is heading 2 This is some other text. This is heading 2 This is some other text.

o In HTML, spaces and new lines are ignored: My Bonnie lies over the sea. My Bonnie lies over the ocean. Oh, bring back my Bonnie to me. <p>in HTML, spaces and new lines are ignored:</p> <p> My Bonnie lies over the sea. Oh, bring back my Bonnie to me. </p> o Formatting Text This text is bold o The <pre> tag preserves both spaces and line breaks <pre> My Bonnie lies over the sea. Oh, bring back my Bonnie to me. </pre> My Bonnie lies over the sea. Oh, bring back my Bonnie to me. This text is italic This is subscript and superscript <p>this text is normal.</p> <p><b>this text is bold.</b></p> This text is normal. This text is bold. <p>this text is normal.</p> <p><i>this text is italic.</i></p> This text is normal. This text is italic. This is subscripted text. This is superscripted text. <p>this is <sub>subscripted</sub> text.</p> <p>this is <sup>superscripted</sup> text.</p>

32 space o Special Characters: Use &# before the number! 33 exclamation mark " 34 quotation mark # 35 number sign $ 36 dollar sign <h1>hello out there!</h1> <p> How to Use Special Characters </p> <h2>now let&apos;s Figure this out&#46&#46&#46</h2> % 37 percent sign & 38 ampersand ' 39 apostrophe <p> Did it work? </p> Hello out there! How to Use Special Characters Now let's Figure this out... Did it work? ( 40 left parenthesis : 58 colon ) 41 right parenthesis ; 59 semicolon * 42 asterisk < 60 less-than + 43 plus sign = 61 equals-to, 44 comma > 62 greater-than - 45 hyphen? 63 question mark. 46 period @ 64 at sign / 47 slash

o Colors Look at this webpage for color names: http://htmlcolorcodes.com/color-names <style> div {height:50px;width:100%;} </style> <h1>colors can be set using color names</h1> <h1 style="color:red"></h1> <h1 style="color:orange"></h1> <h1 style="color:yellow"></h1> <h1 style="color:cyan"></h1> <h1 style="color:blue"></h1> o Div (areas) <p>this is some text.</p> <div style="color:pink;background-color:red"> <h3>this is a heading in a div element</h3> <p>this is some text in a div element.</p> </div> <p>this is some text.</p> Colors can be set using color names This is some text. This is a heading in a div element This is some text in a div element. This is some text. o Page Background color o Highlighting <body style="background-color:powderblue;"> <h1>this is a heading</h1> <p></p> This is a heading <h2>html <mark>marked</mark> Formatting</h2> HTML Marked Formatting

o Fonts <h1 style="font-family:verdana;">this is a heading</h1> <p style="font-family:courier;"></p> <p style="font-family:times;"></p> <p style="font-family:tahoma;"></p> This is a heading o Fonts Size <h1 style="font-size:300%;">this is a heading</h1> <h1 style="font-size:200%;">this is another heading</h1> <p style="font-size:160%;"></p> This is a heading This is another heading otext Alignment <h1 style="text-align:center;">centered </h1> <p style="text-align:right;">right Justified paragraph.</p> <p style="text-align:left;">left Justified paragraph.</p> Centered Left Justified paragraph. Right Justified paragraph. This is a heading

o Links <p><a href="http://uchsmdavis7.weebly.com">visit my Weebly Account </a></p> Visit my Weebly Account o Link Target Attributes The target attribute specifies where to open the linked document. The target attribute can have one of the following values: _blank - Opens the linked document in a new window or tab _self - Opens the linked document in the same window/tab as it was clicked (this is default) _parent - Opens the linked document in the parent frame _top - Opens the linked document in the full body of the window framename - Opens the linked document in a named frame <a href="http://uchsmdavis7.weebly.com" target="_blank">visit our HTML tutorial!</a> <p>if you set the target attribute to "_blank", the link will open in a new browser window or tab.</p> Visit My Website! If you set the target attribute to "_blank", the link will open in a new browser window or tab.

o Adding Images Images have to be uploaded to the web and kept in files. You have to own a place to store them. You can use your Weebly images. Run your website (not in edit mode), and right-click on any image and select copy image address. Use this address between the quotes in the html image syntax. The alt attribute is necessary. It gives the browser some text to display if your picture won t load or is taking a long time to load. <p>here is an image of our school</p> <img src="http://uchsdavis.weebly.com/uploads/3/1/6/3/3163620 1/4123248.jpg?193" alt="uchs" style="width:104px;height:142px;"> Here is an image of our school <p>you can use gifs also</p> <img src="https://media4.giphy.com/media/1gmawqy2cpvwe/20 0.gif" alt="uchs" style="width:104px;height:142px;"> You can use gifs also <p>the image is a link. You can click on it.</p> <a href="http://uchsmdavis7.weebly.com"> <img src="http://uchsdavis.weebly.com/uploads/3/1/6/3/3163620 1/4123248.jpg?193" alt="html tutorial" style="width:42px;height:42px;border:0;"> </a> <p>add "border:0;" to prevent IE9 (and earlier) from displaying a border around the image.</p> The image is a link. You can click on it. Add "border:0;" to prevent IE9 (and earlier) from displaying a border around the image.

EXERCISES Create an html or many html documents that use the specifications below: o Add six headings to the document with the text "Hello". Start with the most important heading and end with the least important heading. o Add a horizontal rule between a heading and a paragraph. o Use <br> elements to separate the lines of a poem or song you know. o Add a tooltip to a paragraph. o Change the text color of a paragraph to "blue". o Change the font of a paragraph to "courier". o Center align a paragraph. o Change the text size of a paragraph to 50px. o Change the background color of a page below to yellow. o Use <div> to Center align some content on a page. o Highlight some text yellow. o Add subscript or superscript formatting somewhere. o Change the size of an image to 250 pixels wide and 400 pixels tall. o Create a link to your weebly from text. o Create a link to your weebly from an image. o Use html code to try to display an image that doesn t exist, but displays the alt text. o Add a horizontal rule between a heading and a paragraph.