A web designer creates presentations using coding languages like HTML and CSS that are delivered through browsers. They design the overall look and feel of a website and specify how pages are displayed. Web designers may work for companies, agencies, or freelance. They are responsible for graphics, layout, programming, and content. HTML is the basic language used to structure web pages using tags like <html> and <body>. CSS enhances HTML and is used to format text, backgrounds, borders, and more. CSS can be applied inline, with embedded stylesheets, or external linked stylesheets.
13. HTML = hypertext markup language HTML is a coding language that makes up the basic construction of a Web page.Programs for coding HTML (called HTML editors) include Notepad and Notepad ++. Others include MS Expression Studio Web & my personal favorite, Adobe Dreamweaver.
14. HTML Basics HTML consists of commands in between angled brackets ( <> ), called tags or markup. These tags define the structure & layout of a Web page and specify how the page is displayed in the browser.
15. HTML Basics Open/close tags : <html> </html> self-closing: <br />, <img />, <hr /> Closing tags & self-closing tags require a forward slash ( / ) either in the closing tag or at the end of the self-closing tag: </h1> or <img />
16. HTML Basics HTML documents must start with html tags (<html>, </html>). The content in between the html tags describes the Web page. All page content in between the open/close BODY tags (<body> </body>) This means that everything contained between the <body> tags will be visible on the page.
23. HTML Basics Forms <form> </form> - used to pass data to a serverfrom the browser. Example: <form>First name: <input type="text" name="firstname" /><br />Last name: <input type="text" name="lastname" /> </form> How it will appear on a Web page:
24. HTML Basics Buttons: <button type="button">Clicky click here!</button> How it will appear on the page:
30. HTML Basics Saving an HTML document: The document must have a file extension of either “.html” or “.htm”. Otherwise it is just a text file (.txt) and the code will appear in the browser as simple text, like this:
31.
32. HTML Basics In a Web browser, when viewing the same code for a document saved with the “.html” or “.htm” file extension, nothing will be visible on the page since there is nothing within the <body></body> tags in the code.
34. CSS There are standards & rules that apply to CSS just like there are with HTML. CSS is a separate “language” but it is not HTML. It enhances the display capabilities of HTML. The same HTML editors can be used to write CSS (Notepad, Notepad ++, among others).
40. Example of Embedded CSS: <head> <title>My Web Page</title> <style type="text/css"> body {background-color: #F0E0B2} h1 {background-color: #58B79F; color: #EBFFFF; font- family: Century Gothic, sans-serif; text-align: right} h2 {font-family: Century Gothic, sans-serif; text- decoration: underline; color: #58B79F} h3 {font-family: Century Gothic, sans-serif; text-align: center; color: #58B79F} p {font-family: Century Gothic, sans-serif; font-style: italic; color: #47390D; font-size:20px} a {font-size:22px;color:#58B79F} </style> </head>
41.
42. The h1 is different from the others because it will have a background color of its own.
43. header 2 element will have the same font, medium blue-ish green.
44. header 3 will have the same font & same color as h2 but will be center-aligned.
45.
46.
47. CSS External/linked style sheet- a separate file that contains all the styles for the html document that is linked into the <head> section after the <title></title>. The file is saved with a “.css” extension (i.e.- “mystyle.css”)… otherwise it’s just a text (.txt) file.
48. CSS Example of inserting the link to the style sheet into the HTML document: <head> <title>My page</title> <link rel="stylesheet" type="text/css" href="mystyle.css" /> </head>
51. Final points It is important to note that the pages’ appearance will vary in different browsers because each browser renders the code a little differently.
52. Final points There is much more to HTML & CSS than what I’ve shown you. Some excellent resources for learning Web design on your own are: W3Schools.com HTML.net HTMLdog.com Youtube.com