100 likes | 274 Views
Introduction to Markup. Session 10. Intro to Markup. What is a markup language? What are the benefits of using markup? Hypertext markup language Homework. What is a markup language?. Comprises content and a description of how to display the content
E N D
Introduction to Markup Session 10
Intro to Markup • What is a markup language? • What are the benefits of using markup? • Hypertext markup language • Homework
What is a markup language? • Comprises content and a description of how to display the content • Depends on a program to interpret the instructions and display the content • Basics are defined by international standards • Can be extended with custom styles • Examples: HTML and XML
Benefits • Smaller files • Easier and faster to transmit • Consistent styling across platforms • Easy to change the appearance by modifying the styles
HTML • "Hypertext" is text that contains links to other content, such as text, pictures, and audio • Hypertext markup language (HTML) is the default markup language of the Web • Tags defines both the structure and the style for the content
Tags • Tags mark the beginning and end of a section • Tags can be nested inside other tags • Examples: • <body> </body> • <h1> </h1> • <p> </p> • Tags should always be "closed"
Attributes • HTML elements often use attributes to add more information • Attributes always come in a name="value" pairing • For example: • href="http://10minutetech.com" • class="paragraph" • style="text-align:center"
Styles • Styles control and modify the way your content is displayed on the virtual page • Styles can be defined inline in your HTML code, or they can be listed in a separate stylesheet • If they are listed in an external stylesheet, your pages can be changed just by switching the stylesheet or modifying the settings in the stylesheet
Homework • Read through the online HTML course at: http://www.w3schools.com/html/default.asp • Experiment on your own using their editor