1 / 25

Html: getting started

Html: getting started.

shima
Download Presentation

Html: getting started

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. Html: getting started • HTML is hyper text markup language. It is what web browsers look at on the Internet. HTML documents should be created in a simple text editor like Notepad. To start writing HTML, run the program called Notepad by typing in its name or finding it under all programs -> Accessories -> Notepad.

  2. My First html • A HTML page has a heading section and a paragraph section. The beginning of an HTML sectionalways starts with a command in < > and ends with < />. Create your first document as shown below.

  3. Running the file. • After you save the text file with the extension .html, it will open in a web browser. Try saving your first web page made on the previous slide and then clicking on it. Be careful: if you want to edit the file and make changes you can’t double click on it. Right click on it to find edit options instead.

  4. Adding links to the html page • Some times a page wants to have a link to another page. Try adding a link on your web page like this one: • Notice that the command starts with <a href and ends with </a>. Add some links to web ages of your choice by copying that line and changing the link and description.

  5. Review • Getting started • My first html • Running the file • Adding Links

  6. Adding Pictures in html • If you can find an image on the internet, you can include it on your page. Some sites encourage this and some will take measure to prevent it. See the picture shown as a person clicked on a happy picture of a sunny and copied the link shown in the browser URL window. The link is then added to html code.

  7. <imgsrc=“picture.gif“> • The img command lets people add pictures to their web page. Use the format shown in the title except replace the word “picture.gif” with the link of the picture being used. A web page can have just one picture or it could have many thousands. Add some good pictures to your web page.

  8. Using a picture as a link • So far we have learned how to add pictures and how to add links. When using the <a href command, a programmer starts the link. If the img command is used before the link is ended with </ a> then the image will be part of the link and people who click on it will go to the link when on the internet.

  9. Example text • The following example will put a picture of a Google icon on a web page and link it to a Google Search. Add the Google search to your web page. Be sure to replace “whatever.jpg” with a link to a picture. : • <a href="http://www.google.com”>< imgsrc=“whatever.jpg" />< /a>

  10. Review • Adding pictures in HTML • <imgsrc=“picture.gif“> • Using Pictures as Links • Example text

  11. New line/paragraph • <br> starts a new line. • <p> starts a new paragraph, same as new line but adds a blank line. • Write a sentence in your web page and end it with a <br> • Write a sentence in your web page and end it with a <p>

  12. Text Formatting • <b>this text will be bold</b> puts text between the tags in bold. • <i>this text will be in italics</i> puts text between the tags in italics. • <u>this text will be underlined</u> makes text between the tags underlined. • Use all 3 of these commands on your web page’s text to practice them.

  13. Heading • <h1>large heading text</h1> puts text between commands as a large heading. • <h3>sub-heading text</h3> puts text as a sub-heading. • In the heading section of your web page, enter your name with different heading sizes from 1 to 7.

  14. Centering text • <div align="center">center text</div> centers text and images on the page. • There are other ways to align the text as well. • If the “center” word is changed the alignment is changed. • Try typing and centering some text on your web page.

  15. review • New line/ New paragraph • Text Formatting • Heading • Centering text

  16. Separating parts of the page with lines • <hr> puts a long line across the page. • <hr width="50%"> puts a short line across the page. • Add a line across the whole page. • Add a line across half the page.

  17. Add a table to the web page • Some times a table can be used to help the format of how information or pictures is placed on a page. • A table starts and ends with the command <table> and </table> • Each row is created with <tr> and </tr> • Each data cell is separated with <td> and </td>

  18. Table Code

  19. Creating the table • Create a table with two columns and 15 rows • Each row will have two <tr> and </tr> • Each of the two data cells per row will have <td> and </td> • The data will be filled in with the project rubric on slide 21 and 22.

  20. Separating parts of the page with lines • Add a table to the web page • Table Code • Creating the table

  21. Project Rubric • The project rubric will score how well this introduction web page. • There will be a column for the name of each item available. • There will be a column for possible points • There will be a column for points earned.

  22. Rubric: 7 points per item • 1 Created an html document • 2 heading/body • 4 Added links • 6/7 added pictures • 8 added a linked picture • 9 added a Google linked picture • 11 used <br> and <p> command • 12 showed format examples

  23. Rubric continued • 13 added heading 1-7 • 14 centered text • 16 added full • 16 added half line • 17 – 19 table slide column • 17 – 19 table score column • Added sum of score.

  24. Web Pages: The next step • The examples shown in this unit are a basic introduction. Fortunately, html is very well documented on the Internet. To find out what to do, try searching for an example. To see how to make a table, search “html table example”. A new html developer will have to look up a lot of things until developing more practice.

  25. Review • Project Rubric • Rubric: 7 points per item • Rubric Continued • Web Pages: The Next Step

More Related