- Web Developer's Reference Guide
- Joshua Johanan Talha Khan Ricardo Zea
- 187字
- 2021-07-09 20:18:20
Chapter 1. HTML Elements
HyperText Markup Language (HTML) is a language that annotates text. Annotation of text is done using elements. Using the following p
element, as an example, we will see how to use HTML:
<p>This is an example</p>
HTML elements also have attributes that will modify how they are rendered or interpreted. Attributes are added inside of the starting tag. Here is the class
attribute in a p
element:
<p class="example">This is an example</p>
There have been multiple specifications of HTML so far, but we will just look at the most commonly used and important elements of HTML5. HTML5 is the latest official specification, so we will be as future-proof as possible at the time of writing this book. You will want to follow the specifications of HTML as closely as possible. Most browsers are very forgiving and will render your HTML, but when you go beyond the specifications, you can and will run into strange rendering issues.
Note
All HTML elements will have global attributes. The attributes listed for each element in the sections that follow are the attributes beyond the global attributes.
- 軟件安全技術
- JavaScript前端開發模塊化教程
- Oracle WebLogic Server 12c:First Look
- Kubernetes實戰
- DevOps Automation Cookbook
- 精通Python自然語言處理
- Learning Hunk
- Python深度學習:模型、方法與實現
- UI設計基礎培訓教程(全彩版)
- After Effects CC案例設計與經典插件(視頻教學版)
- LabVIEW入門與實戰開發100例(第4版)
- Slick2D Game Development
- Java Web開發任務教程
- Mastering Linux Kernel Development
- 深入理解Android:WebKit卷