<< < 4 5 6 7 8 9 10 >   Sort: Date

Required Sub-elements in HTML
What Is a Required Sub-element? A required sub-element is a sub-element that you must included in the parent element. Most sub-elements are optional. But there are some sub-elements that are required by their parent elements. Here are two good examples: &lt;!-- Valid: "head" requires "title" --&...
2024-02-28, 1134🔥, 0💬

Nested HTML 'blockquote' Elements
Can XHTML "blockquote" Elements Be Nested? Yes. Blockquote elements can be directly nested. This allows you to include one quote inside another quote. Below is a good example of nested blockquote elements: &lt;?xml version="1.0" ?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Stric...
2023-08-03, 1134🔥, 0💬

Highlight Part of a Paragraph in HTML
How To Highlight One Part of a Paragraph? If you want to highlight one part of a paragraph, you can use the "strong" element with the "p" element. Below is a good tutorial example of using "strong" elements: &lt;?xml version="1.0" ?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Str...
2023-08-03, 1127🔥, 0💬

Images in HTML 'pre' Elements
Can Images Be Included in "pre" Elements? Yes. In-line elements can be included pre elements. So images can be included in pre elements with img elements. Here is a good example of img elements in pre elements: &lt;?xml version="1.0" ?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 ...
2023-08-03, 1119🔥, 0💬

HTML 'body' Sub-Elements
What Elements Are Allowed as Body Sub-Elements? The content model of the body element is sub-element only. Character data is not allowed as body element's content. You can only enter sub elements inside the body element. But not all elements can be entered inside the body element. Strict HTML docume...
2023-08-09, 1113🔥, 0💬

Sequence of Sub-elements in HTML
What Is the Sequence of Sub-elements? The sequence of sub-elements is the order of how each sub-element is placed inside the parent element. For most parent elements, their sub-elements can be placed in any order. But some parent elements require you to follow a predefined sequence. For example, ele...
2024-02-28, 1107🔥, 0💬

HTML 'head' Tag/Element
What Is the HTML "head" Tag/Element? The "head" element is the second element you need to learn. The "head" element is used to provide information about the XHTML document. The "head" element should not be used to contain any contents of the XHTML document. Here are some rules about the "head" tag/e...
2024-01-19, 1104🔥, 0💬

Getting Extra Space between Paragraphs in HTML
How To Get Extra Space between Paragraphs? By default, browsers will give a predefined white space between two paragraphs. But if you want some extra white space between two paragraphs, you can enter an extra paragraph with a &amp;nbsp; entity. Note that a true empty paragraph will not give any ...
2023-08-03, 1102🔥, 0💬

HTML Elements with PCDATA Contents
What Are the HTML Elements Defined with PCDATA Contents? The following HTML elements are defined to use the PCDATA content model: &lt;title&gt; - Element to provide a title to the document. &lt;style&gt; - Element to provide a CSS to the document. &lt;script&gt; - Element to ...
2024-04-14, 1095🔥, 0💬

Closing XHTML 'meta' Tags
What Is wrong with my &lt;meta&gt; Tags? If you are converting existing HTML documents to XHTML format, you may find some &lt;meta&gt; tags are written as: &lt;meta name="Author" content="FYICenter.com"&gt ;&lt;meta name="Description" content="Tutorials, FAQs and Tips on ...
2024-04-07, 1092🔥, 0💬

Entering Comments into HTML Documents
How To Enter Comments into HTML Documents? If you want to enter comments into an HTML document, you can use the comment tag: "&lt;!-- ... --&gt;". Here are some good examples of HTML comments: &lt;!-- Start north banner --&gt;... &lt;script type="text/javascript"&gt; &lt;...
2024-03-23, 1081🔥, 0💬

HTML 'script' Tag/Element in 'head' Element
What Is an HTML "script" Tag/Element? A "script" element is an optional sub-element of the "head" and many other HTML elements. If a "script" element is placed inside the "head" element, the specified script code will not be executed immediately. Usually, you use "script" elements in the "head" elem...
2024-01-10, 1081🔥, 0💬

HTML Elements with Mixed Contents
What Are the HTML Elements Defined with Mixed Contents? The following HTML elements are defined to use the mixed content model: &lt;p&gt; - Element to insert a paragraph. &lt;pre&gt; - Element to insert a pre-formatted text. &lt;li&gt; - Element to insert an item into a list....
2024-04-14, 1079🔥, 0💬

Second Level Structure of HTML Documents
What is the Second Level Structure of an HTML Document? The second level structure of an HTML document consists of two parts: Head element - Contains information about the current document, such as its title, keywords that may be useful to search engines, and other data that is not considered docume...
2024-01-19, 1075🔥, 0💬

Writing HTML Element Attributes
How To Write Element Attributes Properly? If an attribute is allowed for an XHTML element, you must write the attribute inside the opening tag of this element. Here are some rules on writing element attributes: An attribute must have a name and a value, separated by the equal sign "=". An attribute ...
2024-04-07, 1074🔥, 0💬

HTML 'pre' Tag/Element
What Is a "pre" Tag/Element? A pre element is a block level element that can be used directly as a sub-element in the body element. You can use pre elements to specify blocks of pre-formatted text with white space characters preserved. Here are basic rules about pre elements: "pre" elements are mixe...
2023-08-03, 1073🔥, 0💬

XHTML Element Name Case Sensitive
Is XHTML Element Name Case Sensitive? Yes, XHTML element names are case sensitive. All element names must be written in lower case letters. Here are some valid and invalid XHTML element names: &lt;html&gt; - Valid name. &lt;HTML&gt; - Invalid name, must use lower case letters. &l...
2024-04-07, 1072🔥, 0💬

Incorrect HTML 'p' Elements
What Is Wrong with My "p" Elements? If you are having trouble with your p elements, it could be caused by one of the following common mistakes: &lt;!-- Missing closing tags --&gt; &lt;body&gt; &lt;p&gt;I love the way you look at me. &lt;p&gt;I love the way you kiss me...
2023-08-03, 1071🔥, 0💬

Incorrect HTML 'body' Elements
What Is Wrong with My HTML "body" Elements? If you are having trouble with your body elements, it could be caused by one of the following common mistakes: &lt;!-- Text can not be used in body directly --&gt; &lt;body&gt; Hello world! &lt;/body&gt; &lt;!-- "title" is not a...
2023-08-09, 1065🔥, 0💬

Controlling Line Breaks in a Paragraph in HTML
How To Control Line Breaks in a Paragraph? By default line breaks within a paragraph are controlled by the browser. Lines will be wrapped at the right edge of the display area of the paragraph. If you want to force a line break in middle of a line, you can use the "br" elements. Below is a good tuto...
2023-08-03, 1065🔥, 0💬

Number of Tags Defined in XHTML 1.0?
How Many Tags Are Defined in XHTML 1.0? There are 77 tags defined in XHTML 1.0: a abbr acronym address area b base bdo big blockquote body br button caption cite code col colgroup dd del dfn div dl dt em fieldset form h1 h2 h3 h4 h5 h6 head hr html i img input ins kbd label legend li link map meta n...
2023-11-06, 1063🔥, 0💬

Relation between HTML and XHTML
What Is the relation between XHTML and HTML? Technically speaking, the HTML standard introduces one abstract language and three concrete syntaxes to represent an HTML document in different formats: 1. HTML language - An abstract language that describes a Web document in constructed. It is used to ge...
2024-01-31, 1048🔥, 0💬

HTML Elements with Sub-elements Contents
What Are the HTML Elements Defined with Sub-elements Contents? The following HTML elements are defined to use the sub-element content model: &lt;html&gt; - The root element of the document. &lt;head&gt; - Element to provide head information to the document. &lt;ul&gt; - Eleme...
2024-04-14, 1047🔥, 0💬

Entering HTML Element Content
How To Enter HTML Element Content? Most of HTML elements allow you to specify contents. But there are some HTML elements that do not allow any contents. If an HTML element does allow element content, you can enter the content between the opening tag and the closing tag. Here are some good examples o...
2024-04-07, 1046🔥, 0💬

<< < 4 5 6 7 8 9 10 >   Sort: Date