Presentation is loading. Please wait.

Presentation is loading. Please wait.

WEEK -1 ACM 262 ACM 262 Course Notes. HTML What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML.

Similar presentations


Presentation on theme: "WEEK -1 ACM 262 ACM 262 Course Notes. HTML What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML."— Presentation transcript:

1 WEEK -1 ACM 262 ACM 262 Course Notes

2 HTML What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language A markup language is a set of markup tags HTML uses markup tags to describe web pages HTML Tags HTML markup tags are usually called HTML tags HTML tags are keywords surrounded by angle brackets like HTML tags normally come in pairs like and The first tag in a pair is the start tag, the second tag is the end tag Start and end tags are also called opening tags and closing tags ACM 262 Course Notes

3 Web Pages HTML Documents = Web Pages HTML documents describe web pages HTML documents contain HTML tags and plain text HTML documents are also called web pages The purpose of a web browser (like Internet Explorer or Firefox) is to read HTML documents and display them as web pages. The browser does not display the HTML tags, but uses the tags to interpret the content of the page. http://www.w3schools.com/html/html_intro.asp ACM 262 Course Notes

4 HTML Introduction ACM 262 Course Notes My First Heading My first paragraph.

5 HTML Basic HTML Headings HTML headings are defined with the to tags. This is a heading This is a heading This is a heading ACM 262 Course Notes

6 HTML Basic ACM 262 Course Notes HTML Paragraphs HTML paragraphs are defined with the tag. This is a paragraph. This is another paragraph. HTML Links This is a link HTML Images

7 HTML Basic ACM 262 Course Notes Prepare this page in Notepad, the picture will act as a link.

8 HTML Elements HTML Element Syntax An HTML element starts with a start tag / opening tag An HTML element ends with an end tag / closing tag The element content is everything between the start and the end tag Some HTML elements have empty content Empty elements are closed in the start tag Most HTML elements can have attributes This is my first paragraph. ACM 262 Course Notes

9 HTML Attributes HTML elements can have attributes Attributes provide additional information about an element Attributes are always specified in the start tag Attributes come in name/value pairs like: name="value“ This is a link ACM 262 Course Notes

10 HTML Headings ACM 262 Course Notes HTML Lines The tag creates a horizontal line in an HTML page. This is a paragraph This is a paragraph This is a paragraph HTML Comments Comments can be inserted into the HTML code to make it more readable and understandable.

11 HTML Headings ACM 262 Course Notes

12 HTML Paragraphs ACM 262 Course Notes HTML Line Breaks Use the tag if you want a line break (a new line) without starting a new paragraph. This is a para graph with line breaks or In XHTML, XML, elements with no end tag (closing tag) are not allowed. Even if works in all browsers, writing instead works better in XHTML and XML applications.

13 HTML Formatting ACM 262 Course Notes

14 HTML Formatting This text is bold This text is strong This text is big This text is italic This text is emphasized This is computer output This is subscript and superscript ACM 262 Course Notes

15 HTML Fonts This paragraph is in Arial, size 5, and in red text color. This paragraph is in Verdana, size 3, and in blue text color. ACM 262 Course Notes

16 HTML Styles ACM 262 Course Notes Styling HTML with CSS CSS was introduced together with HTML 4, to provide a better way to style HTML elements. CSS can be added to HTML in the following ways:  in separate style sheet files (CSS files)  in the style element in the HTML head section  in the style attribute in single HTML elements

17 HTML Styles ACM 262 Course Notes HTML Style Example - Background Color This is a heading This is a paragraph.

18 HTML Styles ACM 262 Course Notes HTML Style Example - Font, Color and Size A heading A paragraph.

19 HTML Styles ACM 262 Course Notes HTML Style Example - Text Alignment Center-aligned heading This is a paragraph.

20 HTML Links HTML Links - The target Attribute Visit W3Schools! HTML Links - The name Attribute The name attribute specifies the name of an anchor. The name attribute is used to create a bookmark inside an HTML document. Useful Tips Section Visit the Useful Tips Section DO IT YOURSELF ACM 262 Course Notes

21 HTML Images Norwegian Mountain Trip ACM 262 Course Notes DO IT YOURSELF

22 HTML Tables row 1, cell 1 row 1, cell 2 row 2, cell 1 row 2, cell 2 </table ACM 262 Course Notes

23 HTML Tables Header 1 Header 2 row 1, cell 1 row 1, cell 2 row 2, cell 1 row 2, cell 2 ACM 262 Course Notes

24 HTML Tables ACM 262 Course Notes

25 HTML Tables http://www.silentblade.com/SplitImage.zip ACM 262 Course Notes

26 HTML Lists HTML Unordered Lists An unordered list starts with the tag. Each list item starts with the tag. Coffee Milk HTML Ordered Lists An ordered list starts with the tag. Each list item starts with the tag. Coffee Milk ACM 262 Course Notes

27 HTML Lists HTML Definition Lists A definition list is a list of items, with a description of each item. The tag defines a definition list. The tag is used in conjunction with (defines the item in the list) and (describes the item in the list) Coffee - black hot drink Milk - white cold drink ACM 262 Course Notes

28 HTML Forms ACM 262 Course Notes HTML Forms - The Input Element First name: Last name: Password Field Password:

29 HTML Forms ACM 262 Course Notes Radio Buttons Male Female Checkboxes I have a bike I have a car

30 HTML Forms Dropdown Lists Volvo Saab Fiat Audi ACM 262 Course Notes DO IT YOURSELF

31 HTML Forms ACM 262 Course Notes DO IT YOURSELF


Download ppt "WEEK -1 ACM 262 ACM 262 Course Notes. HTML What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML."

Similar presentations


Ads by Google