Mindblown: a blog about philosophy.
-
What are HTML tags?
We use HTML tags for placing the elements in the proper and appropriate format. Tags use the symbols <, and > to set them apart from the HTML content. The HTML tags need not be closed always. For example, in the case of images, the closing tags are not required as <img> tag.
-
What is HTML?
HTML stands for HyperText Markup Language and is the language of the internet. It is the standard text formatting language used for creating and displaying pages on the Internet HTML documents are made up of the elements and the tags that format it for proper display on pages.
-
HTML Text Formatting
HTML contains several elements for defining text with a special meaning. Example This text is bold This text is italic This is subscript and superscript HTML Formatting Elements Formatting elements were designed to display special types of text: HTML <b> and <strong> Elements The HTML <b> element defines bold text, without any extra importance. Example <b>This text is bold</b> The…
-
HTML Styles
The HTML style attribute is used to add styles to an element, such as color, font, size, and more. Example I am Red I am Blue I am Big The HTML Style Attribute Setting the style of an HTML element, can be done with the style attribute. The HTML style attribute has the following syntax: <tagname style=”property:value;“> The property is a CSS property. The value is…
-
HTML Paragraphs
A paragraph always starts on a new line, and is usually a block of text. HTML Paragraphs The HTML <p> element defines a paragraph. A paragraph always starts on a new line, and browsers automatically add some white space (a margin) before and after a paragraph. Example <p>This is a paragraph.</p><p>This is another paragraph.</p> HTML Display You…
-
HTML Headings
HTML headings are titles or subtitles that you want to display on a webpage. Example Heading 1 Heading 2 Heading 3 Heading 4 Heading 5 Heading 6 HTML Headings HTML headings are defined with the <h1> to <h6> tags. <h1> defines the most important heading. <h6> defines the least important heading. Example <h1>Heading 1</h1><h2>Heading 2</h2><h3>Heading 3</h3><h4>Heading 4</h4><h5>Heading 5</h5><h6>Heading 6</h6> Note: Browsers automatically add…
-
Single or Double Quotes?
Double quotes around attribute values are the most common in HTML, but single quotes can also be used. In some situations, when the attribute value itself contains double quotes, it is necessary to use single quotes: <p title=’John “ShotGun” Nelson’> Or vice versa: <p title=”John ‘ShotGun’ Nelson”>
-
We Suggest: Always Use Lowercase Attributes
The HTML standard does not require lowercase attribute names. The title attribute (and all other attributes) can be written with uppercase or lowercase like title or TITLE. However, W3C recommends lowercase attributes in HTML, and demands lowercase attributes for stricter document types like XHTML
-
The title Attribute
The title attribute defines some extra information about an element. The value of the title attribute will be displayed as a tooltip when you mouse over the element: Example <p title=”I’m a tooltip”>This is a paragraph.</p>
-
The lang Attribute
You should always include the lang attribute inside the <html> tag, to declare the language of the Web page. This is meant to assist search engines and browsers. The following example specifies English as the language: <!DOCTYPE html><html lang=”en”><body>…</body></html> Country codes can also be added to the language code in the lang attribute. So, the first two characters define the language of the…
Got any book recommendations?