Download presentation
Presentation is loading. Please wait.
Published byEdwin Pitts Modified over 9 years ago
1
Learning a New Language: HTML Spring 2013 ITD Workshop
2
PURPOSE + LEARNING OBJECTIVES This is an introduction to creating static webpages. Since libraries are increasingly moving toward web content, web content management is a skill that is useful and will make you more marketable. What you will (hopefully) learn: -What HTML and CSS are -Some important terminology -Coding standards -To read and edit basic HTML code, such as web site templates
3
SOME THINGS YOU WILL NEED 1.A code editor -For Macintosh: o Text Wrangler -For Microsoft Windows: o Notepad++ -Any simple-text editor will work (e.g., TextEdit, Notepad) 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.
4
WHAT IS HTML? HTML = HyperText Markup Language Tim Berners-Lee, the cool British computer science who created the World Wide Web, was the pioneer of HTML. It became standardized in November 1995 as HTML 2.0. 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. HTML is not a scripting language.
5
HTML AS MARKUP LANGUAGE HTML is written in elements, which are specific to the language itself, and each element typically has three components: Tags are enclosed in angle brackets – start tag / end tag Attributes may be included in the start tag Content is always placed in between the two tags content Empty elements (i.e., elements without content) do not have an end tag and follow this form
6
HELLO_WORLD.HTML Hello HTML World Hello world!
7
HELLO_WORLD.HTML
8
HEADING TAGS Heading tags are used for titles and subtitles within the content of the webpage. The font size gets smaller as the numbers get bigger. Headings are great for titles and subtitles
9
HEADING TAGS What is wrong with this picture?
10
HEADING TAGS All tags come in pairs!
11
TEXT FORMATTING TAGS Bold text Emphasized text Italic text Underlined text Struckthrough Superscript Subscript These are some of the commonest text formatting tags that add emphasis to your content.
12
USEFUL ATTRIBUTES Left Centered Right Align attribute allows you to align your content left, right or center. The default is always left. CSS is making this attribute less popular.
13
USEFUL ATTRIBUTES The title attribute adds a tiny text pop-up to any HTML element. Search engines use this attribute to catalog your webpage as well as increase your search ranking. This attribute is most often used with images. Big Title Heading Tag
14
HYPERTEXT REFERENCE (HREF) A hypertext reference (href) is a link tag that directs a user to a valid URL. This is a hyperlink: NY Times
15
HYPERTEXT REFERENCE (HREF) There are five different kinds of URLs you can use in the href attribute: UIUC Homepage Go to top GSLIS Help Desk Download this file
16
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. -->
17
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.
18
IMAGE SOURCE URLS The source of your images may be either global or local. But it is good practice to make them all local. src=“tardis.jpg” src=“imgs/tardis.jpg” src=“../tardis.jpg” src=“../imgs/tardis.jpg” src=“http://www.uiuc.edu/ tardis.jpg” Image is located in the same directory Image is located in the imgs directory Image is located “up” a directory Image is located “up” a directory in another directory called imgs Image is located at a specific URL elsewhere; this is known as a “global” location ExplanationSrc Attribute Code
19
ATTRIBUTES OF THE TAG You can specify the exact width and height of the image. Two things to note about specifying the dimensions of an image: Always use the same ratio of width to height Always scale downward – bigger images scale down nicely, but smaller images will become pixelated if you make them much bigger The alt (alternative) attribute allows you to display alternate text if the image does not load for some reason.
20
UNORDERED LISTS There are different types of lists in HTML. The unordered list is named so because its items are not numbered. Its items are displayed with bullet points. Today’s Task List LIS501 homework LIS506 assignment Exercise Do the cleaning
21
ORDERED LISTS The items of an ordered list are numbered. Goals Finish school Get a job Make money Get own place
22
LIST ATTRIBUTES For unordered lists, you can specify which type of bullet point you would like by using the type attribute in the ul tag. […] For ordered lists, you can pick a starting number other than 1 by using the start attribute. […] If you want something other than numbers in the ordered list, you can choose among a few other options like alphabetical or roman numerals. […]
23
TABLES Note: Do not use tables to structure the entire content of your webpage. This practice is now considered old fashioned. The HTML element table is composed of rows and columns. This element is a container element, which means it can contain other elements. Row 1/Cell 1 Row 1/Cell 2 Row 2/Cell 1 Row 2/Cell 2
24
ELEMENT The element is nothing more than a container. Web developers now use elements to arrange content on webpages instead of elements. This will become important to you once you’ve learned more CSS. elements can be nested in one another.
25
HTML WEB FORM ELEMENTS Web forms, which are those parts of a webpage where users enter some input, are created in HTML but require some scripting language to interpret the user’s input. Some examples of web forms: Credential authentication (e.g., a login screen) Search functionality on webpages Web applications This is outside of the scope of this workshop. Web forms are a more advanced feature of HTML that are only necessary when using a scripting language like PHP.
26
HTML VS. XHTML XHTML = Extensible HyperText Markup Language Until version 5.0, HTML was based on Standard Generalized Markup Language (SGML) standards. XHTML, which is replacing HTML, is based on the Extensible Markup Language (XML) standards. What this means for you: Tags remain the same as in HTML 5.0 There are stricter rules in the coding Everything must be lowercase All tags are closed and nested There are other more technical differences, too.
27
WHAT IS CSS? CSS = Cascading Style Sheet CSS files are separate from HTML files, but they are “included in” the HTML file. It is best practice to use CSS for all formatting in your HTML files. This is the current trend…. Some HTML tags are becoming depreciated because of CSS. A few examples: - - Lists:,, … - as used for main content structure - Align attribute and other formatting attributes
28
THE CSS WORKSHOP The Instructional Technology & Design (ITD) Office occasionally offers a workshop on CSS. Some other helpful resources: - W3C Tutorials http://www.w3schools.com/css - Lynda Tutorials http://go.illinois.edu/lynda
29
QUESTIONS, COMMENTS, CONCERNS… Thank you for attending our workshop! Contact GSLIS Help Desk: help@support.lis.illinois.edu Information on this presentation Adam Mann: aemann2@illinois.eduaemann2@illinois.edu Steven Smidl : smidl2@illinois.edusmidl2@illinois.edu Feedback is always appreciated! http://go.illinois.edu/itdfeedback
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.