280 likes | 748 Views
Introduction to HTML. HTML Tag Basics. HTML. HTML – Hyper Text Mark-Up Language HTML is a set of mark-up symbols (or codes) placed in a file intended for display in a web browser. Each individual mark-up code is referred to as an element or tag. What Happens?. Open a Notepad document
E N D
Introduction to HTML HTML Tag Basics
HTML • HTML – Hyper Text Mark-Up Language • HTML is a set of mark-up symbols (or codes) placed in a file intended for display in a web browser. • Each individual mark-up code is referred to as an element or tag
What Happens? • Open a Notepad document • Type the following. <!DOCTYPE html> <html> <head> </head> <body> </body> </html> • Save as test.html to your desktop and open it in a browser. Raise your hand when you know what happens What happens in your browser window?
HTML Framework <!DOCTYPE html> - Document Type Definition <html> - opening html tag <head> - opening head section tag </head> - closing head section tag <body> - opening body tag </body> - closing body tag </html> - closing html tag
!DOCTYPE • The first line of all of your web pages will be the document type definition tag. • Simply stated, this lets the browser know what type HTML you will be using in your document • HTML5, which we will be using in this class, simply uses “html” for its DTD
<head> Section • An HTML document is divided, much like a human, into head and body sections • The head section pertains to mostly what happens “behind the scenes” • You will label your browser tabs, link your style sheets, and a variety of other things in the head section
<body> Section • The body section of an HTML document will contain that content that will actually be visible on the web page when viewed in the browser • Everything you want your user to see should be placed in the body section • The body section will include titles, paragraphs, navigation menus, images, and much, much more
Other Useful Tags • Quick Reference: • <p></p> - paragraph tag, create paragraphs of text • <h1></h1> - heading 1, the largest heading • <h6><h6> - heading 6, the smallest heading • <hr> - horizontal rule, divides content with horz. Line • <br> - line break, mimics hitting enter in a Word doc • <blockquote></blockquote> - block quote, indents text for quote • <ol> </ol> - ordered list, creates numbered list • <ul></ul> - unordered list, creates bulleted list • <li></li> - list item, creates item in a list
Self-Contained Tags • Self-contained tags do not require a separate closing tag • <br> • <hr> • <img> • Only a few tags are self-contained. If you are not sure, use your resources to look up the tag