Instructional Technology & Design Office or Beginning Web Design Presented by Laura Miller
Purpose + Learning objectives Agenda: - Introduction of HTML - Basic code elements - Current code/design standards - Go over file template
Some Things you will need 1. A code editor - For Macintosh: o Text Wrangler - For Microsoft Windows: o Notepad++ - Some simple-text editors will work (e.g., TextEdit) 2. A place to put your web page files on the Internet - I: Drive - Google Sites, Wix, Weeble - Web hosting service provider with domain name You can also view HTML webpage files locally in your favorite web browser.
What is HTML? HTML = HyperText Markup Language Tim Berners-Lee created the first version in the late 1980s as a way to share research. HTML became standardized in November 1995 as HTML 2.0. The current standard is HTML5. World Wide Web Consortium (W3C) is the international standards organization for the World Wide Web. W3C maintains the standards for HTML, CSS, XML, among many other languages.
Syntax of HTML Each element has three components: Tags are enclosed in angle brackets – Attributes may be included in the start tag Content is always placed in between the two tags content
Basic construction of an html document Hello HTML World Hello world!
Common HTML Elements TextStructural -,, ListsLinks & Images Link Anchor Links: Text Link
Text Tags Heading Tags Heading 1 - Heading 6 Used for titles, subtitles to create a hierarchy in the content Inherent font-size with h1 the largest and h6 the smallest Don’t skip heading numbers Paragraph Tag Text text text text Encompasses big blocks/paragraphs of text. Use a for every paragraph/text block
Hello HTML World Title of Essay Name Date First Subtitle or Subsection First Paragraph Second Subtitle or Subsection Second Paragraph
Lists Ordered Lists : Numbered List Item 1 List Item 2 Unordered Lists : Bullet Pts. List Item 1 List Item 2 Nested Lists List Item 1 Sub Item 1 Sub Item 2 List Item 2 List Item 1 Sub Item 1 Sub Item 2 List Item 2
Hello HTML World Title of Essay Name Date First Subtitle or Subsection First Paragraph Second Subtitle or Subsection Second Paragraph Key Things: Key Thing 1 Key Thing 2
Links UIUC Homepage Go to top Set by This is the top
Hello HTML World Title of Essay /h1> Name Date First Subtitle or Subsection First Paragraph Second Subtitle or Subsection Second Paragraph Key Things: Key Thing 1 “ Key Thing 2 Back to Top
Images Almost every website uses images, and a website without images is pretty boring. What is the plural of TARDIS? Images as link/anchor: The tag does not have “content”. It is an empty element.
Hello HTML World Title of Essay /h1> Name Date First Subtitle or Subsection First Paragraph Second Subtitle or Subsection Second Paragraph Key Things: Key Thing 1 “ Key Thing 2 Back to Top
Comments Comments are a way for you to make notes in your HTML code. They are never shown in the web browser. You can also comment out existing code instead of deleting it. This text is shown in the web browser. <!–- This comment is temporarily removing this code. This text is shown in the web browser. -->
element elements allow you to designate containers around elements that you want to control in CSS. IDs Class
Hello HTML World Title of Essay /h1> Name Date First Subtitle or Subsection First Paragraph Second Subtitle or Subsection Second Paragraph Key Things: Key Thing 1 “ Key Thing 2
What is CSS? CSS=Cascading Style Sheet CSS is used to describe the look and formatting of a markup language, such as HTML. CSS was developed primarily to allow for a separation of the document content from the document presentation. Benefits of separating content from presentation: Improved accessibility Cleaner webpages More control over the look of the website Easier to update
Linking Your css and html Hello HTML World Hello world!
CSS rules h1 {color: blue; font-size: 1em; } Selecto r Declaration {property: value;} Types of Selectors HTML Elements : h1 Div ID : #id Div Class :.class
Common CSS Declarations TEXT Font color {color: #efefef;} Font type {font-family: } Alignment {text-align: center;} {text-align: right;} {text-align: justify;} Indent {text-indent: 50px;} Layout Padding {padding: 10px;} Margin {margin-bottom: 10px} Border {border: 1px solid #000;} Background-color {background-color: #efefef;} Other Comments /* comment */
@charset "utf-8"; h1 {color: #0000FF; size: 2em; weight: 900; } h2 {border-bottom: 2px solid #0000FF; } p {text-indent: 50px; margin: 5px; } #top { padding-bottom: 10px; }.list { border: 1px solid #000000; }
Browser Tools Use built-in browser tools to see how sites work: Ctrl or Command + U will display the source code in most browsers Right-clicking or Ctrl-clicking and selecting “Inspect Element” will usually reveal the code for a particular object
Validators & Accessibility tools HTML CSS Accessibility Accessibility
Questions, comments, concerns… Thank you for listening! GSLIS also offers a HTML workshop via Blackboard Collaborate. Additional info for learning HTML: W3C Tutorials Lynda Tutorials Stack Overflow Code Academy 30 Days to Learn
Questions, comments, concerns… Thank you for attending our workshop! Check out these resources to teach yourself more about web design: urli.st/moo Contact GSLIS Help Desk: Feedback is always appreciated!