|
|
What is a Web Page?Web pages are made up of three principle components:
Each of these components is comprised of text. This means that Web pages can be saved in text-only format but this also means that Web pages can be viewed in practically any browser and guarantees the universality of the Web. It should be noted that Web pages also contain information about the language or script in which the text was written (encoding) and the kind of markup that describes it (doctype). How HTML tagging worksHTML tells a browser how to display a web page. The documents containing HTML are plain text files (ASCII) with special "tags" that a web browser knows how to interpret and display on your screen. Proper syntax for HTML markup is <tag>the content the tag effects</tag> Elements, Attributes, and ValuesHTML is made up of three principle types of markup: elements, attributes and values Elements are labels (tags) that identify and structure the different parts of a Web page. Some elements have one or more attributes which further describe the purpose and content of the element. Elements can contain content (container tags) or they can be empty (stand-alone tags):
Parents and ChildrenIf one element contains another, it is considered the parent of the enclosed element (child). This structure becomes important when adding styles to elements or applying Javascript effects to them. When elements contain other elements, each element must be properly nested.
HTML vs. XHTMLThere is no browser that supports every tag or every property of every tag in the current HTML/XHTML standard. The current effort (XHTML and CSS) by the W3C (World Wide Web Consortium) is an attempt to encourage standardization by all browser manufacturers.
|
|
Special Characters in HTML |
Browser View |
|
|
|
|
|
|
| Browsers ignore multiple character spaces in an HTML file. Notice how the browser ignores the spaces in the first example. | You can add hard spaces using the "nonbreaking space" ( ) character entity. |
![]() |
|
| Visit (X)HTML Elements and Attributes Reference
Site http://www.cookwood.com/html/extras/xhtml_ref.html Entities for Characters with Special Meanings http://www.cookwood.com/html/extras/entities.html#html W3 Schools Special Character Entity Reference http://www.w3schools.com/html/html_entitiesref.asp
|