1 / 16

Validation, CSS, and Templates

Validation, CSS, and Templates. Mrs. Brownfield Webpage Design. Validation. “Approving” your code Checking code for errors Errors known as “tag soup” Ensure browsers will display correctly Professionalism. Validations. Where do we validate http://validator.w3.org /

stamos
Download Presentation

Validation, CSS, and Templates

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. Validation, CSS, and Templates Mrs. Brownfield Webpage Design

  2. Validation • “Approving” your code • Checking code for errors • Errors known as “tag soup” • Ensure browsers will display correctly • Professionalism

  3. Validations • Where do we validate • http://validator.w3.org/ • Upload document or Type URL • What happens • Finds mistakes or problems in code • Correct on original document • Re-upload, and Validation code for image will appear

  4. Assignment • Update Assignments Page with all new projects • Open Activity 1 • Practice Validation on Activity 1 • Validate all former assignments

  5. Validation Problems • Check for start and close tags • Check for quotes around attributes • Correct doctype declaration? • ALT attribute on image tags? • Self close certain tags?

  6. Meta Tags • Might be a common problem with Validation • Meta tags do all of the following: • Describes what can be found on your page • Used by search engines • http://www.w3schools.com/tags/tag_meta.asp • Two main parts (Name, Content) • Third meta tag to describe written content

  7. CSS Extending Dreamweaver Knowledge

  8. What is CSS? • Cascading Style Sheets • Control style and layout of multiple pages at one time • Defines how html elements display • Can be internal styles or attached as external style sheets

  9. How does CSS work?

  10. CSS Extended • ID verses Class • ID – giving certain elements in your page an identifier and then setting styles to that identifier • Class – a specific type of style that you can apply to multiple elements

  11. What does it look like? ID Class p.center {text-align:center;} #para1{text-align:center;color:red;}

  12. CSS Code Example <head><style type="text/css">hr {color:sienna;}p {margin-left:20px;}body {background-image:url("images/back40.gif");}</style></head>

  13. CSS Code Examples http://www.w3schools.com/css/tryit.asp?filename=trycss_color http://www.w3schools.com/css/tryit.asp?filename=trycss_link

  14. CSS – You try it • Open a previous activity done in html • Add CSS to change text, background colors, and/or links

  15. CSS in Dreamweaver • Mainly use external style sheets and apply to pages • Create a new document in Dreamweaver and save it as CSS • Expand CSS Styles tab on the right • Use new CSS Rule button on that panel • Save and apply document to html documents

  16. You Try It • Open the directions page on the shared drive in the Spring Folder • Spring Website – work together

More Related