1 / 12

Basic HTML

Basic HTML. Lesson Overview In this lesson, you will learn to: Write HTML code using a text editor application such as Notepad. View Web pages created with HTML code. Create a comment within an HTML document. Format text within a Web page. Creates tags with attributes. Web Page Structure

borka
Download Presentation

Basic HTML

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Basic HTML

  2. Lesson Overview • In this lesson, you will learn to: • Write HTML code using a text editor application such as Notepad. • View Web pages created with HTML code. • Create a comment within an HTML document. • Format text within a Web page. • Creates tags with attributes.

  3. Web Page Structure HTML is an example of a publishing language for the Internet H Hyper T Text M Markup L Language

  4. Viewing Web Sites Web browsers Internet Explorer Mozilla Firefox Netscape Navigator Apple Safari And others Web sites may appear differently when viewed in different browsers

  5. <html> <head> <title>Tags and Attributes</title> </head> <body> It’s time to learn how HTML tags are used to create Web pages. All HTML pages begin with the html (the html must be included inside the < > brackets) tag and end with the /html (the /html must be included inside the < > brackets). Considering the huge amount of information on the Internet, Web pages are created from a surprisingly small number of tags, and you will find that they are easy to learn and use. The HEAD element (delineated by the head and /head tags) comes next and serves as a box or container that can hold a variety of other elements, including the TITLE element. The TITLE element contains the words that appear on the title bar or page tab in the browser window. In this example, “Tags and Attributes” is the title. </body> </html>

  6. Create an HTML file • Save the code that you just created as “tags.html” • The extension .html designates a file to be opened by a browser • Access the file and open it

  7. How will the following examples of text be displayed by a Web browser? • <b>How would this text look different?</b> bolded text (deprecated) • <strong>Does this look any different?</strong> strong or bolded text • <i>How would this text be displayed?</i> italicized text (deprecated) • <em>Same as italicized?</em> italicized text • <u>This tag might be useful for titles.</u> underlined text • <body text=red>How would this tag change things?</body> text color would be red

  8. Text size Text size can be altered by the use of tags <h1>This tag creates large text</h1> <h2>Creates a slightly smaller text</h2> <h3>Is smaller yet, but still large</h3> <h4>Starts getting smaller</h4> <h5>Now the text is getting small</h5> <h6>And finally, this is the smallest</h6>

  9. Creating a Break Browsers ignore the use of the “enter” key To force the browser to place text on the next line use the “break” tag <br> No closing tag is needed for this tag in HTML

  10. Creating a Paragraph <br> vs. <p> … </p> <br> places the text on the next line <p> … </p> creates a block or paragraph of text

  11. Creating a Comment Why would a Web designer want to use a comment? Comments can be created using code Comments do not show in the Web page when viewed <!-- This is an example of a comment -->

More Related