Build Your Own Website

Similar documents
Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

Website Development Komodo Editor and HTML Intro

Contents. Downloading the Data Files Centering Page Elements... 6

Module 6 Web Page Concept and Design: Getting a Web Page Up and Running

Essential HTML & CSS for WordPress. Mark Raymond Luminys, Inc mraymond@luminys.com

Intro to Web Design. ACM UIUC

Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

CIS 467/602-01: Data Visualization

Microsoft Expression Web

Getting Started with WebSite Tonight

Web Authoring CSS. Module Descriptor

CREATING WEB PAGES USING HTML INTRODUCTION

ITNP43: HTML Lecture 4

Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates

HTML and CSS. Elliot Davies. April 10th,

ICE: HTML, CSS, and Validation

Taking your HTML s to the Next Level. Presented by: Joey Trogdon, Asst. Director of Financial Aid & Veterans Affairs Randolph Community College

How To Use Dreamweaver With Your Computer Or Your Computer (Or Your Computer) Or Your Phone Or Tablet (Or A Computer)

Using Style Sheets for Consistency

KOMPOZER Web Design Software

Recreate your Newsletter Content and Layout within Informz (Workshop) Monica Capogna and Dan Reade. Exercise: Creating two types of Story Layouts

Using Adobe Dreamweaver CS4 (10.0)

Advanced Drupal Features and Techniques

Basic tutorial for Dreamweaver CS5

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. Web Design in Nvu Workbook 2

Using Microsoft Word. Working With Objects

Microsoft Expression Web Quickstart Guide

ART 379 Web Design. HTML, XHTML & CSS: Introduction, 1-2

HTML TIPS FOR DESIGNING

HTML, CSS, XML, and XSL

Web Design for Programmers. Brian Hogan NAPCS Slides and content 2008 Brian P. Hogan Do not reproduce in any form without permission

Web Authoring. Module Descriptor

Caldes CM12: Content Management Software Introduction v1.9

ANATOMY OF A WEB PAGE...

JJY s Joomla 1.5 Template Design Tutorial:

Creating a Resume Webpage with

Creating a website using Voice: Beginners Course. Participant course notes

CST 150 Web Design I CSS Review - In-Class Lab

CS134 Web Site Design & Development. Quiz1

Digital Marketing EasyEditor Guide Dynamic

Beginning Web Development with Node.js

Coding HTML Tips, Tricks and Best Practices

But have you ever wondered how to create your own website?

Web Design Revision. AQA AS-Level Computing COMP2. 39 minutes. 39 marks. Page 1 of 17

COMMONWEALTH OF PENNSYLVANIA DEPARTMENT S OF Human Services, INSURANCE, AND AGING

CSS 101. CSS CODE The code in a style sheet is made up of rules of the following types

Creative Guidelines for s

Introduction to Web Development

Creating Web Pages with Dreamweaver CS 6 and CSS

How To Create A Web Page On A Windows (For Free) With A Notepad) On A Macintosh (For A Freebie) Or Macintosh Web Browser (For Cheap) On Your Computer Or Macbook (

The Essential Guide to HTML Design

{color:blue; font-size: 12px;}

Working with the Ektron Content Management System

Development Perspective: DIV and CSS HTML layout. Web Design. Lesson 2. Development Perspective: DIV/CSS

Web App Development Session 1 - Getting Started. Presented by Charles Armour and Ryan Knee for Coder Dojo Pensacola

By Glenn Fleishman. WebSpy. Form and function

Introduction to Adobe Dreamweaver CC

Dreamweaver Tutorial #1

Overview. Understanding Web Design. Big Ideas. Goals & Audience. Theme. Theme. Big ideas. Goals & Audience Theme Navigation

Joomla Article Advanced Topics: Table Layouts

We automatically generate the HTML for this as seen below. Provide the above components for the teaser.txt file.

Dreamweaver. Introduction to Editing Web Pages

Joomla! 2.5.x Training Manual

Excel Formatting: Best Practices in Financial Models

ADOBE DREAMWEAVER CS3 TUTORIAL

UCL INFORMATION SERVICES DIVISION INFORMATION SYSTEMS. Silva. Introduction to Silva. Document No. IS-130

About webpage creation

Applying the Corporate Identity to the Web WEB GUIDELINES

Hello. What s inside? Ready to build a website?

Last week we talked about creating your own tags: div tags and span tags. A div tag goes around other tags, e.g.,:

How To Change Your Site On Drupal Cloud On A Pcode On A Microsoft Powerstone On A Macbook Or Ipad (For Free) On A Freebie (For A Free Download) On An Ipad Or Ipa (For

Appendix H: Cascading Style Sheets (CSS)

ITP 101 Project 3 - Dreamweaver

Create Webpages using HTML and CSS

Introduction to Web Design Curriculum Sample

Web Publishing Basics 2

IAS Web Development using Dreamweaver CS4

Web Development 1 A4 Project Description Web Architecture

Creating Web Pages With Dreamweaver MX 2004

Basic Website Creation. General Information about Websites

Missing cat website HTML&CSS. The Mission:

Course Exercises for the Content Management System. Grazyna Whalley, Laurence Cornford June 2014 AP-CMS2.0. University of Sheffield

Sage Accountants Business Cloud EasyEditor Quick Start Guide

Responsive Web Design for Teachers. Exercise: Building a Responsive Page with the Fluid Grid Layout Feature

Basics of HTML (some repetition) Cascading Style Sheets (some repetition) Web Design

Getting Started with KompoZer

Advanced Online Media Dr. Cindy Royal Texas State University - San Marcos School of Journalism and Mass Communication

Learnem.com. Web Development Course Series. Quickly Learn. Web Design Using HTML. By: Siamak Sarmady

Dreamweaver and Fireworks MX Integration Brian Hogan

Your First Web Page. It all starts with an idea. Create an Azure Web App

Jadu Content Management Systems Web Publishing Guide. Table of Contents (click on chapter titles to navigate to a specific chapter)

How to build a blog with Adobe Muse and Business Catalyst Workbook.

MCH Strategic Data Best Practices Review

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. Web Design in Nvu Workbook 1

. Introduction. Set Up Sumac To Send

SellerDeck 2013 Reviewer's Guide

Adobe Dreamweaver CC 14 Tutorial

Website Builder Overview

How to create PDF maps, pdf layer maps and pdf maps with attributes using ArcGIS. Lynne W Fielding, GISP Town of Westwood

Introduction to XHTML. 2010, Robert K. Moniot 1

Transcription:

Build Your Own Website

Introduction HyperText Markup Language (HTML) was invented in the early 90 s by Tim Berners-Lee, and today is used on pretty much every single webpage on the internet. It is not a programming language, but rather a markup language. As it separates the content of a page from the annotations which describe it, providing structure. The webpages as we know it are split up into three parts: Structure and Content, Presentation, and Behaviour. Different languages cover different areas, and structure and content is covered by HTML. For this worksheet, we re going to be using Notepad++ as our file editor. You can download Notepad++ here https://notepad-plus-plus.org/. Notepad++ is completely free, and can be used for pretty much any programming language. If you re using a different operating system, feel free to use any text editor you can find, they should all work with this guide! First open notepad++ on the desktop. Once it s open, it should automatically bring up a new document. If not go to or click on the new icon just underneath it. Now just type this into the text editor: This is a really awesome first webpage! Then go to or just hit the little floppy disk save icon, call the file whatever you want, then post-fix it with which is the extension for html files. The operating system should recognise it immediately. Just double click on it on the desktop and there you go, your first webpage in an internet browser! It may simply be a sentence, but it is content which if uploaded to the internet, anyone can view.

Tags are what we use to give our content some meaning. By default, web browsers have a lot of different tags which you can use to apply meaning, but there are some tags which must be used. Tags are structured with <> and the bit in brackets define what sort of tag it is. They also always come in pairs, so for every starting tag you have, there must also be the same ending tag, which is the exact same just it starts with </ instead of just <. The tag names are not case sensitive, do you can written, or and any variation between. Going back to the text editor type in the following: <!DOCTYPE html> <html> <head> <title>the best webpage!</title> </head> <body> <p>this is a really awesome first webpage!</p> </body> </html> The <!DOCTYPE html> is unique in that it s not really a tag, but is really just telling the browser what version of HTML you are using, so it knows what it s doing. The basic!doctype html is used for the latest HTML5 standard. The html tag is the what wraps everything, and tells the internet browser this is the webpage and everything between the opening and is the document. Things which go in the tags are for information about the page. For instance what the title of the page is, what files are used to style the page etc. An example of this is the tag used above, the content of the tag appears in the browser tab, check it out! Within the tags are where everything that appears in the web browser goes, and is used purely for content and structure. You can only have one, and tag per page. So here in the tag we can start adding some stuff. Currently we are using the tag around our text which defines a paragraph.

Headers Let s add some more content, starting with a page header. Headers by default come in six flavours, each declining in size from 1 to 6. The image gives some size references for the default sizes, and a paragraph tag at the end for reference. Decide on what you want the header for the webpage to be, and choose a size for it. In between the tags and above the tag, make a new line and put tags where the number is the size you want, and the content is what you want the header to be. You can have as many of these tags on a page as you want, and you don t have to use them at all, it s entirely up to you. You could do a page of entirely h1 tags if you really wanted to. It is however good convention to use h1 only once on the page as a main heading, and h2-h6 as many times are you want throughout the page. One thing to remember, is that if you want all the content to be on the same line, place it within the same tags. By default, HTML Elements will always be placed on a new line as if it were a new paragraph.

Links and Attributes Links are an important part of any webpage, how else would you get around? For this we use the anchor tag. You can put the tag around anything, and whatever you put it around, if you click it you will be taken to the link defined in the attribute of the tag. Attributes are placed in between the starting tags like this and just gives the tag a bit more information to add a bit of interactivity and features to the page. For links we use the href attribute in an anchor tag, so decide on the page you want to link to and place it around some text like this: <a href= www.bbc.co.uk >Keep up with the news here!</a> Refresh the page and it should be coloured different and be a link. Click on it to find out if it worked! Images Images are an integral part of any website, from displaying a logo to your favourite cat. For images we use the tag like this: <img src= cat.jpg alt= Cat on a bed > First thing to note is there is no closing img tag. This is because the img tag does not enclose any content so it doesn t need a closing tag. The src attribute is a lot like the href attribute in that it links to another file, in this case an image to load. Files are referenced local to the html file. So if the image is in the same folder as the html file, just put the file name + file extension there. Otherwise you ll need to reference the folder it is in as well, like if it was in an images folder, you would reference it like this: <img src= images/cat.jpg alt= Cat on a bed > The alt attribute gives a description of the image, for those who can t see the image whether from it not loading, or being visually impaired. It s good practice to do it like this.

Lists Organising content on a webpage can be a bit difficult, and the list tags help a lot with that. It comes in two varieties: an ordered list which is and an unordered list which is. Structurally they are the same, with the difference being in an order list each item is number incrementally, useful for putting items in an order. is unordered, and the start of each item is just a bullet point. Each item in a list has to have a tag wrapped around it, which stands for List Item. So if you wanted a basic shopping list, you could use this example <h1>my Shopping List</h1> <ul> <li>carrots</li> <li>pizza</li> <li>bread</li> <li>milk</li> <li>chocolate</li> </ul> Try changing the tags to and see what changes. Tables In the past tables have been used to layout pages, which is ultimately a misuse of how it should be used. Tables should be used to structure data which needs to be in a table, such as average rainfall per month, basic science test results etc. A table is split into 3 main tags. First is the tag, which acts as the root of the table for which everything relating to the table is held within. Then each row of the table is described with (standing for table row). So if you re table has 4 rows then you will need 4 tags. For each bit of data within the row, you will need as many tags as well which stands for table data. Something else we can to help describe the data, is add table headings using the tag. This goes on its own row above the data, and is used in replacement of the tag.

So let s look at a quick example, here s the table we want on our webpage: Have a go at trying to describe that with HTML by yourself, and to check or if you get stuck, see the example below: <table border="1"> <tr> <th>first Name</th> <th>last Name</th> <th>age</th> <th>height</th> </tr> <tr> <td>john</td> <td>toms</td> <td>19</td> <td>185cm</td> </tr> <tr> <td>sophie</td> <td>dale</td> <td>21</td> <td>178cm</td> </tr> <tr> <td>helen</td> <td>clyne</td> <td>17</td> <td>160cm</td> </tr> <tr> <td>sam</td> <td>docherty</td> <td>24</td> <td>163cm</td> </tr> </table>

As you can see, this is pretty long-winded, but it results in a nicely formatted table with all the data in it. You ll also see that in the tag at the start, it has a attribute. This is so we can see the tables boundaries on the page, otherwise the web browser doesn t draw them. Put it together So there we have the basics of HTML down, and the best thing to do before carrying on is to put it all together onto one page. Pretty much every single web page out there is based upon these few elements. There are a few tags missed out such as the tag and We unfortunately don t have time to explain them in this short lesson, but if there s spare time at the end, ask the person teaching you to briefly explain it. Create a page about yourself or something you re interested in, write some paragraphs about it. Add some images, a table or a list if you need it. Make sure you also give it a big header as well. When you re done get ready to move onto styling it, and making it look nice.

Styling Styling The next biggest thing of any webpage other than the content is how it looks. For this we use CSS (Cascading Style Sheets). There are several ways of implementing CSS into a webpage, but we will be putting it in a separate file from the html. So to get started, in Notepad++ create a new file, then save it in the same folder as your html file, and call it. Now, before we start styling we need to tell the html page where the style sheet is, so in the tag either above or below your tag (it doesn t matter, as long as it s between the tags, type this: <link rel= stylesheet href= style.css > And there, the style sheet should be set up and ready to go. Changing the background To start off we re going to change the background colour of the whole page. Make sure you ve got the style.css file open, and type the following. body { background-color: skyblue; So we start off a CSS statement by saying what we want to style, this is called a. In this case the html tag as it fills the whole page, a bit later on we will talk about other kinds of selectors. Then between the curly brackets are the s, with in this example each declaration getting its own line to make it easier to read. There are two parts to any declaration, a which is on the of the colon, and the for that property on the of the colon. At the end of every declaration there is a semi-colon to denote that the declaration is finished. In the case of what we just wrote, we re setting the background colour (Note that American spelling is used, it will not work if you use colour, only ) to a default of skyblue. This means that the background colour of our selector ( ) is being set to all the same colour.

Styling More Styling Now, going back to your webpage you built, choose any tag which you want to change the colour of. It can be a header (, etc), a paragraph or whatever you want. Now try and make your own style! It s basic setup is like this: *The tag you ve chosen without the < and >* { color: *your colour*; So in the top selector bit, if you want to change the colour of all the tags on your webpage, just type by itself. For your colour, you can try typing something like,, etc and see what the browser already knows for colours. Alternatively, you can try using a HEX value for the colours, starting with a # and then 6 hexadecimal digits after (where the first two digits are red, second two are green and the last two are blue), so it can look like. The higher the number, the more of that colour is added to the mix. And lastly you can do it as an RGB number, by typing each number can go up to 255., where Try playing around with the colours, and see what you can make. If you get stuck with this here s an example of styling a tag and a. p { color: blue; h1 { color: # 50b848;

Styling Big Text You can change the size of a font by using the property. h1 { font-size: 60px; Now here, you can see we re using a number followed by. The px stands for pixels, so in this case, the font in the tags is going to be from the top of a capital letter, to the bottom of a lowercase letter. You can make the number as small as you want, or as big as you want, it s up to you. You can try other things too, for instance, try replacing the with a sign and see what happens. Alignment Currently all your content is on the left side of the screen, so let s fix that. A lot of modern websites have all the content in the center of the screen. h1 { text-align: center; This will put your header in the middle of the page. If you want absolutely everything to be centered, there is a universal selector which you can use, which is. Place * instead of the h1 and see that everything is now centered. Conclusion So there you have it, a basic website which you can put whatever you want on, and start to make it look like what you want as well. Now this is only a really simple start to get you interested and inspired into creating websites in a hands on way where you can ask us questions too. If you want to take making websites further, try out www.codecademy.com to learn some more advanced topics such as JavaScript and jquery.