Web designers or business owners who work on their own websites or their CMSs have a core in the HTML markup language. Learning HTML will give you a good base for designing and redesigning sites, especially if you add CSS and JavaScript.

Before you begin building your site, you’ll need to decide on a standard design. To do this, sit down with some conventional sheet and a pencil and begin doodling, blocking out the publication’s parts. You may be itching to get programming, but by drawing your blog out first, you can modify patterns to your heart’s content without scripting and recoding.

After you’ve settled on your website’s structure, you can start creating HTML tags, which contain instructions for inserting text, images, and links to other sites and instruct the web browser. You’ll apply HTML tags to link to an external source if an image needs to appear on the left side of the page, a particular word needs to appear bold, or a different word needs to appear strong.

Five guidelines for HTML keywords coding

For HTML keywords to be coded, there are five crucial guidelines.

  1. Tags are always surrounded by angle brackets (less-than/greater-than characters), as in .
  2. Most tags come in pairs and surround the material they affect. They work like a light switch: the first tag turns the action on, and the second turns it off. (There are some exceptions. For instance, the
    tag creates a blank line and doesn’t have an “off switch.” Once you’ve made a line break, you can’t unmake it.)
  3. The second tag–the “off switch”–always starts with a forward slash. For example, you turn on bold with , shout your piece, and then return to regular text with .
  4. First tag on, last tag off. Tags are embedded, so when you start a tag within another tag, you have to close that inner tag before closing the outer tag. For instance, the page will not display properly with the tags in this order:
    </code>Your text<code/>.<br />The correct order is:<br /><code><title/></code>Your text<code/>.</li> <li>Many tags have optional <em>attributes</em> that use values to modify the tag’s behavior. The <code/> (paragraph) tag’s <code>ALIGN</code> attribute, for instance, lets you change the default (left) paragraph alignment. For example, <code/> centers the next paragraph on the page.</li> </ol> <p>Remember, too, that HTML is always evolving, and older browsers often don’t support the newest tags. When a browser encounters an HTML tag it doesn’t understand, it will usually ignore both the tag and the material it affects. This way, the newest elements will appear to viewers with newer browsers without causing problems for viewers using older browsers, who will only see material their browsers recognize. On the downside, browsers treat coding errors like unfamiliar code. If you’ve made a mistake while building your page, you won’t necessarily see an error message; you might just see nothing at all.</p> <p><strong>SEE: Get answers to real-world questions from fellow web developers in the TechRepublic forums.</strong></p> <p>You should always closely check all of your pages in a browser to make sure everything that’s supposed to be there appears properly. We recommend looking at your pages in more than one version of Google Chrome, Microsoft Edge, and Apple’s Safari — on both PC and Mac platforms and mobile devices, if possible — to make sure everything looks how you intended. Not every browser type or version behaves the same way.</p> <h2><span class="ez-toc-section" id="What_are_the_10_basic_HTML_tags"/>What are the 10 basic HTML tags?<span class="ez-toc-section-end"/></h2> <p><strong><doctype/></strong> : When crafting an HTML document from scratch, start with . This will tell the browser how your website works. In HTML5, the DOCTYPE will always be html. At the end of your document, close this tag with .</p> <p><strong/> : This tag creates text headings. H1 creates the largest size heading. Heading sizes go from one to six, descending in size. As is the case with most html tags, close the heading tag with a backslash ( in the case of a heading size 1).</p> <p><strong/> : This tag indicates body text.</p> <p><strong/> : This tag indicates a paragraph break. Enclose both the beginning and end of paragraphs to separate them. For example:</p> <p><code></p> <p>This article is an introduction to HTML.</p> <p></code></p> <p>HTML helps script online content.</p> <p><strong><br /></strong> :  <br />creates a series split. If you want to distinguish text from paragraphs by a certain number of lines rather than just one, you might favor this option. You do n’t have to close<br />. It is basically a file.</p> <p><strong><i/></strong>: This badge formats style in italics.</p> <p><strong><b/></strong>: This badge formats script in bold.</p> <p><strong></strong> : The <a> element is a bit complicated but very useful. It embeds links. The HTML code for adding links is:</p> <p><code>link text</code></p> <p>Include the URL where indicated, making sure to include the phrase signs. Change the language in the link to your preferred language. The outcome: Clicking on the link text will start the URL.</p> <p><strong></strong>: This label embeds pictures. This label is typically used in this manner:</p> <p><code> </code></p> <p>The website is given access to the image using the library attribute. The file name as shown above can be used to host an picture on your own site or server. If not, you can clear the library attribute to a URL instead.</p> <p>Extra word occupies a spot in the alt feature. This is important for accessibiity, or when slower online may reduce the picture from launching. In the alternative text section, make sure to incorporate the quotation marks in a succinct description of the image.</p> <p>You can change the size of images by adding <code> style </code> within the brackets. This will look like:</p> <p><code> </code></p> <p>The width and height may be changed around.</p> <p>The label does not need to be closed.</p> <p><strong></p> <blockquote/><p></strong>: This label indents words in order to set it apart, showing the word is a statement.</p> <p>Just a few of the numerous tags you have are available. For more information, W3Schools provides a free tutorial. Some others are:</p> <p>In RGB, HEX, or HSL, pre-set color names or color values can be used to set text color. This looks like:</p> <p><strong></p> <table>creates a table. Create rows by using</p> <tr>and populate columns using</p> <td>.</p> <p><strong/>can be used to build a form similar to an email submission box.</p> <h2><span class="ez-toc-section" id="How_to_learn_HTML_as_a_beginner"/>How to learn HTML as a beginner<span class="ez-toc-section-end"/></h2> <p>In my experience, the key to learning HTML is knowing what you want to build. Determine how the changes made possible with HTML will help your end goal, from building a complete website to adding some formatting to a blog post or comment. From there, experiment with a text editor.</p> <p>Looking over the shoulders of other web page creators is a great way to learn more about complex HTML. Simply view the page’s source to see how it was done if you see a website you like. Most developers take inspiration from other websites, but you should n’t just copy another builder’s design. Browsers have different methods for viewing the source, but it’s typically as straightforward as right clicking on the View Page Source or Source button. As you get more and more experience with web building, stick with viewing source code on relatively simple websites.</p> <p>When viewing source code, you’ll sometimes see organizational comments from the page’s author near the top of (or scattered throughout) the file. These comments are inserted with the <code><comment/></code> or <code><!----></code> tag and often contain useful information for those who view them. For a simple exercise in reading source code, try viewing a well-commented Web page from your browser and then viewing the source code of that page. Compare the two documents side by side, using the author’s comments to match sections of code with the visual elements they represent. You’ll soon be able to zero in on specific lines of code to understand how to achieve individual effects.</p> <p><em>Update information: Megan Crouse updated this 2003 article in 2024. She has spent decades compiling some of the tagging data and has referred to W3Schools for assistance. She has used HTML in social media and CMS tools. Fred Dekker and Donald St. John contributed to the original version of this article. Fred Dekker is one of the Founders of The H. E. L. P. Community, an online resource for beginning Webmasters. Donald St. John was the founding Webmaster at PC Games magazine.</em></p> <section class="share"><span>Share Article</span></section> <section class="also-see"> <h3>Also Read</h3> </section> <section class="author-info-box"> <figure role="img"> <meta property="image" content="https://secure.gravatar.com/avatar/54e586832df7a603a996bbc73f0d6af9?s=192&d=mm&r=g"/> </figure> <div class="byline"> <p><span class="author" vocab="https://schema.org/" typeof="Person" property="author"><span property="name">Megan Crouse</span></span></p> <p>With nearly ten years of experience in business-to-business news and feature writing, Megan Crouse is a writer and editor. At Fairleigh Dickinson University, she majored in creative writing and English literature.</p> <div class="author-content-link">See all of Megan’s content<span class="arrow-right"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="11" viewbox="0 0 12 11"><path d="M11.8538 5.85378L7.35375 10.3538C7.25993 10.4476 7.13268 10.5003 7 10.5003C6.86732 10.5003 6.74007 10.4476 6.64625 10.3538C6.55243 10.26 6.49972 10.1327 6.49972 10C6.49972 9.86735 6.55243 9.7401 6.64625 9.64628L10.2931 6.00003H0.5C0.367392 6.00003 0.240215 5.94736 0.146447 5.85359C0.0526785 5.75982 0 5.63264 0 5.50003C0 5.36743 0.0526785 5.24025 0.146447 5.14648C0.240215 5.05271 0.367392 5.00003 0.5 5.00003H10.2931L6.64625 1.35378C6.55243 1.25996 6.49972 1.13272 6.49972 1.00003C6.49972 0.867352 6.55243 0.740104 6.64625 0.646284C6.74007 0.552464 6.86732 0.499756 7 0.499756C7.13268 0.499756 7.25993 0.552464 7.35375 0.646284L11.8538 5.14628C11.9002 5.19272 11.9371 5.24786 11.9623 5.30856C11.9874 5.36926 12.0004 5.43433 12.0004 5.50003C12.0004 5.56574 11.9874 5.63081 11.9623 5.6915C11.9371 5.7522 11.9002 5.80735 11.8538 5.85378Z"/></svg></span></div> </div> </section> <div id="auth-modal" class="auth-modal__wrapper" style="display: none;" data-logged-in="false"> <div id="auth-sign-up" class="auth-modal__card sign-up"> <form id="sign-up-form" action="https://www.techrepublic.com/wp/wp-admin/admin-ajax.php" method="post" data-ajax-action="tr_auth_sign_up" data-next-reload="1" data-next-step="profile"> <svg class="tr-logo" role="img" aria-labelledby="tr-site-logo" viewbox="0 0 500 119"> <use aria-hidden="false" href="#tr-logotype"/> </svg> </p> <h3 style="font-size: 1.25rem; margin-bottom:0;">Create a TechRepublic Account</h3> <p>Get the web’s best business technology news, tutorials, reviews, trends, and analysis—in your inbox. Let’s start with the basics.</p> <p> <label class="sr-only" for="email">Email</label> <input placeholder="Email *" type="text" name="email" class="input" autocapitalize="off" autocomplete="email" required="required"/> <label class="sr-only" for="password">Password</label> <input type="password" placeholder="Password *" name="password" autocomplete="new-password" spellcheck="false" required="required" id="sign-up_password"/> <label for="country" class="sr-only">Country</label> <select id="country" name="country" class="readonly" required=""><option value="NOTSELECTED">Country *</option><option value="US"> United States </option><option value="AF"> Afghanistan </option><option value="AX"> Aland Islands </option><option value="AL"> Albania </option><option value="DZ"> Algeria </option><option value="AS"> American Samoa </option><option value="AD"> Andorra </option><option value="AO"> Angola </option><option value="AI"> Anguilla </option><option value="AQ"> Antarctica </option><option value="AG"> Antigua And Barbuda </option><option value="AR"> Argentina </option><option value="AM"> Armenia </option><option value="AW"> Aruba </option><option value="AU"> Australia </option><option value="AT"> Austria </option><option value="AZ"> Azerbaijan </option><option value="BS"> Bahamas </option><option value="BH"> Bahrain </option><option value="BD"> Bangladesh </option><option value="BB"> Barbados </option><option value="BY"> Belarus </option><option value="BE"> Belgium </option><option value="BZ"> Belize </option><option value="BJ"> Benin </option><option value="BM"> Bermuda </option><option value="BT"> Bhutan </option><option value="BO"> Bolivia </option><option value="BA"> Bosnia and Herzegovina </option><option value="BW"> Botswana </option><option value="BV"> Bouvet Island </option><option value="BR"> Brazil </option><option value="IO"> British Indian Ocean Territory </option><option value="BN"> Brunei Darussalam </option><option value="BG"> Bulgaria </option><option value="BF"> Burkina Faso </option><option value="BI"> Burundi </option><option value="KH"> Cambodia </option><option value="CM"> Cameroon </option><option value="CA"> Canada </option><option value="CV"> Cape Verde </option><option value="BQ"> Caribbean Netherlands </option><option value="KY"> Cayman Islands </option><option value="CF"> Central African Republic </option><option value="TD"> Chad </option><option value="CL"> Chile </option><option value="CN"> China </option><option value="CX"> Christmas Island </option><option value="CC"> Cocos (Keeling) Islands </option><option value="CO"> Colombia </option><option value="KM"> Comoros </option><option value="CG"> Congo </option><option value="CD"> Congo, DROC </option><option value="CK"> Cook Islands </option><option value="CR"> Costa Rica </option><option value="CI"> Cote D’ivoire </option><option value="HR"> Croatia </option><option value="CU"> Cuba </option><option value="CW"> Curazao </option><option value="CY"> Cyprus </option><option value="CZ"> Czech Republic </option><option value="DK"> Denmark </option><option value="DJ"> Djibouti </option><option value="DM"> Dominica </option><option value="DO"> Dominican Republic </option><option value="TL"> East Timor </option><option value="EC"> Ecuador </option><option value="EG"> Egypt </option><option value="SV"> El Salvador </option><option value="GQ"> Equatorial Guinea </option><option value="ER"> Eritrea </option><option value="EE"> Estonia </option><option value="ET"> Ethiopia </option><option value="FK"> Falkland Islands (Malvinas) </option><option value="FO"> Faroe Islands </option><option value="FJ"> Fiji </option><option value="FI"> Finland </option><option value="FR"> France </option><option value="GF"> French Guiana </option><option value="PF"> French Polynesia </option><option value="TF"> French Southern Territories </option><option value="GA"> Gabon </option><option value="GM"> Gambia </option><option value="GE"> Georgia </option><option value="DE"> Germany </option><option value="GH"> Ghana </option><option value="GI"> Gibraltar </option><option value="GR"> Greece </option><option value="GL"> Greenland </option><option value="GD"> Grenada </option><option value="GP"> Guadeloupe </option><option value="GU"> Guam </option><option value="GT"> Guatemala </option><option value="GG"> Guernsey </option><option value="GN"> Guinea </option><option value="GW"> Guinea-Bissau </option><option value="GY"> Guyana </option><option value="HT"> Haiti </option><option value="HM"> Heard And Mc Donald Islands </option><option value="VA"> Holy See (Vatican City State) </option><option value="HN"> Honduras </option><option value="HK"> Hong Kong </option><option value="HU"> Hungary </option><option value="IS"> Iceland </option><option value="IN"> India </option><option value="ID"> Indonesia </option><option value="IR"> Iran (Islamic Republic Of) </option><option value="IQ"> Iraq </option><option value="IE"> Ireland </option><option value="IM"> Isle of Man </option><option value="IL"> Israel </option><option value="IT"> Italy </option><option value="JM"> Jamaica </option><option value="JP"> Japan </option><option value="JE"> Jersey </option><option value="JO"> Jordan </option><option value="KZ"> Kazakhstan </option><option value="KE"> Kenya </option><option value="KI"> Kiribati </option><option value="KW"> Kuwait </option><option value="KR"> Korea, Republic Of </option><option value="XK"> Kosovo </option><option value="KG"> Kyrgyzstan </option><option value="LA"> Lao People’s Democratic Republic </option><option value="LV"> Latvia </option><option value="KP"> Korea, Democratic People’s Republic of </option><option value="LB"> Lebanon </option><option value="LS"> Lesotho </option><option value="LR"> Liberia </option><option value="LY"> Libyan Arab Jamahiriya </option><option value="LI"> Liechtenstein </option><option value="LT"> Lithuania </option><option value="LU"> Luxembourg </option><option value="MO"> Macau </option><option value="MK"> Macedonia </option><option value="MG"> Madagascar </option><option value="MW"> Malawi </option><option value="MY"> Malaysia </option><option value="MV"> Maldives </option><option value="ML"> Mali </option><option value="MT"> Malta </option><option value="MH"> Marshall Islands </option><option value="MQ"> Martinique </option><option value="MR"> Mauritania </option><option value="MU"> Mauritius </option><option value="YT"> Mayotte </option><option value="MX"> Mexico </option><option value="FM"> Micronesia, Federated States of </option><option value="MD"> Moldova, Republic Of </option><option value="MC"> Monaco </option><option value="MN"> Mongolia </option><option value="ME"> Montenegro </option><option value="MS"> Montserrat </option><option value="MA"> Morocco </option><option value="MZ"> Mozambique </option><option value="MM"> Myanmar </option><option value="NA"> Namibia </option><option value="NR"> Nauru </option><option value="NP"> Nepal </option><option value="NL"> Netherlands </option><option value="AN"> Netherlands Antilles </option><option value="NC"> New Caledonia </option><option value="NZ"> New Zealand </option><option value="NI"> Nicaragua </option><option value="NE"> Niger </option><option value="NG"> Nigeria </option><option value="NU"> Niue </option><option value="NF"> Norfolk Island </option><option value="MP"> Northern Mariana Islands </option><option value="NO"> Norway </option><option value="OM"> Oman </option><option value="PK"> Pakistan </option><option value="PW"> Palau </option><option value="PS"> Palestinian Territory, Occupied </option><option value="PA"> Panama </option><option value="PG"> Papua New Guinea </option><option value="PY"> Paraguay </option><option value="PE"> Peru </option><option value="PH"> Philippines </option><option value="PN"> Pitcairn </option><option value="PL"> Poland </option><option value="PT"> Portugal </option><option value="PR"> Puerto Rico </option><option value="QA"> Qatar </option><option value="RE"> Reunion </option><option value="RO"> Romania </option><option value="RU"> Russia </option><option value="RW"> Rwanda </option><option value="GS"> S. Georgia And S. Sandwich Isles </option><option value="BL"> Saint Barthelemy </option><option value="KN"> Saint Kitts And Nevis </option><option value="LC"> Saint Lucia </option><option value="MF"> Saint Martin </option><option value="VC"> Saint Vincent And The Grenadines </option><option value="WS"> Samoa </option><option value="SM"> San Marino </option><option value="ST"> Sao Tome And Principe </option><option value="SA"> Saudi Arabia </option><option value="SN"> Senegal </option><option value="RS"> Serbia </option><option value="CS"> Serbia and Montenegro </option><option value="SC"> Seychelles </option><option value="SL"> Sierra Leone </option><option value="SG"> Singapore </option><option value="SX"> Sint Maarten </option><option value="SK"> Slovakia </option><option value="SI"> Slovenia </option><option value="SB"> Solomon Islands </option><option value="SO"> Somalia </option><option value="ZA"> South Africa </option><option value="SS"> South Sudan </option><option value="ES"> Spain </option><option value="LK"> Sri Lanka </option><option value="SH"> St. Helena </option><option value="PM"> St. Pierre And Miquelon </option><option value="SD"> Sudan </option><option value="SR"> Suriname </option><option value="SJ"> Svalbard And Jan Mayen Islands </option><option value="SZ"> Swaziland </option><option value="SE"> Sweden </option><option value="CH"> Switzerland </option><option value="SY"> Syrian Arab Republic </option><option value="TW"> Taiwan </option><option value="TJ"> Tajikistan </option><option value="TZ"> Tanzania, United Republic Of </option><option value="TH"> Thailand </option><option value="TG"> Togo </option><option value="TK"> Tokelau </option><option value="TO"> Tonga </option><option value="TT"> Trinidad And Tobago </option><option value="TN"> Tunisia </option><option value="TR"> Turkey </option><option value="TM"> Turkmenistan </option><option value="TC"> Turks And Caicos Islands </option><option value="TV"> Tuvalu </option><option value="UM"> U.S. Minor Outlying Islands </option><option value="UG"> Uganda </option><option value="UA"> Ukraine </option><option value="AE"> United Arab Emirates </option><option value="GB"> United Kingdom </option><option value="UY"> Uruguay </option><option value="UZ"> Uzbekistan </option><option value="VU"> Vanuatu </option><option value="VE"> Venezuela </option><option value="VN"> Viet Nam </option><option value="VG"> Virgin Islands (British) </option><option value="VI"> Virgin Islands (U.S.) </option><option value="WF"> Wallis And Futuna Islands </option><option value="EH"> Western Sahara </option><option value="YE"> Yemen </option><option value="YU"> Yugoslavia </option><option value="ZM"> Zambia </option><option value="ZW"> Zimbabwe </option></select> <label class="checkbox" style="text-align:left;"> <input type="checkbox" name="terms" required=""/> <span> By registering, you agree to the Terms of Use and acknowledge the data practices outlined in the Privacy Policy </span> </label> <button type="submit" class="primary-button"> </p> <p> <svg width="65px" height="65px" viewbox="0 0 66 66" role="img" aria-labelledby="tr-spinner"> <title id="tr-spinner">Loading

    Sign Up

    * – indicates required fields

Reset Password

Please enter your email adress. You’ll receive instructions on how to reset your password via email.

1 Finish Profile

2 Newsletter Preferences

Welcome. Tell us a little bit about yourself.

This will enable us to offer you personalized content.

1 Finish Profile

2 Newsletter Preferences