Introduction to Web Page Design

Slides:



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

Basic Principles for Web Design Source:
HTML and CSS. HTML Hyper Text Markup Language Tells browser how to display text and images.
Cascading Style Sheets
CSS The basics { }. CSS Cascading Style Sheets - language used to – describe html appearance & formatting Style Sheet - file that describes – how html.
Presenter: James Huang Date: Sept. 26,  Introduction  Basics  Lists  Links  Forms  CSS 2.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
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.
Today’s objectives  Element relations – tree structure  Pseudo classes  Pseudo elements.
© 2004, Robert K. Moniot Chapter 6 CSS : Cascading Style Sheets.
Building a Website: Cascading Style Sheets (CSS) Fall 2013.
© 2010, Robert K. Moniot Chapter 5 CSS : Cascading Style Sheets 1.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
4.01 Cascading Style Sheets
Academic Year, Spring Semester Bilkent University - Faculty of Art, Design and Architecture Department of Communication and Design CS 153 Introduction.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
CS105 Introduction to Computer Concepts HTML
HTML HTML stands for "Hyper Text Mark-up Language“. Technically, HTML is not a programming language, but rather a markup language. Used to create web pages.
HTML (HyperText Markup Language)
INTRODUCTION TO HTML5 Styling Text. Change the Font Size  You can use the font-size property to change the font size for a document’s text.  Instead.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
XP Mohammad Moizuddin Creating Web Pages with HTML Tutorial 1 1 New Perspectives on Creating Web Pages With HTML Tutorial 1: Developing a Basic Web Page.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
>> Introduction to HTML: Tables. HTML is used to give websites structure 5 Basic Tags Element = Start-Tag+Content+End-Tag Heading Tags [h1-h6] Paragraph.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
Chapter 5 pp HTML Elements & Attributes Format Content Or Examples This Text Is A Hyperlink.
1 HTML. 2 Full forms WWW – world Wide Web HTTP – Hyper Text Transfer Protocol HTML – Hyper Text Markup Language.
Chapter 4 HTML Tags. HTML is written in something called tags. Tags come in pairs, an opening one and a closing one. The first pair of tags we'll write.
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.
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
Creating Web Documents CSS examples (do more later) Lab/Homework: Read chapters 15 & 16. Work on Project 3, do postings.
Lesson 5. XHTML Tags, Attributes and Structure XHTML Basic Structure head and body titles Paragraph headings comments Document Presentation Manipulating.
HTML.
Create a new stylesheet called Hotel Style
HTML Basics.
Extended Learning Module F
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
The Box Model in CSS Web Design – Sec 4-8
LAB Work 01 MBA 61062: E-Commerce
4.01 Cascading Style Sheets
( Cascading style sheet )
Semester - Review.
The Box Model in CSS Web Design – Sec 4-8
CSS Layouts: Grouping Elements
Creating Your Own Webpage
HTML Lab 5 10/1/2015.
Web Development & Design Foundations with HTML5
Cascading Style Sheets
Programming the Web using XHTML and JavaScript
AN INTRODUCTORY LESSON TO MAKING A SIMPLE WEB PAGE By: RC Emily Solis
The Box Model in CSS Web Design – Sec 4-8
COMPUTING FUNDAMENTALS
Cascading Style Sheets
COMP 101 Review.
Web Authoring Task 8– Create the following Style Sheet:
Styles and the Box Model
The Internet 10/13/11 The Box Model
Computers and Scientific Thinking David Reed, Creighton University
HTML ELEMENTS Ms. Olifer.
Cascading Style Sheets
Pertemuan 1b
Introduction to HTML.
Johan Ng and Muhammad Hazzry
Images in HTML PowerPoint How images are used in HTML
4.01 Cascading Style Sheets
Presentation transcript:

Introduction to Web Page Design 9/18/2018

Objectives Introduce General Tags Add Attributes/Style to General Tags Tag Structure Explore Tag Types Explore Tag Attributes Add Attributes/Style to General Tags 9/18/2018

Tag Structure Most tags has the same structure** <tagname attribute1="setting1" attribute2="setting2" …> content </tagname> The is the opening portion of the tag Content that is displayed within the tag (sometimes optional) The is closes the tag **(only first part needed for some tags)

Paragraph Tag The <p> tag is used for paragraphs. <p> This will create a paragraph. </p> <p style="text-indent: 50px;"> This is another paragraph. This paragraph will be indented. The <p> tag is used for paragraphs. A useful style is setting indentation using text-indent. Style is a special type of attribute in a tag with a wide array of uses.

Image Tag The <img> tag displays an img. <img src="images/ubcrest.png" alt="UB Crest"> <img src="ublogo.png" alt="UB Logo" style="height:100;width:300"> The <img> tag displays an img. src="…" tells where the image file is located Can be relative to our current location Can be full path to image alt="…" is text that is read if the site is viewed in accessibility mode width/height can be set to stretch or shrink image Only setting one of width or height will scale image

Anchor Tag (links) The <a> tag is used to display hyperlinks. <a href="http://www. buffalo.edu/"> UB Homepage </a> <a href="https://www.cse.buffalo.edu/" target="_blank"> CSE Department Homepage The <a> tag is used to display hyperlinks. href="…" tells where link points to Can be relative or full path target="_blank" opens the link in a new window

List Tags <ul> <li>HTML</li> <li>head</li> <li>body</li> </ul> <li>CSS</li> <ol> <li>tags</li> <li>styling</li> </ol> The <ul> tag is used to create bulleted (unordered) lists. Can nest lists – changes bullets/indents The <ol> tag is used to create numbered (ordered) The <li> tag is used in both to add list items

Headings in HTML (from last time) Documents tend to have headings, subheadings HTML provides several levels of heading tags: <h1> and </h1> level one <h2> and </h2> level two … <h6> and </h6> level six Headings display content on a new line Headings are bold and go lower in size as the level number increases.

Customize Your Page By default, tags will display using browser settings Default font in Chrome/Firefox: Times New Roman We can change these settings using style attributes <body style="background-color:blue;"> <p style="color:red"> This will look awful. </p> </body> Font color is Times New Roman, color black and size 16.

Customize Your Page We can apply the style attribute to any tag Has the format style="prop1:value; prop2:value;" Common properties we change are: background-color color font-family font-size padding margin Important note: style changes impact all elements contained within the element. Default font is Times New Roman, color black, and size 16.

Color Styling color background-color We have many choices for color This changes the font color for the given element background-color This changes the background color for the given element We have many choices for color red, orange, yellow, blue, black, gray, white (140 color names) style="color:yellow;" Color codes: #FF00FF (is magenta) style="color:#FF00FF;" Check out UB color scheme

Font Styling font-family This changes the font type (like changing font in Word) Times New Roman, Arial, Courier, Georgia (many more) style="font-family: Times New Roman;"

Font Styling font-size This changes the size of the font Can be set as a specific size: 10px (pixels) style="font-size:10px;" 16pt (point, same as setting in a text editor) style="font-size:10pt;" Can be set as a percentage of parent font size (good for mobile): 200% is the default for the largest heading h1 style="font-size:200%;" 2em – 2 times the parent font size style="font-size:2em;"

Padding Elements padding margin Best seen with a border This generates space around the contents within by moving it away from the edge of the element style=“padding:12px;“ margin This generates space around the element itself style=“margin:15px;” Best seen with a border style=“margin:10px; padding:6px; border-style:solid; border-width:2px; border-color:red;“ There are a number of style options for borders (see here)

Summary We have a number of tags that appear in almost every webpage. http://www.w3schools.com/tags/default.asp has a comprehensive list of html tags Some basic styling of our tags. standard color names UB color scheme Let’s build something using these tags.