The flashcards below were created by user
on FreezingBlue Flashcards.
<?xml version="1.0" encoding="UTF-8"?>
- Tells the browser this is an eXtensibleMarkup Language (XML) file using
- the UFT-8 character set..
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- This is the Document Type Definition (DTD) specifies that this
- XML file is one of three "flavours" of XHTML 1.0 (strict,
- transitional and
- frameset) designed for web page applications.
- Almost all of your work for this module should conform to the strict
- This is the root element of the document containing the data
- first two lines are metadata describing the data structure). The html
element needs an attribute (xmlns) and value (http://www.w3.org/1999/xhtml)
related to the specification of the xhtml used in the file.
<!-- template of basic structure of an xhtml file -->
This is a comment that the browser ignores but it's there to help people
- understand the source code.
- XHTML comments begin with <!-- and finish with -->
/* <![CDATA[ */
- Start of CDATA (character data) section enclosed in CSS comments means
- CSS will be ignored by XHTML validator.
/* ]]> */
- Opening and closing CDATA directives enclosed in CSS comments so that
- CDAT directives ignored by CSS validator.
whats an element
- The first word or character that appears inside the "<"
- opening bracket is called the element. An
- element is a command that tells the browser to do something, such as <p>.
what are attributes?
- Attributes that appear to the right of the element are separated by a
- space, and followed by an equal sign. The
- value of the attribute is contained in quotes. In the following
- example the element is p, the attribute
- is name, and the value of that attribute is fred.
- <p name="fred">This is a bit of text.</p>
how do you get a manual line break?
how do you get a horizontal rule tag?
inline elements which should be used for structuring information rather
than formatting text.
Tells the browser that the text is a piece of computer program code.
- Tells the browser that the enclosed text is emphasised in some way (how emphasis is applied will depend on the
- browser and style).
- Tells the browser to retain the spaces and newlines used in the source code. Normally a brower treats
- combinations spaces, tabs and new lines as a single space.ells the browser that the enclosed text is "strong" or important.
Tells the browser that the enclosed text is "strong" or important.
Signifies an ampersand or & character
Signifies a copyright or © symbol
Signifies a < or greater than character
Signifies a < or less than character
- Non breaking space - if you want multiple spaces you should put
for each blank space
- you want to appear in the web page.