0

Html and JavaScript Mumbo Jumbo Part 1

Posted by Alan on January 7, 2014 in 个人随笔 |

I want to start a journey of getting to know those jargons with you,  fancy words like HTML, CSS, Javascript, JQuery, AJAX, PHP, MySQL aren‘t really as straightforward as they sounded to be. As a member from the sales team, you shouldn’t be expecting to become an expect on any of these subjects, after all, this is just a blog from an amateur.

What is HTML after all? Hypertext Markup Language or HTML(standardized by W3C or World Wide Web Consortium) is a browser-side language which can be interpreted by different browsers to present you all the beautiful and ugly billions of web pages out there. Basically with HTML you use a pair of tags(open tag and close tag) to present elements:<p></p> for paragraph, <h1></h1> for heading 1 etc. But there’re tags without closing tag, such as <br /> tag and <hr />tag. Like any language, HTML has its own grammar, always surrounded by <html></html>tags(the DTD(Document Type Definition) is another story), within which there’re <head></head>and <body></body> tags. Within head tags you’ll have title, meta(description, keyword), link(for CSS),script(which can also be put in body tags) tags. The main content are all located in body tags, here we’ll meet H1 through H6, p,table, div, span, ul, ol and other tags.

CSS is the short form of Cascading Style Sheets, which formats the HTML elements with different styles(be it background image, padding, margin or font size). It’s worth noting that you can format the margin or padding on four sides independently in a single line of code, it goes clockwise(namely top, right, bottom, left). CSS can be a individual .css file or embedded within the html files.

JavaScript was formerly known as EMCAScript(Sorry, EMCAScript is a standard, JS was firstly know as Livescript and developed by Netscape), but then renamed as JavaScript, probably it was due to this buzzword Java came around at the time it was renamed. We’ll talk more about JavaScript in the future.

Comparing to CSS and JS, HTML is like the building blocks of a web page, it controls the structure, CSS and JS are there to make the web pages in style and improve the interactivity.

Tags: ,

Leave a Reply

Copyright © 2012-2018 记录点滴生活 | Alan Hou的个人博客 All rights reserved.