Showing posts with label html. Show all posts
Showing posts with label html. Show all posts
Thursday, May 3, 2012
15 What I have learned this semester
I knew HTML pretty well before 10 grade, and visually know what do to do and what not do for designing a website. But PHP is very new to me I learned NEVER leave a space between < and ? and php in your PHP code, and always remember your ; after each line of php code or your webpage will throw up all over you. I have I've made a lot of "flat" websites: a place for people to read, listen to music, and view pictures of whatever the website is about. But I've never thought about the design principles of e-commerce website, for example I would normally not have a "buy now with 1 click" button like Amazon does because I would want the visitors of my website to make sure before charging their credit card. Since a lot of websites are e-commerce websites I have to starting thinking of design that's not just good for the visitors but also for the business. In addition to that, I learned how the changing (or lack of changing) laws, regulation, and policies play huge rule into e-commerce. How the Automated Clearing House might not be needed for electronic purchases and how e-commerce hurts government funding (even though the law is on online businesses side states governments might not like e-commerce because it deprives them of their sales tax (see blog 8 Amazon vs. State Sales Tax)). This class required me to use WordPress (see blog 13 Drupal, Wordpress, & Joomla) and Microsoft Expressions. Normally, since I'm old school and can make a whole website from notepad, I hate programs that auto-code things for you because if you want something very technical done it won't let you go in and fix it the way you want it and a lot of auto-coders often add a lot of unnecessary code (Front Page was well known for that, made a table for everything). Microsoft Expressions, though annoying at first getting used to their style sheet with so many <div>s and I would often write code that pops up so I had double end tags, but has been useful and lets me go in and edit things the way I want. WordPress, Joomla, and Drupal I'm still debating with if I like them or not. They're it not just place for pre-made website layouts for people that don't have a clue how to do HTML but it does more with widgets. WordPress is for people that don't know PHP and other computer languages. I don't like how you can't go into the code and edit the layout and style at all, but at the same time it does more PHP than I can and has some neat widgets (like old school HTMLgear). It was especially interesting learning about web servers (see blog 11 Apache & Microsoft IIS web servers), because on summer a lot time ago I tried put several of my websites on an old computer because I ran out of room on Geocities and Angelfire and tired to turn it into a server. I managed to get the website up but only on my home network, I never manged to launch it to the web (probably because I didn't want to pay for anything and couldn't figure out how make a free domain name).
Tuesday, February 7, 2012
3 XML vs. HTML
Xml stands for EXtensible Markup Language and Html stands for hypertext markup language, meaning they’re both markup languages they look and are very similar but not the same. In short, the purpose of html is to display data, Html is really only for the web, while xml sends and stores data.
Xml tags are case sensitive, must have an end tag (while some html tags don’t have an end tag and some html end tags are no longer needed when you get into html5), must be nested in order, some characters must be written differently, and attributes in tags must be in quotes unlike html. Which sucks, because that makes it easier to have one character wrong or nested incorrectly the whole thing not work and harder to find the error in the code with xml, because of newer versions of html like html4 and html5 html is more forgiving than xml. The upside is that unlike html, that has predefined tags aka you can’t use anything but those tags, xml you make up your own tags; and xml saves all the spaces you typed when html just gets rid of white space, I mean how many times have you had to figure out the code for an indent with html but with xml you can just indent like you normally would!
Examples:
Nesting…
Correct <b><i>text</i></b> ok for html and xml
Incorrect <b><i>text</b></i> not ok for xml but like will still work in html
Html tags that don’t have an end tag…
<br><img><meta> <hr> (for more examples see http://webdesign.about.com/od/htmltags/qt/html-void-elements.htm)
Some end tags are no longer needed when you get into html4 and html5 (explained here http://webdesign.about.com/od/htmltags/qt/optional-html-end-tags-when-to-include-them.htm)
Correct <p> text</p> will work for xml and html
Incorrect <p>text will never work in xml but you can get away with it with html
Attributes in tags must be quoted…
Correct <body color=“navy”>content</body> ok for both html and xml
Incorrect <body color=navy>content</body> again will work with html but not at all with xml
Case sensitivity…
Correct <title>the title text</title> ok for both xml and html
Incorrect <Title>the title text</title> will work in html but not xml
Odd characters like > < ^ & “” ‘’ must be written differently…
Use & for & and " for “
The truth is that you’re supposed to write odd characters like this for html but html will let you get away with these. With xml you must use the code for these kinds of characters, not type it out like a word document.
For more examples and more info about xml see http://www.w3schools.com/xml/xml_syntax.asp
All RSS (really simple syndication) feeds are (a type of standard way of writing) xml, for those of you guys that don’t know or don’t use RSS feeds, RSS is like a special bookmark instead a bookmark you would save on your browser to link to a favorite website. RSS feeds are like news feeds or rather updates feed of that website so for example: if a new webpage is added to the website the RSS feed would show that update and link you to the new page - Or link you to whatever the update might be like a new story (a lot of newspaper websites have RSS feeds) or new song all in a short drop down list with most recent update up top.
(screen shots of the bottom right of homepages of http://www.msnbc.msn.com/ News and http://www.foxnews.com/)
(Despite flash and php) Still nothing can replace html for making websites, xml just complements html. Xml was created with the idea in mind of the conundrum of “how to we send this info from a website into our database (or other application) easily when they’re incompatible?” The answer, xml stores data in plain text format that reads as if you’re reading a word document (a more accurate description would be reading .txt file in notepad but with an .xml file extension instead) and since almost all programs can read text documents it’s much easier for other programs to translate and transfer the data into them. One of the most annoying problems with technology is that it keeps changing which means updating to the new, and updating is a pain with all the incompatible software and hardware and converting data, since xml comes out reading like text this is no problem.
(Despite flash and php) Still nothing can replace html for making websites, xml just complements html. Xml was created with the idea in mind of the conundrum of “how to we send this info from a website into our database (or other application) easily when they’re incompatible?” The answer, xml stores data in plain text format that reads as if you’re reading a word document (a more accurate description would be reading .txt file in notepad but with an .xml file extension instead) and since almost all programs can read text documents it’s much easier for other programs to translate and transfer the data into them. One of the most annoying problems with technology is that it keeps changing which means updating to the new, and updating is a pain with all the incompatible software and hardware and converting data, since xml comes out reading like text this is no problem.
Xml isn’t just data sent from a website to an application xml sends data to reading\voice machines for the disabled like a computer that reads out loud text that’s on their screen on your website.
Subscribe to:
Posts (Atom)

