Using Visual Studio as an HTML Editor. Go to File/New/File.

Slides:



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

Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
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
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 – 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.
Principles of Web Design 5 th Edition Chapter Nine Site Navigation.
CSS BASICS. CSS Rules Components of a CSS Rule  Selector: Part of the rule that targets an element to be styled  Declaration: Two or more parts: a.
© 2010, Robert K. Moniot Chapter 5 CSS : Cascading Style Sheets 1.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
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.
Creating Tables Text Tables -created by using preformatted tags. Graphical Tables - created using Table Structure with HTML.
Week 7 Web Typography. 2 Understanding Type Design Principles.
Creating a Web Page with Tables. Objectives Create a text table with preformatted text Create the basic structure of a graphical table Organize table.
Web Page Development Identify elements of a Web Page Start Notepad
XP Creating Web Pages with HTML Using Tables. XP Objectives Create a text table Create a table using the,, and tags Create table headers and captions.
Using HTML Tables.
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: PART ONE. Creating an HTML Document  It is a good idea to plan out a web page before you start coding  Draw a planning sketch or create a sample.
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.
Using Cascading Style Sheets (CSS) Dept. of Computer Science and Computer Information CSCI N-100.
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.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
 Missing (or duplicate) semicolons can make the browser completely ignore the style rule.  You may add extra spaces between the properties/values to.
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.
HTML Overview Part 2 – Paragraphs, Headings, and Lines 1.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
CO1552 – Web Application Development Lists, Special Characters, and Tables.
XP 1 Tutorial 5 Using Frames in a Web Site. XP 2 Tutorial Objectives  Describe the uses of frames in a Web site  Lay out frames within a browser window.
XP Using Frames in a Web Site Ali Alfayly. XP Tutorial Objectives Create frames for a Web site Control the appearance and placement of frames Control.
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.
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.
Creating Web Pages: Week 4, continued Is a picture worth 1000 words? HTML: body tag, text tags, lists Typography & Editorial Style Homework: Look at schedule.
Web Technologies Website Development Trade & Industrial Education
HTML (HyperText Markup Language)
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'
ITP 104.  Basic HTML using and form  Using Filezilla  public_html ▪ 755 permission  Have a directory name itp104 ▪ 755 permission  classpage.html.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 3.
CNIT 132 – Week 7 HTML - Tables. Tables on the World Wide Web A table can be displayed on a Web page either in a text or graphical format. A text table:
Designing a Web Page with Tables. A text table: contains only text, evenly spaced on the Web page in rows and columns uses only standard word processing.
Week 11 Creating Framed Layouts Objectives Understand the benefits and drawbacks of frames Understand and use frame syntax Customize frame characteristics.
Chapter 8 HTML Frames. 2 Principles of Web Design Chapter 8 Objectives Understand the benefits and drawbacks of frames Understand and use frames syntax.
More CSS.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
CIS234A- Lecture 7 Instructor Greg D’Andrea. Tables A table can be displayed on a Web page either in a text or graphical format. A text table: – contains.
CIS234A Lecture 8 Instructor Greg D’Andrea. Review Text Table contains only text, evenly spaced on the Web page in rows and columns uses only standard.
DIV, Span, CSS.
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.
1 HTML Frames
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 8: Working with Style Sheets.
XHTML Formatting font with a style declaration. Formatting Font HTML uses the font tag to change size and family of font But… the font tag is being deprecated.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Images. Intro What is it? Getting your image Inserting Moving Resizing Cropping.
1 HTML Frames
Coding with HTML {. THE BASICS { What is HTML and how can you use it to make websites?
CSS FOUNDATIONS IN-DEPTH The nitty-gritty of css...
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.
HTML & CSS Contents: the different ways we can use to apply CSS to The HTML documents CSS Colors and Background CSS Fonts CSS Text CSS box model: padding,
Cascading Style Sheets for layout
JavaScript “Hello World” in Microsoft Visual Studio 2013
Creating a Baseline Grid
Cascading Style Sheets Color and Font Properties
Web Programming– UFCFB Lecture 11
What are Cascading Stylesheets (CSS)?
Presentation transcript:

Using Visual Studio as an HTML Editor

Go to File/New/File

Choose HTML Page and click Open

Result so far in Source view.

Start typing a tag in the section, type meta or choose it from the drop-down list.

Type http-equiv or choose it from the drop-down list http-equiv is an attribute of the meta tag.

Set the http-equiv attribute to “Content-type”, and then type content or choose it from the drop-down list

Set the value of the content attribute to “text/html; charset=iso ” Because the tag does not have a closing tag, it is ended with />.

Change the title (between the tags) and type another meta tag as seen below.

Go to File/Save HTMLPage1.htm As … Choose a location and file name.

Enter the page content into the of the HTML page

What the page looks like so far in design view

Begin “marking up” the content with header tags:,, etc.

Design view with headers

Since the poem has four sections, we have added tags to mark the beginning and end of these sections.

Shown below are three ways to get each line of the poem on its own line on the page The paragraph tags used for the first two lines give the desired “return” but their default style will add some undesired vertical space. The break tags used for lines 3 and four give the return without the vertical space. The preformatted tag will “respect” the returns in the content, but will change the font. See Design view next.

Design view for versus versus We will go with since it involves the least amount of typing.

We can begin styling the page by giving the body a left and top margin We can place the style in between tags in the section of the page. The open tag should have the attribute type with a value of text/css. We specify what tag we are styling (here body), then which attribute we are styling (here margin-left and margin-top) followed by a colon, then the value, then a semi-colon. The value here is a percentage; it could also have a unit such as px (pixels) or em.

Design view of page with margin styled

Next we can style the font of the tag. When setting the font-family attribute, it is typical to have a set of fonts listed in order of preference with the last one being a generic font. The font size here is given in the typography unit of em. This choice will allow the user/viewer of the webpage to change the size of the font on the page and is part of what is called “liquid design.”

The w3 page on font-family

Excerpt from What Is Liquid Design by Nick Wilson What is Liquid Design? The term "liquid" implies that a Website should flow smoothly into whatever space it is given. If you use a high resolution monitor, this may mean that you need to resize your browser a little, which most people in that situation do. If you have a low resolution moitor, you will still see the information, it will just be a little more compact. If you do Liquid Design right, you should be able to make your pages display on almost anything and still make sense to the user. But it's not just about making a page 'flow' with the browser window. The principle of Liquid Design goes hand in hand with the principles of accessibility. Not everyone has perfect vision, and many of your potential customers may indeed be blind. If you build your site using relative font units and percentage based widths for common elements, you'll already be making life a lot easier for a portion of your visitors. Maybe even many of them.

Design view with the ’s font styled.

User changing the font size in Internet Explorer: View/Text Size/…

Figure from article discussing serif versus sans serif fonts.

Fonts: Serif and Sans Serif The text in was styled to be a Sans serif font. The header text has not yet been styled and has the default font style which in the image on the previous was a serif font. While it is usually considered poor style to have many different fonts on a page, it is somewhat standard to have headers styled differently than the rest of the text – one in a Serif font and the other in a Sans Serif font. – To follow this practice we should specify a header font and not rely on the default font.

Styling the header font Note that we can style several tags at once by making them a comma separated list in the style section. Also note that font names with spaces in them should be placed inside single quotes.