Something coding related, I guess.
Last edit: 13:35:45 2/24/2019
When it comes to creating a web page, the word HTML occurs constantly. As I study further and further, words like Markdown and CSS become familiar to me. Although I have never written anything in HTML, JavaScript, or CSS directly before, I believe it is of great use to gather some information about them.
Before we go and learn some famous markup languages, here are some questions we should focus on first:
What is the meaning of “Markup Language”?
Imagine an actor staring at a script. There are words that tell him what he should say in the next play, we call them “dialogs”, and there are words that tell him how he should say those dialogs, in what kind of emotion he should be when playing it, let’s call it “instruction text”.
In the world of computers, when writing a document, there are “dialogs” that determine what contents will be displayed. There are also “instruction text” that determines how these contents in the document shall be displayed, such as the size of a word or in which place paragraph a photo is to be put. We call “instruction texts” in computer text processing “tags”.
According to Wikipedia:
In computer text processing, a markup language is a system for annotating a document in a way that is syntactically distinguishable from the text.
The act of “annotating a document” is adding tags to your contents. There are many different tag systems, we call them different markup languages.
What does “Hypertext” mean?
Well, according to Wikipedia,
Hypertext is text displayed on a computer display or other electronic devices with references (hyperlinks) to other text that the reader can immediately access.
In a word, when you see texts that lead you to other texts, consider them as hypertexts.
Here are some popular markup languages:
HTML stands for “Hypertext Markup Language”.
No, not “How to Meet Ladies”! 😂
According to Wikipedia,
HTML is the standard markup language for creating web pages and web applications.
Here we are back to the topic “HTML”. So, what does a HTML file look like? Let’s take a look at this “hello, world” in HTML:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
</body>
</html>
By the word “standard” you may see that most websites are written in HTML, or HTML takes a huge part in creating them. With HTML, you can add pictures, texts, and other things in the way you want to a website or a document. HTML was first released in 1993, that’s probably why it becomes so universal.
However, a “pure” HTML web page is usually static while most of the web pages that you see on the Internet seem to be dynamic. Well, that’s because
HTML can embed programs written in a scripting language such as JavaScript, which affects the behavior and content of web pages. Inclusion of CSS defines the look and layout of content. The World Wide Web Consortium (W3C), maintainer of both the HTML and the CSS standards, has encouraged the use of CSS over explicit presentational HTML since 1997.
Markdown is a lightweight markup language with plain text formatting syntax.
You can easily tell that Markdown is way much easier comparing to HTML while it can create a relevantly good document with basic layouts. I will not give any example here. It’s usually used to write README files or taking notes, etc. It was first released in 2004.
However, one of the disadvantages of Markdown is that the language is so easy that it can’t deal with complicated circumstances. If you want to insert a photo at a specific position or do any other “high-tech” stuff, you may be disappointed if you are trying to do that in pure Markdown.
Luckily, there is a solution to that. You can add HTML and CSS codes to a “.md” file.
LaTeX (/ˈlɑːtɛx/ LAH-tekh or /ˈleɪtɛx/ LAY-tekh; a shortening of Lamport TeX) is a document preparation system. When writing, the writer uses plain text as opposed to the formatted text found in WYSIWYG (“what you see is what you get”) word processors like Microsoft Word, LibreOffice Writer and Apple Pages. The writer uses markup tagging conventions to define the general structure of a document (such as article, book, and letter), to stylise text throughout a document (such as bold and italics), and to add citations and cross-references. A TeX distribution such as TeX Live or MikTeX is used to produce an output file (such as PDF or DVI) suitable for printing or digital distribution.
Funny thing about its name is that:
Within the typesetting system, its name is stylised as
But you may also go with LaTeX.
It was initially released in 1983.
What does “Style Sheet Language” mean?
A style sheet language, or style language, is a computer language that expresses the presentation of structured documents.
In short, a style sheet language tells your contents in a document how to display.
Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language like HTML.
It isn’t hard to tell from “cascading” that CSS is used to deal with complicated issues with layouts, fonts, colors, etc.
It looks like this:
h1 { color: white;
background: orange;
border: 1px solid black;
padding: 0 0 0 0;
font-weight: bold;
}
/* begin: seaside-theme */
body {
background-color:white;
color:black;
font-family:Arial,sans-serif;
margin: 0 4px 0 0;
border: 12px solid;
}
The language was first released in 1996.
CSS is a cornerstone technology of the World Wide Web, alongside HTML and JavaScript.
In addition to HTML, other markup languages support the use of CSS including XHTML, plain XML, SVG, and XUL.
JavaScript often abbreviated as JS, is a high-level, interpreted programming language that conforms to the ECMAScript specification. It is a language that is also characterized as dynamic, weakly typed, prototype-based and multi-paradigm.
NO! JavaScript ≠ Java.
Rumors has it that the reason why it is called JavaScript, with the word “Java” inside, is that Java was popular then and naming it as “JavaScript” also made this language popular.
This language is used in webs very often. It was initially released in 1995.
Language | Type | Release Year |
---|---|---|
HTML | Markup Language | 1993 |
Markdown | Markup Language | 2004 |
LaTeX | Markup Language | 1983 |
CSS | Style Sheet Language | 1996 |
JavaScript | Programming Languages | 1995 |
HTML, from Wikipedia. Retrieved in January, 10, 2019.
How to Meet Ladies, from http://devhumor.com/media/html-how-to-meet-ladies, submitted by: admin. Retrieved in January, 14, 2019.
Markup language, from Wikipedia. Retrieved in January, 10, 2019.
“hello world” in HTML, from 【Html】第一个网页helloworld. Retrieved in January, 11, 2019.
Hypertext, from Wikipedia. Retrieved in January, 11, 2019.
Markdown, from Wikipedia. Retrieved in January, 10, 2019.
LaTex, from Wikipedia. Retrieved in January, 15, 2019.
Style sheet language, from Wikipedia. Retrieved in January, 15, 2019.
CSS, from Wikipedia. Retrieved in January, 15, 2019.
JavaScript, from Wikipedia. Retrieved in January, 15, 2019.
Photo Java 和 Javascript的关系,就和雷锋和雷峰塔一样, from 菜鸟教程. Retrieved in 1/15/2019.
Java 和 Javascript的关系, from 菜鸟教程. Retrieved in 1/15/2019.