Tags and Syntax in Web Development
Basic building blocks of web development
Used to create and design websites
Allows for the structuring and presentation of content on the web
HTML Entities and Character Sets
Special characters and symbols used in HTML
Ensured consistent display of characters across all devices and platforms
Common entities: &, <, >, ", '
Tags for Text Formatting
Strong
<strong> tag for important or emphasized text
Renders as bold text
Emphasis
<em> tag for emphasized text
Renders as italicized text
Small
<small> tag for small text
Reduces the size of the text
Important Elements in HTML
Heading
<h1> to <h6> tags for headings
Descending order of importance from <h1> to <h6>
Paragraph
<p> tag for paragraphs
Indicates a block of text as a paragraph
List
<ul> tag for unordered lists
<ol> tag for ordered lists
<li> tag for list items
Nested Lists
Lists within lists
Used to create complex hierarchical structures
Comments in HTML
Used for explanations or notes within HTML code
Syntax: <!-- comment goes here -->
Note: This is not an exhaustive overview of HTML, but covers the important basics of
HTML5 and its syntax.
Tasty ML: Tags and Syntax in Web Development
HTML Entities and Character Sets
HTML entities are used to display special characters in HTML
Character sets define the characters that can be used in HTML documents
Tags for Text Formatting
, <strong> is used to make text bold
<em> is used to emphasize text
<small> is used to display text in a smaller font size
HTML5
Hypertext Markup Language 5 is the latest version of HTML
It introduces new features such as semantic elements and multimedia support
Important Elements in HTML
<h1> to <h6> are used for headings
<p> is used for paragraphs
<ul>, <ol> and <li> are used to create unordered and ordered lists
Nested Lists
Lists can be nested to create a hierarchy of items
Comments in HTML
Comments are used to add explanations and notes to HTML code
They are written as <!-- comment goes here --> and are not displayed in the browser
HTML: Hypertext Markup Language
HTML is the standard markup language used to create web pages. It consists of various
elements or tags that are used to define different parts of a web page.
Important Elements in HTML
Heading: Used to define headings of different levels. There are six levels of headings,
denoted by <h1> to <h6> tags.
Paragraph: Used to define a block of text. The <p> tag is used to create a paragraph.
List: Used to create lists. There are two types of lists - ordered list (denoted by <ol> tag) and
unordered list (denoted by <ul> tag). Each item in the list is denoted by the <li> tag.
Nested Lists and Ordered Lists
Nested Lists: It is possible to create lists within lists. This is called nesting.
Ordered Lists: Ordered lists display the items in a numbered format. You can change the
type of numbers used by using the type attribute.
Text Formatting Tags
Strong: The <strong> tag is used to indicate that the text within the tag is of strong
importance.
Emphasis: The <em> tag is used to indicate that the text within the tag should be
emphasized.
Small: The <small> tag is used to define smaller text.
HTML Entities and Character Sets
HTML entities are used to represent characters that are not available on the keyboard or
have a special meaning. For example, the copyright symbol (©) can be represented using
the © entity.
Character sets define a collection of characters that can be used in HTML documents. The
default character set used in HTML is UTF-8, which supports a wide range of characters
from different scripts.
Comments in HTML