HTML and CSS 1
+HTML
+Markup Languages
++ A markup language is not a programming language. A markup language + describes documents in which some marks add information. The + Hyper-Text Markup Language is a standard for documents displayed in a + web browser. HTML uses tags enclosed in angle brackets (<>) to + mark text. There are 3 types of tags: +
+ +-
+
- + Open <tag>, and close </tag>, like + <p> A paragraph </p>. In between the opening and closing + tags we can put anything, including other tags. + +
- + Self-closing, as in <img src="cat.png" /> + (note the slash at the end). + +
- Empty elements, like <br> (no slash at the end). +
Entities
++ Since angle brackets are used for marks, a document displaying those + symbols will need to represent them in another way. Entities describe + all kinds of symbols (including angle brackets), and they start with a + & and end with ;. There is a full list of standard entities and they + are useful in general for showing mathematical operations, arrows, + special accented characters, etc. +
+ +So a way to show the text “this is the: 2 × 3” in HTML would be:
+ ++ which uses the entities lt (less than), gt (greater than), and times. +
+ +Comments
++ As in typical programming languages, you can insert comments in an + HTML document, which are tags ignored by the parser and therefore only + useful for developers which work on the code. They start with + . +
+ +
Comments