Html and JavaScript Mumbo Jumbo Part 1

个人随笔 Alan 11年前 (2014-01-07) 4350次浏览 0个评论 扫描二维码

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.

喜欢 (0)
[]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址