HTML Emojis

Emojis are characters from the UTF-8 character set: 😄 😍 💗 What are Emojis? Emojis look like images, or icons, but they are not. They are letters (characters) from the UTF-8 (Unicode) character set. UTF-8 covers almost all of the characters and symbols in the world. The HTML charset Attribute To display an HTML page […]

HTML Symbols

Symbols that are not present on your keyboard can also be added by using entities. HTML Symbol Entities HTML entities were described in the previous chapter. Many mathematical, technical, and currency symbols, are not present on a normal keyboard. To add such symbols to an HTML page, you can use the entity name or the […]

HTML Entities

Reserved characters in HTML must be replaced with character entities. HTML Entities Some characters are reserved in HTML. If you use the less than (<) or greater than (>) signs in your text, the browser might mix them with tags. Character entities are used to display reserved characters in HTML. A character entity looks like […]

HTML Computer Code Elements

HTML contains several elements for defining user input and computer code. Example HTML <kbd> For Keyboard Input The HTML <kbd> element is used to define keyboard input. The content inside is displayed in the browser’s default monospace font. Example Define some text as keyboard input in a document: Result: Save the document by pressing Ctrl + S […]

HTML File Paths

A file path describes the location of a file in a web site’s folder structure. File Path Examples Path Description <img src=”picture.jpg”> The “picture.jpg” file is located in the same folder as the current page <img src=”images/picture.jpg”> The “picture.jpg” file is located in the images folder in the current folder <img src=”/images/picture.jpg”> The “picture.jpg” file […]

HTML id Attribute

The HTML id attribute is used to specify a unique id for an HTML element. You cannot have more than one element with the same id in an HTML document. Using The id Attribute The id attribute specifies a unique id for an HTML element. The value of the id attribute must be unique within the HTML document. The id attribute is used […]

HTML class Attribute

The HTML class attribute is used to specify a class for an HTML element. Multiple HTML elements can share the same class. Using The class Attribute The class attribute is often used to point to a class name in a style sheet. It can also be used by a JavaScript to access and manipulate elements with the specific class […]

HTML Block and Inline Elements

Every HTML element has a default display value, depending on what type of element it is. There are two display values: block and inline. Block-level Elements A block-level element always starts on a new line, and the browsers automatically add some space (a margin) before and after the element. A block-level element always takes up […]