Transcript HTML, Tages
HTML
• • • • • •
HTML What is HTML HTML stands for the HyperText Markup Language . HTML code is the language of the Internet's World Wide Web . Web sites and web pages are written in HTML code.
HTML is used to bring together text, pictures, sounds, and links... all in one place! HTML code files are plain text files, with extension .html
• • •
HTML What is Markup Markup means that specific portions of a document are marked up to indicate how they should be displayed in the browser.
HTML carries information about the web page though, the display of the document dependent on the browser.
• • • • • •
HTML Html tag The HTML html tag is the container contains all other HTML elements . that All other HTML elements are nested between the opening and tags.
and ends with . These are the starting and the ending tags of the HTML document .
• • • • •
HTML HTML title Tag The HTML
The title is usually displayed in the browser's title bar (at the top). Eg
• • • • •
HTML HTML head Tag The HTML head tag is used for indicating the head section of the HTML document.
The head can contain other HTML tags that provide information about the document such as title, description, keywords etc . Most of this information is not displayed in the browser (although the title usually appears in the browser's title bar) but can be useful for search engines etc. The head tag is placed between the and the tags.
• •
HTML
•
HTML body Tag The HTML body tag is used for indicating the main content section of the HTML document .
• • • • • •
HTML The basic syntax of a tag:
• • • • • • • •
HTML
Document content
• • • • • • •
HTML HTML br Tag The HTML br tag is used for specifying a line break.
Eg
This is before the line break
and this after the line break.
HTML
•
HTML hr Tag
• • •
The HTML hr tag is used for creating a horizontal rule.
eg
Here is a horizontal rule:
• • • • •
HTML Physical Tags And Logical Tags.
Physical tags define how the text should be displayed in the browser . They control the Physical characteristics of the text.
Logical Tags on the other hand indicate the 'type' of content they enclose. They do not determine the display of the text and the browser is free to set the presentation.
• • • • • • • • • • • •
HTML Physical Tags There are 10 physical tags each requiring a closing tag: Italics: I am in italics Bold: I am in bold Underline: I am underlined Strikethrough: I am struck!
Superscript: My superscript Subscript: My subscript Typewriter: I am in typewriter form Bigger font: I am bigger Smaller font: I am smaller Strikethrough alternative: I am also struck!
• • • • • • • • • •
HTML There are 9 logical tags each requiring a closing tag: Strong: I am strong Emphasis: I am emphasized Abbreviation: I am abbreviated Citation: Citation Code: I am programming code Definition: Definition Keyboard: Quite like keyboard strokes Sample: Sample Programming Variable: Programming Variable
• • • • • • •
HTML • • HTML • • • • HTML The • • • • • • HTML Font COLOR attribute The attribute takes either the hexadecimal color value or just the color name. Some common color names are Blue, Green, Red, Yellow, White, Black, Cyan, Magenta, Pink etc. Red Text Blue Text Green Text • • • • Font SIZE attribute HTML The size attribute takes a number from 1 to 7 as its value with 1 as the smallest and 3 the default. Some Text Some Text • • • • • • • • • • • • • • HTML HTML Ordered List If the ranking of items is desired, we employ ordered lists. To place individual list items, you use the • • • • • • • • • • • • • • • HTML HTML Unordered List Unordered lists also support the TYPE attribute that takes disc, circle or square as its value. • • • • HTML HTML img Tag The HTML img tag is used for embedding images into an HTML document. To use this tag, the image you specify in the src attribute needs to be available on a web server.
• • • • • • • • • • HTML HTML table Tag The HTML Table Elements
The code above is displayed by the browser as Item One Item Two Item Three Item Four -
are the starting and ending tags of Unordered lists. List items are included using the
is displayed as Item One Item Two Item Three Item Four tag is used for defining a table . The table tag contains other tags that define the structure of the table.
Cell 1 Cell 2