0% found this document useful (0 votes)
9 views3 pages

HTML Syntax and Meta Tags Guide

Uploaded by

medamkowsik2004
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views3 pages

HTML Syntax and Meta Tags Guide

Uploaded by

medamkowsik2004
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

Basic syntax and meta tags

<!DOCTYPE html>
<html>
<head>
<title> Kowsik </title>
<link rel="icon" href="[Link]">
<meta charset="UTF-8"> // character set
<meta name="keywords" description="Kowsik,Great,God"> // keywords used to
search the website when uploaded
<meta name="description" context="Kowsik is very great , and assumed as God
in multiverse"> //Description of website
<meta http-equiv="refresh" content="60"> //refresh rate for 60 sec
</head>
<body>

</body>
</html>

body tag attributes


<body bgcolor="red">
<body background="[Link]">
<body text="blue">
vlinks for visited links
alinks for active links on page <body vlink="red" alink="green">
<body leftmargin="50" topmargin="50">

Elements of body
<aside> advertisements
<article> required for publishing
<dialog>
<figure> image with caption
<figcaption> caption for image
<header> & <footer>
<section> area between header and footer

<menu> organizes info


<nav> navigation area of menu
<div> container for large block of code
<span>

<headings>
h1,h2,. ..... h6
larger size to smaller....
<h1 align="center"></h1>

<p align="justify">
<blockquote> Hello </bl> gives space before and after the word

List
<li>

Ordered List
<ol type="1">
<ol type="a">
<ol type="A">
<ol type="A" start="5">
Unordered list
<ul>
<ul type="square"> square list

<br>
&nbsp;
<pre></pre> as it is written format, with given spacing and lines

<acronym title="internet information services">IIS</acronym> when curson points


it , it pops up the title message

<details open>
<summary>

<details open>
<summary>HTML</summary>
HTML is used to create websites
</details> Display details

Datalist with terms and definitions

<dl>
<dt>your term</dt> data term
<dd> your definition</dd> data definition
</dl>

<font>
elements
<font face="arial">
<font size="7"> 1 to 7 only there
<font color="pink"> or write all elements in one font tag

<b> <strong> Bold


<i> <em> italic and emphasize tag

<u> underline <ins> inserted (same purpose)


<strike> strikeout <del> deleted (same purpose)
<sup> superscript for upper representation like x square
<sub> subscript for H2O 2 is small and down

<img src="" alt="please reload again" border="" width="" height="" vspace=""


hspace="" align="">
alt - alternate text if image is not loaded
border - border radius
align - left or right
vspace - vertical space between text and image and hspace is horizontal space

<hr> horizontal split


elements
size, width, align, noshade, color

intralink
<a href="#id"> HTML </a> when clicked on the link, it will go to that id content in
the same page

interlink
<a href="" target="_blank"> opens the link in a new tab
<a href="javascript:[Link]('HTML [Link]','page','width=500 height=600')"
opens HTML [Link] in a new window of length and height
Table
<table>
<caption>
<thead> top row of table
<tfoot> bottom row
<tbody> remaining rows
<th> column head / field name
<tr>
<td> table data
<colgroup> groups a set of columns to define a style.

input
<input > elements
type, name, value, placeholder, autofocus, required, disable , readonly, maxlength,
min & max,size, pattern ,
list
<input type="text" list="cities" placeholder="Vijayawada">
<datalist id="cities">
<option>Vijayawada</option>
<option>Hyderabad</option>
<option>Vizag</option>
</datalist>

Dropdown
<select>
<option>a</option>
<option>b</option>
</select>

List
<select size="2" multiple>
<option>a</option>
<option>b</option>
<option>c</option>
<option>d</option>
</select>

<progress min="1" value="60" max="100"></progress><br>

<meter min="1" max="100" value="80"></meter>

<textarea rows="4" cols="40" readonly>THis is the home page of the html page which
is format of html</textarea><br>

css

input[type=button]{
color=red;
}

Common questions

Powered by AI

The <figure> and <figcaption> elements offer significant advantages over older methods of captioning in HTML by providing a more semantic and accessible way to associate captions with images. <figure> acts as a container that groups images or diagrams with their captions, enhancing semantic clarity and improving accessibility for screen readers or other assistive technologies. <figcaption> allows for clear specification of the caption text associated with the image, facilitating better indexing by search engines and offering a more integrated and aesthetically pleasing layout compared to using separate caption tags or <div> blocks for images and captions .

The HTML elements <header>, <section>, and <footer> contribute to the semantic structure of a webpage by delineating parts of content in ways that signify their meaning beyond mere formatting. <header> is typically used at the start of a webpage or section, containing introductory content or navigational links, helping search engines and users identify the start and context of a page or section. <section> is used for thematically grouping content, which helps with logical structuring of content, improving both user understanding and search engine indexing of topics. Finally, <footer> conveys the end of a document or section, often containing metadata about its author, related documents, or contact information, enhancing the comprehensibility and accessibility of the webpage .

The key difference between using <b> and <strong> tags in HTML comes down to semantics and intended impact on SEO and accessibility. While <b> simply applies a visual bold effect to the text without conveying any additional semantic meaning, <strong> emphasizes the importance or urgency of the text. This semantic meaning is picked up by search engines and can improve SEO by indicating key text elements. In terms of accessibility, screen readers and assistive technologies may convey <strong> text with added emphasis, ensuring that its importance is communicated beyond visual representation. Therefore, using <strong> over <b> can enhance both the semantic clarity and user accessibility of a webpage .

The <datalist> element enhances form functionality by providing a list of options to an <input> element, making form filling more user-friendly and efficient. By using <datalist>, developers can offer users a set of predefined choices while still allowing them to enter their own text if necessary. This can speed up the input process and reduce errors, as users may select from common entries rather than typing, which is particularly beneficial for fields like city names, product IDs, or other standardized entries .

Elements like <dialog> and <details> significantly enhance user interaction and accessibility by providing more interactive and intuitive content display mechanisms. The <dialog> element is used to create a modal dialog box that can capture user attention for inputs or notifications without navigating away from the active page, fostering a seamless interactive flow. The <details> element allows content to be hidden or shown on demand, which can declutter the webpage while still making full content available on user action. Both elements enhance accessibility by supporting interactive designs that are navigable via keyboard and can be announced by assistive technologies, ensuring inclusivity for all users .

Setting attributes like leftmargin and topmargin in the <body> tag affects the page layout by controlling the space between the content inside the body and the browser’s viewport or window borders. These attributes create visual breathing space around the content, which can enhance readability and overall aesthetic appeal. Adjusting the margins can help in positioning the entire content block symmetrically within the browser window, contributing to both the functional and visual design of a webpage .

Using different types of lists in HTML can impact the organization and accessibility of information on a webpage. Ordered lists (<ol>) are best for sequences where the order is significant, like steps or rankings, due to their numbered format. Unordered lists (<ul>), on the other hand, present items in no inherent order, using bullet points, which is suitable for lists where ordering isn’t crucial, such as features or items of equal importance. The choice of list type affects not only the appearance but also the semantic understanding of the information by both users and search engines .

The use of the <progress> and <meter> elements can significantly enhance user experience by providing visual feedback and context-aware indicators of progress and measurement. The <progress> element represents a task's completion, giving users a clear idea of how much longer an action will take, such as file uploads or form submission processes. On the other hand, the <meter> element displays a measurement within a known range, useful for representing values like disk usage or temperature, where users need to understand relative positioning within a scale. Together, these elements improve user interaction by adding visually intuitive and interactive feedback mechanisms .

Meta tags in HTML, such as <meta name="keywords" and <meta name="description", play a critical role in enhancing a webpage's searchability and functionality by providing metadata about the webpage. The 'keywords' tag lists words significant to the content, aiding search engines in indexing the page more accurately. The 'description' tag provides a brief summary of the webpage content, which search engines might display in search results, impacting click-through rates. Additionally, tags like <meta charset="UTF-8" ensure that the text is displayed correctly regardless of the user's system, and <meta http-equiv="refresh" can be used to refresh the page at set intervals .

Intralinks and interlinks serve different purposes in a webpage by linking content internally and externally. Intralinks (<a href="#id">) connect sections or elements within the same document, allowing users to navigate directly to a specific part of the page, enhancing user experience by facilitating quick access to relevant content. Interlinks (<a href="" target="_blank">) connect to external documents or websites, often opening links in a new tab or window, enabling users to explore related external content without losing their current page position. Both link types complement each other, optimizing navigational efficiency and content accessibility on a webpage .

You might also like