Coding a Website with HTML

Preview:

DESCRIPTION

 

Citation preview

Coding a Website

View Source CodeGo to Blue Valley High School website…

HTML vs. XHTMLHyperText Markup Language HTML is the language that has historically been used to create documents on the web. It is plain text, but includes a variety of tags that define the structure of the document, and allow documents to include headings, paragraphs, images, links, lists, tables, and other features.

XHTML is a rewrite of HTML as an XML language. XHTML is very similar to HTML, but has stricter rules. HTML was relaxed about things such as case sensitivity (XHTML elements must be in lower case) and closing tags (all XHTML elements must be closed).

CSS

Cascading Style SheetsCSS is a language that is used in conjunction with HTML to control how web pages are displayed. The difference between HTML and CSS is that HTML defines the structure and content of the document, and CSS controls the presentation.

Precoding HTML Tags<html> Typed before all the text in the document. This marks the beginning of the html document.

Precoding HTML Tags<head> Web pages are divided into two main sections: the head and the body. The head provides information about the document, including the author, description, keywords, title, and other information. *In our "bare bones" document the only content in the head section of our web page is the title.

</head> This marks the closing of the head section.

Precoding HTML Tags<title> You must give your document a title. This title doesn't actually appear within the web page, but appears in the title bar of the browser window. This is also the title of the page that will be displayed by default in search engine results or in user's Favorites.</title> Closes the title tag.

Precoding HTML Tags<body> The body section contains the contents of your document.

</body> Closes the body tag.

</html> Ends the html document.