Docsity

HTML markup language reviewer, Cheat Sheet of Computer science

Toggle sidebar
bg1
HTML DEFINITION
Hypertext Markup Language, also known as HTML, marks up files so browsers know
how to display contents as a web page. An HTML file has a .html or .htm file extension
which tells the device that the file should be opened in a browser.
TAGS AND PLAIN TEXT
Tags- used to implement HTML elements into a webpage, is not displayed on website
Plain text- text displayed on a website, in the body, in between the tags
HTML ELEMENTS
Opening tag-angled brackets <tag>
Content- inside of bracket
Closing tag- angled brackets and forward slash </tag>
HTML HISTORY
Years
HTML versions
HTMl1- Tim Berners-Lee linked documents using hypertexts. HTML was intended to be
platform-independent, thus fonts, colors, or anything about design and layout did not matter.
1990-1994
Text-based
1993
Mosaic (first browser, made by Tim Berners-Lee) supported
images
1995-1999
Cross-browser compatibility falls apart
2000-2005
Separation of content from style
2005-2008
HTML alongside CSS is a new standard
1993
HTML 1.0
Tim Berner Lee linked documents using
hypertexts.
1995
HTML 2.0
The Internet Engineering Task Force included
stylized texts and tables.
1996
CSS 1
1997
HTML 3.2
HTML 4.0
The World Wide Web Consortium (W3C)
included browser-specific features.
1998
CSS2
1999
HTML 4.01
Introduction of doctypes
2012
HTML 5
Returned to the original features of HTML but
now comes with multimedia and semantic tags.
pf3

Partial preview of the text

Download HTML markup language reviewer and more Cheat Sheet Computer science in PDF only on Docsity!

HTML DEFINITION

Hypertext Markup Language, also known as HTML, marks up files so browsers know how to display contents as a web page. An HTML file has a .html or .htm file extension which tells the device that the file should be opened in a browser.

TAGS AND PLAIN TEXT Tags- used to implement HTML elements into a webpage, is not displayed on website Plain text- text displayed on a website, in the body, in between the tags

HTML ELEMENTS Opening tag-angled brackets Content- inside of bracket Closing tag- angled brackets and forward slash

HTML HISTORY Years

HTML versions HTMl1- Tim Berners-Lee linked documents using hypertexts. HTML was intended to be platform-independent, thus fonts, colors, or anything about design and layout did not matter.

1990-1994 Text-based

1993 Mosaic (first browser, made by Tim Berners-Lee) supported images

1995-1999 Cross-browser compatibility falls apart

2000-2005 Separation of content from style

2005-2008 HTML alongside CSS is a new standard

1993 HTML 1.0 Tim Berner Lee linked documents using hypertexts.

1995 HTML 2.0 The Internet Engineering Task Force included stylized texts and tables.

1996 CSS 1

1997 HTML 3. HTML 4.

The World Wide Web Consortium (W3C) included browser-specific features.

1998 CSS

1999 HTML 4.01 Introduction of doctypes

2012 HTML 5 Returned to the original features of HTML but now comes with multimedia and semantic tags.

HTML 5- established guidelines stating that new features should be based on HTML, CSS, the DOM structure, and JavaScript standards. More markup was introduced, became device independent

DOCUMENT OBJECT MODEL (DOM)

HTML STRUCTURE

Document type- is the standard. Document type is written at the beginning Element- element tells the browser that the file is an HTML document. tag has an attribute lang which tells browser to read it in a certain language Head element- Includes information that is not visible to the user โ— Metadata- will cause error if not included, tells what character set, keywords, author Title element- page title is declared inside the head. output is displayed on the tab or at the top of the browser. Body element- body contains the bulk of the page displayed as content in the browser. Anything outside of the body will not be displayed

HTML BASICS Display Block- can take the whole width and height of the screen size. Inline- only uses as much space needed. Cannot be resized Inline-Block- formatted like an inline element that allows modifications in the heightand width Text Headings- size of plain text (1=largest, 6=smallest) Paragraph- block element, made of plain text, NO paragraph inside a paragraph Divider- block element that divides a paragraph (one line big) Horizontal rule- inserts a horizontal line as a partition Line breaks- inserts a new line indicating the end of a line. A
is also a self-closing tag.

HTML CODING PRACTICES Comments- To add a comment, highlight a line or lines of codes from your document and click Ctrl+/ Correct document type- declaration is the standard. DONT FORGET TO ADD Lower case elements- Do not use capital letters Close all elements- Close all elements . If self closing, use